:root {
  --bg: #ffffff;
  --card: #f7f7f7;
  --line: #e5e5e5;
  --text: #111111;
  --muted: #555555;
  --accent: #c8f54a;
  --accent-2: #2ea56a;
  --warn: #d4a017;
  --header-bg: #0f1412;
  --header-text: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Outfit, system-ui, sans-serif; }
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid #222; color: var(--header-text); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.5rem; text-decoration: none; color: #fff; }
.logo img { height: 56px; width: auto; border-radius: 8px; display: block; background: transparent; }
.logo .amp { color: #c8f54a; }
.nav nav { display: flex; gap: 18px; align-items: center; font-size: .95rem; color: #ddd; }
.team-drop { position: relative; }
.team-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.team-menu { display: none; position: absolute; top: 100%; left: 0; background: #111; border: 1px solid #333; min-width: 140px; padding: 6px 0; z-index: 20; }
.team-drop:hover .team-menu, .team-drop:focus-within .team-menu { display: block; }
.team-menu a { display: block; padding: 6px 12px; color: #eee; text-decoration: none; }
.team-menu a:hover { background: #222; }
.langs { display: flex; gap: 4px; margin-left: 8px; }
.langs button {
  background: transparent; border: 1px solid #444; color: #ccc;
  border-radius: 999px; padding: 4px 9px; cursor: pointer; font: inherit; font-size: .78rem;
}
.langs button.active { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
body { font-family: Outfit, "Noto Sans SC", system-ui, sans-serif; }
.hero { padding: 64px 0 36px; }
.kicker { color: var(--accent-2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; margin: 8px 0 16px; }
.lead { max-width: 640px; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.search { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; }
.search select {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 12px; font: inherit; min-width: 150px;
}
.near { margin: 12px 0 0; }
.near button {
  background: transparent; border: 1px solid var(--line); color: var(--accent);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
}
.fixtures-banner {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.fixtures-track {
  display: inline-flex;
  animation: marquee 50s linear infinite;
  padding-left: 100%;
}
.fixtures-track a {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 12px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.fixtures-track a:hover { background: #c8f54a; border-color: #c8f54a; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
#map, .map {
  height: 360px !important;
  min-height: 360px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  margin-bottom: 18px;
  background: #f5f5f5;
}
.search input, .owner-form input {
  flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 12px; font: inherit;
}
.search button, .owner-form button {
  background: var(--accent); color: #111; border: 0; border-radius: 12px;
  padding: 14px 18px; font-weight: 700; cursor: pointer; font: inherit;
}
.disclaimer { margin-top: 14px; color: var(--warn); font-size: .88rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 16px; }
.section-head h2 { margin: 0; }
#count { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit;
}
.filters a.chip { text-decoration: none; display: inline-block; }
#auth-box button, .cform button { background: #c8f54a; border: 0; color: #111; border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 700; }
.auth-who { color: var(--muted); font-size: .85rem; }
.community { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.cmt { margin: 4px 0; font-size: .88rem; }
.cmt.muted, .crate { color: var(--muted); font-size: .82rem; }
.cform { display: flex; gap: 6px; margin-top: 8px; }
.cform input, .cform select { background: #121816; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.cform input { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-bottom: 64px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.crest { display: inline-block; width: 28px; height: 32px; margin-right: 8px; border-radius: 4px 4px 10px 10px; font-size: .62rem; font-weight: 800; line-height: 32px; text-align: center; vertical-align: middle; }
.crest.barca { background: linear-gradient(90deg, #a50044 50%, #004d98 50%); color: #fff; }
.crest.madrid { background: #fff; color: #1a1a1a; border: 1px solid #ccc; }
.meta { color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #24302b; color: var(--accent-2); font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.notes { color: #c9d6cf; font-size: .9rem; line-height: 1.45; flex: 1; }
.source { font-size: .75rem; color: var(--muted); }
.card a.maps { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .92rem; }
.owners { background: #141b18; border-top: 1px solid #2c3833; padding: 48px 0; color: #eef3ef; }
.owners h2, .owners p { color: #eef3ef; }
.owners-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.owner-form { display: flex; flex-direction: column; gap: 10px; }
.owner-form label { display: flex; flex-direction: column; gap: 6px; color: #9aada4; font-size: .9rem; }
footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: .82rem; }
.foot { display: flex; flex-direction: column; gap: 6px; }
.fx-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 64px; }
.fx {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center;
}
.fx .when { color: var(--muted); font-size: .88rem; }
.fx .when strong { display: block; color: var(--text); font-size: 1rem; }
.fx .teams { font-weight: 650; }
.fx .league { color: var(--accent-2); font-size: .78rem; margin-bottom: 4px; }
.fx a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .88rem; white-space: nowrap; }
@media (max-width: 720px) {
  .owners-inner { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .fx { grid-template-columns: 1fr; }
}

.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; font-size: .85rem; }
.amenity { border: 1px solid #333; border-radius: 999px; padding: 4px 10px; }
.amenity.on { border-color: #c8f54a; color: #c8f54a; }
.amenity.off { opacity: .55; }
.amenity input { accent-color: #c8f54a; }

