:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(13, 26, 43, 0.88);
  --surface-2: rgba(10, 20, 34, 0.96);
  --line: rgba(221, 198, 166, 0.18);
  --line-strong: rgba(221, 198, 166, 0.34);
  --text: #f3eee5;
  --muted: #c8c0b5;
  --gold: #ddc6a6;
  --gold-deep: #b99666;
  --ivory: #f2ece2;
  --teal: #10a7b6;
  --teal-soft: rgba(16, 167, 182, 0.18);
  --success: #3bc48c;
  --danger: #d96464;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, calc(100% - 32px));
  --transition: 0.28s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(16,167,182,0.08), transparent 0 16%),
    radial-gradient(circle at 85% 12%, rgba(221,198,166,0.09), transparent 0 18%),
    linear-gradient(180deg, #050c18, var(--bg));
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: 84px 0; }
.section.compact { padding-top: 54px; }
.section-title,
.page-title,
.brand-title,
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; letter-spacing: 0.02em; }
p { line-height: 1.75; color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
.site-header .inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}
.logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(221,198,166,0.18);
  background: #08111c;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  flex-shrink: 0;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo-copy strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ivory);
}
.logo-copy span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(221,198,166,0.18);
  background: rgba(255,255,255,0.03);
  color: var(--ivory);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.main-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.06);
  color: var(--ivory);
  transform: translateY(-1px);
}
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.button-primary,
.header-cta {
  color: #08111d;
  background: linear-gradient(135deg, var(--gold), #f3ddbc);
  box-shadow: 0 16px 30px rgba(185,150,102,0.18);
}
.button-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  border-color: rgba(221,198,166,0.16);
}
.button-teal {
  background: linear-gradient(135deg, rgba(16,167,182,0.95), #18c7d8);
  color: #03131a;
}
.button:hover,
.header-cta:hover { transform: translateY(-2px); }

.hero {
  padding: 88px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.96;
}
.hero-copy p { max-width: 680px; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 36px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-stat,
.panel,
.card,
.match-banner,
.list-card,
.form-shell,
.admin-card,
.detail-panel {
  background: linear-gradient(180deg, rgba(12,24,40,0.88), rgba(8,18,31,0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}
.hero-stat {
  padding: 18px;
}
.hero-stat strong {
  display: block;
  color: var(--gold);
  font-size: 1.7rem;
}
.hero-visual {
  min-height: 100%;
}
.visual-frame {
  height: 100%;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(3,10,17,0.72), rgba(5,17,28,0.92));
  border: 1px solid rgba(221,198,166,0.16);
}
.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.4));
}
.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}
.visual-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  padding: 22px;
  border-radius: 18px;
  background: rgba(5, 14, 24, 0.76);
  border: 1px solid rgba(221,198,166,0.16);
}
.visual-note h3 { margin: 0 0 10px; font-size: 1.7rem; }

.layout-two,
.content-grid,
.contact-grid,
.about-grid,
.kit-grid {
  display: grid;
  gap: 22px;
}
.layout-two,
.about-grid,
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.content-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.content-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.content-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.panel,
.card,
.list-card,
.form-shell,
.admin-card,
.detail-panel { padding: 24px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2,
.section-title { margin: 0; font-size: clamp(2rem, 3vw, 3rem); }
.text-link {
  color: var(--gold);
  font-weight: 600;
}
.text-link:hover { color: var(--ivory); }
.card h3,
.list-card h3,
.match-card h3,
.panel h3,
.admin-card h3,
.detail-panel h3 { margin: 0 0 12px; font-size: 1.55rem; }
.card:hover,
.panel:hover,
.match-banner:hover,
.list-card:hover,
.admin-card:hover {
  transform: translateY(-4px);
  transition: transform var(--transition), border-color var(--transition);
  border-color: var(--line-strong);
}
.meta,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}
.tag { color: var(--gold); background: rgba(221,198,166,0.08); border: 1px solid rgba(221,198,166,0.18); }
.badge { color: var(--ivory); background: rgba(255,255,255,0.05); border: 1px solid rgba(221,198,166,0.12); }
.badge.teal { background: var(--teal-soft); color: #90eef5; border-color: rgba(16,167,182,0.22); }

.news-card,
.player-card,
.gallery-card,
.match-card {
  overflow: hidden;
}
.thumb,
.player-media,
.news-media,
.gallery-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(221,198,166,0.12);
}
.news-media,
.gallery-media { aspect-ratio: 4 / 3; }
.player-media { aspect-ratio: 4 / 3; }
.thumb img,
.player-media img,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-media {
  background: linear-gradient(180deg, rgba(8,16,28,0.95), rgba(10,20,34,0.92));
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 12px;
}
.media-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(4, 12, 21, 0.72);
  border: 1px solid rgba(221,198,166,0.12);
  color: var(--ivory);
}
.card-body { padding-top: 18px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p + p { margin-top: 12px; }

.match-banner {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}
.club-side {
  display: flex;
  align-items: center;
  gap: 14px;
}
.club-side.reverse { justify-content: flex-end; }
.club-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(221,198,166,0.16);
  flex-shrink: 0;
}
.club-mark img { width: 100%; height: 100%; object-fit: cover; }
.club-mark.alt {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ivory);
}
.match-center { text-align: center; }
.match-center strong { display: block; font-size: 2.1rem; color: var(--gold); margin: 10px 0; }

.news-list,
.player-list,
.gallery-list,
.match-list { display: grid; gap: 18px; }
.news-list { grid-template-columns: repeat(2, 1fr); }
.player-list { grid-template-columns: repeat(4, 1fr); }
.gallery-list { grid-template-columns: repeat(3, 1fr); }
.match-list { grid-template-columns: repeat(2, 1fr); }

.list-card ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.list-card li::marker { color: var(--gold); }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  border-top: 1px solid rgba(221,198,166,0.1);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.data-table th { color: var(--ivory); font-weight: 600; }

input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(221,198,166,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(221,198,166,0.38);
  box-shadow: 0 0 0 4px rgba(221,198,166,0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59,196,140,0.18);
  background: rgba(59,196,140,0.08);
  color: #baf2d9;
}
.form-message.error {
  border-color: rgba(217,100,100,0.22);
  background: rgba(217,100,100,0.08);
  color: #f5bebe;
}
.footer {
  margin-top: 48px;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(221,198,166,0.08);
}
.footer .inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.kit-grid { grid-template-columns: repeat(3, 1fr); }
.kit-card img { border-radius: 16px; }
.kit-caption { margin-top: 12px; }

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
.admin-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}
.admin-nav button {
  justify-content: flex-start;
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  border: 1px solid rgba(221,198,166,0.14);
}
.admin-nav button.active {
  background: rgba(221,198,166,0.12);
  color: var(--gold);
}
.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(221,198,166,0.12);
  background: rgba(255,255,255,0.03);
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.small-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(221,198,166,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  cursor: pointer;
}
.small-btn.danger { color: #ffb1b1; border-color: rgba(217,100,100,0.22); }
.empty-state {
  padding: 26px;
  border-radius: 16px;
  border: 1px dashed rgba(221,198,166,0.18);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-grid,
  .layout-two,
  .about-grid,
  .contact-grid,
  .admin-shell,
  .news-list,
  .match-list,
  .gallery-list,
  .player-list,
  .kit-grid,
  .content-grid.grid-3,
  .content-grid.grid-4,
  .content-grid.grid-2,
  .hero-stats,
  .match-banner,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .match-banner { text-align: center; }
  .club-side,
  .club-side.reverse { justify-content: center; }
}

@media (max-width: 860px) {
  .site-header .inner { min-height: 74px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border-radius: 18px;
    background: rgba(6, 14, 25, 0.96);
    border: 1px solid rgba(221,198,166,0.12);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .main-nav a { width: 100%; }
  .header-cta { display: none; }
  .hero { padding-top: 56px; }
  .hero-copy h1 { font-size: 2.7rem; }
  .visual-frame { min-height: 420px; }
  .footer .inner { flex-direction: column; }
}

/* ===== Luxury glass refinement ===== */
:root {
  --glass-dark: rgba(10, 20, 34, 0.78);
  --glass-mid: rgba(14, 27, 44, 0.88);
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glass-edge-soft: rgba(221, 198, 166, 0.18);
  --hero-glow: rgba(16, 167, 182, 0.1);
  --gold-glow: rgba(221, 198, 166, 0.16);
}

body {
  background:
    radial-gradient(circle at 14% 14%, rgba(16, 167, 182, 0.07), transparent 0 14%),
    radial-gradient(circle at 84% 10%, rgba(221, 198, 166, 0.08), transparent 0 16%),
    radial-gradient(circle at 50% 100%, rgba(16, 167, 182, 0.05), transparent 0 18%),
    linear-gradient(180deg, #030915 0%, #07111f 42%, #040b16 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(36px);
}

body::before {
  width: 220px;
  height: 220px;
  top: 110px;
  right: -90px;
  background: radial-gradient(circle, rgba(16, 167, 182, 0.10), transparent 70%);
}

body::after {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(221, 198, 166, 0.08), transparent 72%);
}

main,
.site-header,
.footer { position: relative; z-index: 1; }

.site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.site-header::after {
  display: none;
}

.logo-badge,
.main-nav,
.nav-toggle,
.header-cta,
.button-secondary,
.panel,
.card,
.list-card,
.form-shell,
.admin-card,
.detail-panel,
.match-banner,
.hero-stat,
.visual-note,
.admin-item,
.small-btn,
input,
textarea,
select,
.main-nav.open {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), linear-gradient(180deg, var(--glass-mid), var(--glass-dark));
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border: 1px solid var(--glass-edge-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(0, 0, 0, 0.22);
}

.hero-stat,
.panel,
.card,
.list-card,
.admin-card,
.match-banner,
.admin-item,
.visual-note {
  position: relative;
  overflow: hidden;
}

.hero-stat::before,
.panel::before,
.card::before,
.list-card::before,
.admin-card::before,
.match-banner::before,
.admin-item::before,
.visual-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 28%, transparent 60%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.hero-stat::after,
.panel::after,
.card::after,
.list-card::after,
.admin-card::after,
.match-banner::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(221, 198, 166, 0.08), transparent);
  pointer-events: none;
}

.hero-copy h1 {
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.panel p,
.card p,
.list-card p,
.admin-card p,
.match-card p {
  color: rgba(243, 238, 229, 0.82);
}

.hero-actions .button,
.form-actions .button,
.admin-nav button,
.small-btn,
.header-cta {
  position: relative;
  overflow: hidden;
}

.hero-actions .button::before,
.form-actions .button::before,
.admin-nav button::before,
.small-btn::before,
.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent 55%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.hero-actions .button:hover::before,
.form-actions .button:hover::before,
.admin-nav button:hover::before,
.small-btn:hover::before,
.header-cta:hover::before {
  transform: translateX(120%);
}

.button-primary,
.header-cta {
  background: linear-gradient(135deg, rgba(243, 221, 188, 0.96), rgba(185, 150, 102, 0.96));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(185, 150, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.button-secondary,
.button-teal,
.admin-nav button,
.small-btn,
.nav-toggle {
  color: var(--ivory);
}

.button-teal {
  background: linear-gradient(135deg, rgba(16, 167, 182, 0.9), rgba(33, 208, 224, 0.9));
  box-shadow: 0 18px 36px rgba(16, 167, 182, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.main-nav a {
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border-color: rgba(221, 198, 166, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.main-nav a.active {
  color: var(--ivory);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 198, 166, 0.65), transparent);
}

.visual-frame {
  background:
    radial-gradient(circle at top left, rgba(16, 167, 182, 0.06), transparent 22%),
    radial-gradient(circle at bottom right, rgba(221, 198, 166, 0.10), transparent 26%),
    linear-gradient(155deg, rgba(7, 16, 28, 0.84), rgba(7, 17, 31, 0.96));
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.30);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

.visual-frame img {
  opacity: 0.84;
  filter: saturate(1.04) contrast(1.02);
}

.visual-note {
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.82), rgba(8, 16, 27, 0.92));
  border-color: rgba(221, 198, 166, 0.18);
}

.thumb,
.player-media,
.news-media,
.gallery-media {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-media img,
.news-media img,
.gallery-media img,
.thumb img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.player-card:hover .player-media img,
.news-card:hover .news-media img,
.gallery-card:hover .gallery-media img,
.thumb:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.media-overlay {
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.48), rgba(7, 14, 24, 0.72));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.match-banner {
  background:
    radial-gradient(circle at 18% 22%, rgba(16, 167, 182, 0.08), transparent 0 24%),
    radial-gradient(circle at 80% 80%, rgba(221, 198, 166, 0.08), transparent 0 28%),
    linear-gradient(180deg, rgba(12, 24, 40, 0.76), rgba(7, 15, 26, 0.92));
}

.club-mark,
.logo-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)), rgba(8, 17, 28, 0.68);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

input,
textarea,
select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

input::placeholder,
textarea::placeholder { color: rgba(243, 238, 229, 0.46); }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(221, 198, 166, 0.42);
  box-shadow: 0 0 0 4px rgba(221, 198, 166, 0.08), 0 18px 38px rgba(0, 0, 0, 0.16);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .inner {
  padding-top: 6px;
}

@media (max-width: 860px) {
  .main-nav {
    background: linear-gradient(180deg, rgba(9, 17, 29, 0.8), rgba(8, 15, 26, 0.96));
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
}

.header-cta { flex-shrink: 0; }
.logo-copy strong { font-size: 1rem; }
.logo-copy span { max-width: 210px; }

.visual-frame.logo-showcase {
  min-height: 620px;
}
.visual-frame.logo-showcase img {
  position: absolute;
  inset: 45% auto auto 50%;
  width: 76%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.99;
  filter: saturate(1.02) contrast(1.03) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.32));
  z-index: 1;
}
.visual-frame.logo-showcase::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.16));
}
.visual-frame.logo-showcase .visual-note {
  left: 50%;
  right: auto;
  bottom: 24px;
  width: calc(100% - 56px);
  max-width: 640px;
  padding: 16px 20px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.visual-frame.logo-showcase .visual-note h3 {
  font-size: 1.26rem;
  margin-bottom: 6px;
}
.visual-frame.logo-showcase .visual-note p {
  line-height: 1.55;
  font-size: 0.98rem;
}

@media (max-width: 1260px) {
  .site-header .inner { gap: 14px; padding: 10px 14px; }
  .main-nav a { padding: 10px 10px; font-size: 0.9rem; }
  .header-cta { display: none; }
  .logo-copy span { display: none; }
}

@media (max-width: 980px) {
  .logo-copy strong { font-size: 0.92rem; }
  .main-nav a { padding: 10px 8px; font-size: 0.88rem; }
}

@media (max-width: 860px) {
  .logo-copy span { display: block; max-width: none; }
  .site-header { padding-top: 8px; }
  .site-header .inner { border-radius: 20px; }
  .visual-frame.logo-showcase { min-height: 500px; }
  .visual-frame.logo-showcase img { width: 84%; inset: 43% auto auto 50%; }
  .visual-frame.logo-showcase .visual-note { width: calc(100% - 24px); left: 50%; bottom: 12px; padding: 14px 16px; }
  .visual-frame.logo-showcase .visual-note h3 { font-size: 1.08rem; }
  .visual-frame.logo-showcase .visual-note p { font-size: 0.92rem; }
}

.site-header .inner {
  min-height: 72px;
  padding: 10px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.94), rgba(6, 14, 25, 0.88));
  border: 1px solid rgba(221, 198, 166, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.site-header .inner::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221,198,166,0.26), rgba(16,167,182,0.18), transparent);
}
.main-nav {
  padding: 2px;
  border-radius: 999px;
}

/* Integrated team and player photo refinements */
.player-media {
  aspect-ratio: 3 / 4;
}
.player-media img {
  object-position: center top;
}
.team-wide {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(221,198,166,0.18);
  background: rgba(10,20,34,0.82);
  box-shadow: var(--shadow);
}
.team-wide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}
.team-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(3,9,18,0.82));
  pointer-events: none;
}
.team-wide-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  max-width: 620px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12,22,36,0.86), rgba(8,16,27,0.94));
  border: 1px solid rgba(221,198,166,0.18);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.team-wide-caption h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}
@media (max-width: 860px) {
  .team-wide, .team-wide img { min-height: 420px; }
  .team-wide-caption { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
}


/* final visual integration */
.visual-frame > img[src*="banners/"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.04);
}
.news-media img,
.gallery-media img {
  padding: 0 !important;
  object-fit: cover !important;
}
.news-card,
.gallery-card,
.player-card {
  box-shadow: 0 22px 52px rgba(0,0,0,.22);
}
.news-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
}
.news-card,
.gallery-card {
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.news-card:hover,
.gallery-card:hover {
  border-color: rgba(221, 198, 166, .45);
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}


/* ===== Final June polish ===== */
.visual-note { display: none !important; }
.logo-copy span { display: none !important; }
.footer .inner { justify-content: center; text-align: center; }
.visual-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.visual-frame > img[src*="banners/"] {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  opacity: 0.98;
  filter: saturate(1.03) contrast(1.03);
}
@media (max-width: 860px) {
  .visual-frame { min-height: 380px; padding: 12px; }
}

/* ===== Final clean build additions ===== */
[hidden] { display: none !important; }
.admin-panels {
  display: grid;
  gap: 20px;
}
.admin-tools-card textarea,
#admin-import-area {
  margin-top: 14px;
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
.admin-status-card strong,
.admin-hint strong {
  display: block;
  color: var(--ivory);
  margin-bottom: 8px;
}
.admin-hint {
  margin-top: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(221,198,166,0.12);
  background: rgba(255,255,255,0.035);
}
.admin-hint code {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #baf2f6;
  background: rgba(16,167,182,0.10);
  border: 1px solid rgba(16,167,182,0.18);
  word-break: break-all;
}
.admin-item strong {
  color: var(--ivory);
}
.admin-item p {
  margin-top: 6px;
  font-size: 0.92rem;
}
.site-header .inner {
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.78), rgba(7, 16, 28, 0.55));
  border: 1px solid rgba(221,198,166,0.10);
  border-radius: 24px;
  padding: 0 12px;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.main-nav a {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.9rem;
}
.visual-frame {
  aspect-ratio: 16 / 9;
  min-height: auto;
}
.hero .visual-frame {
  min-height: 430px;
}
.news-media,
.gallery-media {
  aspect-ratio: 4 / 3;
}
.news-media img,
.gallery-media img {
  object-position: center center;
}
.footer .inner {
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .main-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 10px;
    background: rgba(7,16,28,0.94);
    border: 1px solid rgba(221,198,166,0.12);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .inner { flex-wrap: wrap; padding: 10px; }
  .main-nav a { text-align: center; }
}
@media (max-width: 860px) {
  .hero .visual-frame { min-height: 0; }
}


/* ===== Final polish: rounded banners and cleaner admin ===== */
.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 28px;
  align-items: center;
}
.hero .layout-two {
  align-items: center;
}
.page-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  line-height: 0.98;
}
.hero p,
.hero-copy p {
  max-width: 660px;
}
.visual-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(300px, 33vw, 430px) !important;
  padding: 14px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.28);
}
.layout-two .visual-frame {
  min-height: clamp(280px, 28vw, 360px) !important;
}
.hero-grid .visual-frame {
  min-height: clamp(320px, 36vw, 450px) !important;
}
.visual-frame::before {
  inset: 14px;
  border-radius: 22px;
}
.visual-frame > img[src*="banners/"] {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 20px;
  border: 1px solid rgba(221, 198, 166, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.team-wide,
.team-wide img {
  border-radius: 28px;
}
.admin-tools-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.admin-mode {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.admin-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(221,198,166,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  font-size: 0.92rem;
  white-space: nowrap;
}
.admin-mode-badge.is-live {
  border-color: rgba(59,196,140,0.26);
  background: rgba(59,196,140,0.10);
  color: #d7f9e7;
}
.admin-tools-card textarea,
#admin-import-area {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .admin-tools-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-mode {
    justify-content: flex-start;
  }
}
@media (max-width: 860px) {
  .page-title {
    font-size: 2.35rem;
  }
  .visual-frame {
    min-height: clamp(240px, 56vw, 320px) !important;
    padding: 10px;
    border-radius: 24px;
  }
  .visual-frame::before,
  .visual-frame > img[src*="banners/"] {
    border-radius: 18px;
  }
}

/* ===== Banner size harmonization ===== */
.hero .visual-frame {
  width: 100%;
  justify-self: end;
  max-width: 800px;
  min-height: clamp(300px, 32vw, 400px) !important;
}

body[data-page="index.html"] .hero .visual-frame,
body[data-page="about.html"] .hero .visual-frame,
body[data-page="admin.html"] .hero .visual-frame {
  max-width: 760px;
  min-height: clamp(285px, 30vw, 375px) !important;
}

body[data-page="squad.html"] .hero .visual-frame,
body[data-page="matches.html"] .hero .visual-frame,
body[data-page="news.html"] .hero .visual-frame,
body[data-page="gallery.html"] .hero .visual-frame,
body[data-page="contacts.html"] .hero .visual-frame {
  max-width: 820px;
  min-height: clamp(305px, 33vw, 410px) !important;
}

@media (max-width: 1100px) {
  .hero .visual-frame,
  body[data-page="index.html"] .hero .visual-frame,
  body[data-page="about.html"] .hero .visual-frame,
  body[data-page="admin.html"] .hero .visual-frame,
  body[data-page="squad.html"] .hero .visual-frame,
  body[data-page="matches.html"] .hero .visual-frame,
  body[data-page="news.html"] .hero .visual-frame,
  body[data-page="gallery.html"] .hero .visual-frame,
  body[data-page="contacts.html"] .hero .visual-frame {
    max-width: none;
    min-height: clamp(260px, 54vw, 340px) !important;
  }
}


/* ===== Secure admin panel ===== */
.admin-login-wrap {
  display: flex;
  justify-content: center;
}
.admin-login-card {
  width: min(680px, 100%);
}
.admin-login-card p {
  margin-bottom: 18px;
}
#admin-logout {
  display: none;
}
body[data-page="admin.html"] #admin-logout {
  display: inline-flex;
}
body[data-page="admin.html"] .footer .text-link[href="admin.html"] {
  display: none;
}

/* ===== FINAL RESPONSIVE REBUILD: desktop / tablet / mobile ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container,
.site-header .inner,
.footer .inner {
  width: min(1180px, calc(100vw - 32px));
}

.hero-grid,
.layout-two,
.about-grid,
.contact-grid,
.content-grid.grid-2,
.content-grid.grid-3,
.content-grid.grid-4,
.kit-grid,
.news-list,
.player-list,
.gallery-list,
.match-list,
.hero-stats,
.form-grid,
.admin-shell {
  min-width: 0;
}

.hero-copy,
.hero-visual,
.panel,
.card,
.list-card,
.form-shell,
.admin-card,
.detail-panel,
.visual-frame {
  min-width: 0;
}

.main-nav {
  min-width: 0;
}

/* Large tablets and small laptops */
@media (max-width: 1180px) {
  :root { --container: min(1080px, calc(100vw - 32px)); }
  .site-header .inner {
    gap: 10px;
  }
  .main-nav a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.86rem;
  }
  .hero-grid,
  .layout-two,
  .about-grid,
  .contact-grid {
    gap: 22px;
  }
  .player-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-list,
  .content-grid.grid-3,
  .content-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-list,
  .match-list,
  .kit-grid,
  .content-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet portrait */
@media (max-width: 980px) {
  :root { --container: calc(100vw - 28px); }

  .site-header {
    padding-top: 8px;
  }
  .site-header .inner {
    position: relative;
    width: var(--container);
    min-height: 74px;
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    border-radius: 24px;
  }
  .logo-badge {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }
  .logo-copy strong {
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    white-space: nowrap;
  }
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.45rem;
    line-height: 1;
  }
  .header-cta {
    display: none !important;
  }
  .main-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    order: initial !important;
    width: 100% !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 14px !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(13, 25, 42, 0.98), rgba(8, 17, 30, 0.98)) !important;
    border: 1px solid rgba(221,198,166,0.20) !important;
    box-shadow: 0 26px 58px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
  }
  .main-nav.open {
    display: grid !important;
  }
  .main-nav a {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    border-radius: 16px;
    font-size: 1rem !important;
    text-align: center;
    background: rgba(255,255,255,0.035);
  }
  .main-nav a.active {
    background: rgba(221,198,166,0.12);
  }
  .main-nav a.active::after {
    display: none;
  }

  .hero {
    padding: 34px 0 26px;
  }
  .section {
    padding: 56px 0;
  }
  .section.compact {
    padding-top: 38px;
  }
  .hero-grid,
  .layout-two,
  .about-grid,
  .contact-grid,
  .content-grid.grid-2,
  .content-grid.grid-3,
  .content-grid.grid-4,
  .kit-grid,
  .admin-shell {
    grid-template-columns: 1fr !important;
  }
  .hero-grid {
    gap: 22px !important;
    align-items: start !important;
  }
  .hero-copy h1,
  h1.page-title {
    font-size: clamp(2.5rem, 8vw, 4.1rem) !important;
    line-height: 0.98 !important;
    max-width: 100%;
  }
  .hero-copy p,
  .hero p,
  p {
    font-size: clamp(0.98rem, 2.4vw, 1.08rem);
    line-height: 1.65;
  }
  .hero-actions {
    margin: 24px 0 26px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .hero-stat {
    padding: 15px;
  }
  .hero-stat strong {
    font-size: 1.45rem;
  }
  .hero-stat p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero .visual-frame,
  body[data-page="index.html"] .hero .visual-frame,
  body[data-page="about.html"] .hero .visual-frame,
  body[data-page="admin.html"] .hero .visual-frame,
  body[data-page="squad.html"] .hero .visual-frame,
  body[data-page="matches.html"] .hero .visual-frame,
  body[data-page="news.html"] .hero .visual-frame,
  body[data-page="gallery.html"] .hero .visual-frame,
  body[data-page="contacts.html"] .hero .visual-frame {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    justify-self: stretch !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }
  .visual-frame::before {
    inset: 10px !important;
    border-radius: 18px !important;
  }
  .visual-frame > img[src*="banners/"] {
    border-radius: 16px !important;
  }

  .news-list,
  .gallery-list,
  .match-list,
  .player-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .match-banner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .club-side,
  .club-side.reverse {
    justify-content: center;
  }
  .team-wide,
  .team-wide img {
    min-height: 430px;
  }
  .team-wide-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-nav .button {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 22px);
    --radius-xl: 22px;
    --radius-lg: 18px;
  }

  body {
    background:
      radial-gradient(circle at 18% 7%, rgba(16,167,182,0.08), transparent 0 18%),
      radial-gradient(circle at 90% 0%, rgba(221,198,166,0.07), transparent 0 18%),
      linear-gradient(180deg, #030914 0%, #07111f 46%, #040b16 100%);
  }

  .container,
  .site-header .inner,
  .footer .inner {
    width: var(--container) !important;
  }

  .site-header {
    top: 0;
    padding-top: 7px;
  }
  .site-header .inner {
    min-height: 64px;
    border-radius: 20px;
    padding: 8px 10px !important;
  }
  .logo {
    gap: 10px;
  }
  .logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
  .logo-copy strong {
    font-size: clamp(1.06rem, 5.4vw, 1.55rem) !important;
    max-width: calc(100vw - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.25rem;
  }
  .main-nav {
    top: calc(100% + 8px) !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }
  .main-nav a {
    min-height: 44px;
    font-size: 0.98rem !important;
  }

  .hero {
    padding: 26px 0 20px !important;
  }
  .section {
    padding: 46px 0 !important;
  }
  .section.compact {
    padding-top: 30px !important;
  }
  .eyebrow {
    gap: 8px;
    letter-spacing: 0.13em;
    font-size: 0.66rem;
    line-height: 1.35;
    max-width: 100%;
  }
  .eyebrow::before {
    width: 26px;
    flex-shrink: 0;
  }
  .hero-copy h1,
  h1.page-title {
    font-size: clamp(2.2rem, 13vw, 3.45rem) !important;
    line-height: 0.98 !important;
    overflow-wrap: break-word;
  }
  .section-title {
    font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
  }
  .card h3,
  .list-card h3,
  .match-card h3,
  .panel h3,
  .admin-card h3,
  .detail-panel h3 {
    font-size: 1.35rem;
  }
  .hero-copy p,
  .hero p,
  p,
  li {
    font-size: 0.98rem !important;
    line-height: 1.58 !important;
  }

  .hero-actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .button,
  .header-cta {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
  }
  .hero-stats {
    grid-template-columns: 1fr !important;
  }
  .hero-stat {
    padding: 14px 16px;
  }
  .hero-stat strong {
    font-size: 1.35rem;
  }

  .visual-frame {
    padding: 8px !important;
    border-radius: 22px !important;
  }
  .visual-frame::before,
  .visual-frame > img[src*="banners/"] {
    border-radius: 15px !important;
  }

  .panel,
  .card,
  .list-card,
  .form-shell,
  .admin-card,
  .detail-panel {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  .news-list,
  .gallery-list,
  .match-list,
  .player-list,
  .form-grid,
  .content-grid.grid-2,
  .content-grid.grid-3,
  .content-grid.grid-4,
  .about-grid,
  .layout-two,
  .contact-grid,
  .kit-grid {
    grid-template-columns: 1fr !important;
  }
  .news-media,
  .gallery-media {
    aspect-ratio: 16 / 10;
  }
  .player-media {
    aspect-ratio: 3 / 4;
  }
  .match-banner {
    padding: 18px !important;
    gap: 16px;
  }
  .match-center strong {
    font-size: 1.55rem;
  }
  .club-mark {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  input,
  textarea,
  select {
    min-height: 46px;
    font-size: 16px;
  }
  textarea {
    min-height: 110px;
  }

  .team-wide,
  .team-wide img {
    min-height: 360px;
    border-radius: 22px;
  }
  .team-wide-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -110px 12px 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .admin-shell {
    gap: 14px;
  }
  .admin-nav {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  .admin-nav .button {
    min-height: 44px;
    font-size: 0.92rem;
  }
  .admin-tools-head {
    gap: 10px;
  }
  .admin-mode-badge {
    min-height: 34px;
    font-size: 0.86rem;
  }
  .admin-item {
    display: grid;
    gap: 12px;
  }
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .small-btn {
    width: 100%;
  }
  .footer {
    margin-top: 24px;
  }
  .footer .inner {
    font-size: 0.85rem;
    padding-bottom: 12px;
  }
}

/* Very narrow phones */
@media (max-width: 390px) {
  :root { --container: calc(100vw - 18px); }
  .logo-copy strong {
    font-size: 1rem !important;
    max-width: calc(100vw - 136px);
  }
  .logo-badge,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }
  .hero-copy h1,
  h1.page-title {
    font-size: clamp(2rem, 12vw, 2.75rem) !important;
  }
  .panel,
  .card,
  .list-card,
  .form-shell,
  .admin-card,
  .detail-panel {
    padding: 16px !important;
  }
}

/* ===== MOBILE HOTFIX: real phone/tablet layout ===== */
@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .container,
  .site-header .inner,
  .footer .inner {
    width: min(100% - 24px, 760px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    padding: 8px 0 0 !important;
  }

  .site-header .inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 70px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  .logo {
    min-width: 0 !important;
  }

  .logo-badge {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  .logo-copy strong {
    display: block !important;
    max-width: calc(100vw - 170px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 1.28rem !important;
    line-height: 1.1 !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 17px !important;
    font-size: 1.35rem !important;
    z-index: 10001 !important;
  }

  .header-cta {
    display: none !important;
  }

  .main-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: #0b1626 !important;
    border: 1px solid rgba(221,198,166,0.28) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,0.70), inset 0 1px 0 rgba(255,255,255,0.10) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }

  .main-nav.open {
    display: grid !important;
  }

  .main-nav a {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,0.055) !important;
    color: var(--ivory) !important;
    text-align: center !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
  }

  .main-nav a.active {
    background: rgba(221,198,166,0.16) !important;
    color: var(--gold) !important;
  }

  .main-nav a.active::after,
  .main-nav::before,
  .main-nav::after {
    display: none !important;
  }

  .hero {
    padding: 28px 0 20px !important;
  }

  .hero-grid,
  .hero .layout-two,
  .layout-two,
  .about-grid,
  .contact-grid,
  .content-grid.grid-2,
  .content-grid.grid-3,
  .content-grid.grid-4,
  .kit-grid,
  .admin-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .hero-copy,
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-copy {
    order: 1 !important;
  }

  .hero-visual,
  .hero .visual-frame {
    order: 2 !important;
  }

  .eyebrow {
    font-size: 0.66rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.13em !important;
    margin-bottom: 10px !important;
  }

  .hero-copy h1,
  h1.page-title {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    font-size: clamp(2.15rem, 10.6vw, 3.05rem) !important;
    line-height: 0.98 !important;
    letter-spacing: 0.01em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .hero-copy p,
  .hero p,
  p,
  li {
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 20px 0 22px !important;
  }

  .button {
    width: 100% !important;
    min-height: 46px !important;
  }

  .hero-stats,
  .news-list,
  .gallery-list,
  .match-list,
  .player-list,
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .hero-stat,
  .panel,
  .card,
  .list-card,
  .form-shell,
  .admin-card,
  .detail-panel {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .hero .visual-frame,
  body[data-page="index.html"] .hero .visual-frame,
  body[data-page="about.html"] .hero .visual-frame,
  body[data-page="admin.html"] .hero .visual-frame,
  body[data-page="squad.html"] .hero .visual-frame,
  body[data-page="matches.html"] .hero .visual-frame,
  body[data-page="news.html"] .hero .visual-frame,
  body[data-page="gallery.html"] .hero .visual-frame,
  body[data-page="contacts.html"] .hero .visual-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    justify-self: stretch !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .visual-frame::before {
    inset: 8px !important;
    border-radius: 16px !important;
  }

  .visual-frame > img[src*="banners/"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 14px !important;
  }

  .section {
    padding: 44px 0 !important;
  }

  .section.compact {
    padding-top: 28px !important;
  }

  .section-head {
    display: grid !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .section-title {
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
  }

  .team-wide,
  .team-wide img {
    min-height: 330px !important;
  }

  .team-wide-caption {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: -90px 12px 12px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .data-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .news-list,
  .gallery-list,
  .match-list,
  .player-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .container,
  .site-header .inner,
  .footer .inner {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }

  .site-header .inner {
    min-height: 62px !important;
    border-radius: 20px !important;
    padding: 8px !important;
  }

  .logo-badge,
  .nav-toggle {
    width: 48px !important;
    height: 48px !important;
  }

  .logo-copy strong {
    font-size: 1.25rem !important;
    max-width: calc(100vw - 152px) !important;
  }

  .hero-copy h1,
  h1.page-title {
    font-size: clamp(2.05rem, 11.7vw, 2.78rem) !important;
  }

  .hero-copy p,
  .hero p,
  p,
  li {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 360px) {
  .logo-copy strong {
    font-size: 1.05rem !important;
    max-width: calc(100vw - 140px) !important;
  }

  .hero-copy h1,
  h1.page-title {
    font-size: 2.05rem !important;
  }
}
