:root {
  color-scheme: dark;
  --bg: #0d0915;
  --bg-soft: #171020;
  --surface: rgba(27, 18, 38, 0.88);
  --surface-strong: #24172f;
  --text: #fffaf5;
  --muted: #b8aabd;
  --accent: #ffb000;
  --accent-strong: #ff4d8d;
  --violet: #9b5cff;
  --border: rgba(255, 214, 153, 0.14);
  --shadow: 0 22px 60px rgba(4, 2, 8, 0.38);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(155, 92, 255, 0.2), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(255, 77, 141, 0.14), transparent 25%),
    linear-gradient(145deg, var(--bg), #120c1b 55%, #09070e);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

img[loading="lazy"] {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.12));
}

a {
  color: inherit;
}

.hero {
  min-height: auto;
  padding: 24px 6vw 52px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(155, 92, 255, 0.13);
  filter: blur(80px);
  pointer-events: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 42px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  background: rgba(18, 12, 27, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: "A";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1b0c18;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.28);
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.breaking-bar {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 12, 27, 0.8);
}

.breaking-bar > strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
}

.breaking-track {
  min-width: 0;
  padding: 0 16px;
}

.breaking-track a {
  display: block;
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  gap: 18px;
  min-height: 520px;
}

.featured-story {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(0deg, rgba(13, 9, 21, 0.98), rgba(13, 9, 21, 0.12)),
    radial-gradient(circle at 60% 30%, rgba(155, 92, 255, 0.4), transparent 45%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.featured-placeholder,
.featured-story-link {
  display: flex;
  min-height: 520px;
  padding: clamp(24px, 5vw, 52px);
  flex-direction: column;
  justify-content: flex-end;
  background-position: center;
  background-size: cover;
  color: inherit;
  text-decoration: none;
}

.featured-story-content {
  max-width: 720px;
}

.featured-story h1 {
  margin: 14px 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.featured-story p {
  max-width: 680px;
  color: #d4c9d8;
}

.story-cta {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.headline-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 12, 27, 0.82);
  box-shadow: var(--shadow);
}

.headline-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  color: #70e29b;
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.headline-list {
  display: grid;
}

.headline-list > p {
  padding: 20px;
  color: var(--muted);
}

.headline-list a {
  display: grid;
  gap: 5px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.headline-list a:last-child {
  border-bottom: 0;
}

.headline-list a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.headline-list a span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.headline-list a strong {
  line-height: 1.35;
}

.headline-list a time {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 76px 6vw;
  max-width: 1180px;
  margin: 0 auto;
}

.alt-bg {
  background: linear-gradient(145deg, rgba(42, 26, 56, 0.72), rgba(25, 16, 34, 0.82));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
  padding-bottom: 30px;
}

.trust-strip > div {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(42, 27, 55, 0.9), rgba(23, 16, 32, 0.9));
  text-align: center;
}

.trust-strip strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
}

.trust-strip span {
  color: var(--muted);
}

.cards,
.discount-grid,
.benefits,
.faq-grid {
  display: grid;
  gap: 20px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}

.filter-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.filter-button.active {
  color: #1b0c18;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.card,
.discount-card,
.code-item,
.benefits > div,
.ad-banner,
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-card:hover,
.deal-card:hover,
.benefits > div:hover,
.faq-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 176, 0, 0.4);
}

.news-card,
.deal-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-image,
.deal-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--surface-strong);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-body h3,
.discount-card h3,
.faq-card h3 {
  font-size: 1.08rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.card-link,
.discount-card a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.card-link::after,
.discount-card a::after {
  content: " →";
}

.loading-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.code-list {
  display: grid;
  gap: 16px;
}

.code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.code-item strong {
  color: var(--accent);
  font-family: Consolas, monospace;
  letter-spacing: 0.04em;
}

.discount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

footer {
  text-align: center;
  padding: 24px 20px 42px;
  color: var(--muted);
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 900px) {
  .portal-hero-grid {
    grid-template-columns: 1fr;
  }

  .headline-panel {
    min-height: auto;
  }

  .cards,
  .discount-grid,
  .benefits,
  .trust-strip,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .code-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .spotlight-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    border-radius: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 16px;
  }

  .breaking-bar > strong {
    padding: 0 10px;
  }

  .featured-placeholder,
  .featured-story-link {
    min-height: 440px;
    padding: 24px;
  }

  .featured-story h1 {
    font-size: 2rem;
  }
}

/* Süper Lig center */
.league-page {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 176, 0, 0.12), transparent 28%),
    linear-gradient(145deg, var(--bg), #110b19 60%, #08060c);
}

.league-header {
  padding: 24px 6vw 64px;
  border-bottom: 1px solid var(--border);
}

.league-header .navbar {
  margin-bottom: 64px;
}

.league-season {
  padding: 7px 11px;
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 9px;
  color: var(--accent);
  font-weight: 800;
}

.league-intro {
  max-width: 1180px;
  margin: 0 auto;
}

.league-intro h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  background: linear-gradient(110deg, #fff, #ffd08a, #ff6b9d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.league-intro > p:not(.section-label) {
  max-width: 650px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.league-status {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  color: var(--muted);
}

.league-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.league-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 6vw 90px;
}

.league-section {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.league-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.league-section-title .section-label {
  margin-bottom: 2px;
}

.league-section-title select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--muted);
}

.live-badge {
  color: #66e493;
  font-weight: 900;
}

.league-empty-state {
  display: grid;
  justify-items: center;
  padding: 58px 24px;
  text-align: center;
}

.league-empty-state p {
  max-width: 580px;
  margin-top: 8px;
  color: var(--muted);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.8rem;
}

.league-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 22px;
}

.fixture-day {
  padding: 12px 18px;
  background: rgba(255, 176, 0, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fixture-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

.fixture-row span:last-child {
  text-align: right;
}

.fixture-row strong {
  color: var(--muted);
}

.standings-scroll {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.standings-table th,
.standings-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table th {
  color: var(--muted);
  font-size: 0.78rem;
}

.standings-empty td {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center !important;
}

.league-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.league-info-strip > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.league-info-strip strong,
.league-info-strip span {
  display: block;
}

.league-info-strip strong {
  color: var(--accent);
}

.league-info-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 850px) {
  .league-grid {
    grid-template-columns: 1fr;
  }

  .league-info-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .league-header .navbar {
    margin-bottom: 42px;
  }

  .league-intro h1 {
    font-size: 3.4rem;
  }

  .league-info-strip {
    grid-template-columns: 1fr;
  }
}

.besiktas-filter {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  background: linear-gradient(135deg, #0b0b0d, #29272d);
}

.besiktas-filter.active {
  color: #111;
  background: linear-gradient(135deg, #fff, #bbb);
}

.galatasaray-filter { border-color: rgba(253, 185, 19, .35); color: #fdb913; background: rgba(169, 24, 44, .16); }
.galatasaray-filter.active { color: #5c0a16; background: linear-gradient(135deg, #fdb913, #e8a400); }
.fenerbahce-filter { border-color: rgba(255, 237, 0, .32); color: #ffed00; background: rgba(0, 39, 118, .2); }
.fenerbahce-filter.active { color: #001d58; background: linear-gradient(135deg, #ffed00, #e8d700); }
.trabzonspor-filter { border-color: rgba(108, 171, 221, .35); color: #6cabdd; background: rgba(128, 0, 32, .18); }
.trabzonspor-filter.active { color: #fff; background: linear-gradient(135deg, #800020, #6cabdd); }

.big-four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.club-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.club-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.club-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 900;
}

.club-heading strong,
.club-heading small {
  display: block;
}

.club-heading small {
  color: var(--muted);
}

.besiktas-panel .club-heading > span { background: #fff; color: #111; }
.galatasaray-panel .club-heading > span { background: #fdb913; color: #a9182c; }
.fenerbahce-panel .club-heading > span { background: #ffed00; color: #002776; }
.trabzonspor-panel .club-heading > span { background: #6cabdd; color: #800020; }

.club-news-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.club-news-list img {
  width: 76px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
}

.club-news-list a > span {
  display: grid;
  align-content: center;
  gap: 2px;
}

.club-news-list small {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
}

.club-news-list strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.club-news-list time {
  color: var(--muted);
  font-size: .7rem;
}

.club-panel > button {
  width: 100%;
  padding: 12px;
  border: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.club-panel > button:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .big-four-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .big-four-grid {
    grid-template-columns: 1fr;
  }
}

.match-center {
  padding-top: 36px;
}

.match-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.match-layout > div {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.match-layout h3 {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

.match-list {
  display: grid;
}

.match-card {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.match-card:last-child {
  border-bottom: 0;
}

.match-card small {
  color: var(--muted);
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.match-teams > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.match-teams > span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.match-teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.match-score {
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  color: #111;
}

.match-date {
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .match-layout {
    grid-template-columns: 1fr;
  }
}

/* Portal discovery, search and footer */
.search-toggle { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font-size: 1.35rem; }
.section-heading-row, .category-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading-row { margin-bottom: 28px; }
.section-heading-row > span { color: var(--muted); }
.category-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.category-columns > section { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.category-title { align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 800; }
.category-title button { border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.compact-news-list, .search-results { display: grid; }
.compact-news-list a, .search-results a { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.compact-news-list img, .search-results img { width: 92px; height: 76px; border-radius: 9px; object-fit: cover; }
.compact-news-list a > span, .search-results a > span { display: grid; align-content: center; gap: 3px; }
.compact-news-list small, .search-results small, .popular-item small { color: var(--accent); font-weight: 800; }
.compact-news-list strong, .search-results strong { display: -webkit-box; overflow: hidden; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-news-list time, .search-results time, .popular-item time { color: var(--muted); font-size: .75rem; }
.empty-note { padding: 24px; color: var(--muted); }
.popular-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.popular-item { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.popular-item img { width: 100%; height: 150px; object-fit: cover; }
.popular-item > span { display: grid; gap: 6px; padding: 16px; }
.portal-footer { margin-top: 40px; padding: 54px 6vw 24px; border-top: 1px solid var(--border); background: #09060e; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 36px; max-width: 1180px; margin: 0 auto 40px; }
.footer-grid > div { display: grid; align-content: start; justify-items: start; gap: 10px; }
.footer-grid strong { margin-bottom: 6px; color: var(--text); }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border); }
.search-overlay { position: fixed; z-index: 20; inset: 0; padding: 10vh 20px; background: rgba(5,3,8,.84); backdrop-filter: blur(12px); }
.search-overlay[hidden] { display: none; }
.search-dialog { position: relative; overflow: auto; max-width: 760px; max-height: 80vh; margin: 0 auto; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-soft); box-shadow: var(--shadow); }
.search-dialog > button { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.8rem; }
.search-dialog label { display: block; margin-bottom: 12px; font-size: 1.4rem; font-weight: 800; }
.search-dialog input { width: 100%; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; outline: none; background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
.search-dialog input:focus { border-color: var(--accent); }
.search-results > p { padding: 20px 0; color: var(--muted); }
.search-open { overflow: hidden; }

@media (max-width: 900px) {
  .category-columns, .popular-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .category-columns, .popular-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; }
}
