/* ============================================================
   AFRICA AQUATICS — REFRESH STYLESHEET
   Google Fonts: Inter (body) · Poppins (headings) · JetBrains Mono (times)
   Brand: sky #95d9fe · navy #0e2a3c · yellow #f0ad4e · green #5cb85c
   Prefix: aa-  (no collision with Bootstrap 3 or production CSS)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&family=JetBrains+Mono:wght@600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  --aa-sky:    #95d9fe;
  --aa-navy:   #0e2a3c;
  --aa-yellow: #f0ad4e;
  --aa-green:  #5cb85c;
  --aa-body:   #2d3748;
  --aa-muted:  #6b7280;
  --aa-border: #e2e8f0;
  --aa-bg-alt: #f4f9fd;
  --aa-bg-card:#ffffff;

  --aa-shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --aa-shadow-md: 0 4px 8px rgba(0,0,0,0.07), 0 12px 28px rgba(0,0,0,0.05);
  --aa-shadow-lg: 0 10px 40px rgba(0,0,0,0.13), 0 4px 14px rgba(0,0,0,0.07);

  --aa-radius-sm: 6px;
  --aa-radius-md: 10px;
  --aa-radius-lg: 14px;

  --aa-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.aa-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--aa-ease), transform .5s var(--aa-ease);
}
.aa-reveal.aa-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   ZONE BANNER  (zone pages only — shown between header and hero)
   ================================================================ */
.aa-zone-banner {
  background: linear-gradient(90deg, #1a4a6e 0%, var(--aa-navy) 100%);
  padding: 12px 0;
  border-bottom: 3px solid var(--aa-sky);
}
.aa-zone-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.aa-zone-badge {
  background: var(--aa-sky);
  color: var(--aa-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.aa-zone-name {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ================================================================
   SECTION UTILITIES
   ================================================================ */
.aa-section {
  padding: 80px 0;
  background: #ffffff;
}
.aa-section-alt {
  background: var(--aa-bg-alt);
}
.aa-section-header {
  margin-bottom: 36px;
}
.aa-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--aa-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.aa-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--aa-sky);
  margin-top: 8px;
  border-radius: 2px;
}
.aa-section-subtitle {
  color: var(--aa-muted);
  font-size: 14px;
  margin: 12px 0 0;
}
.aa-section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 12px;
}
.aa-view-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-muted);
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .22s var(--aa-ease);
}
.aa-view-all:hover { color: var(--aa-navy); }

/* ================================================================
   NEWS — Uniform 3-card grid
   ================================================================ */
.aa-news-card {
  display: block;
  background: var(--aa-bg-card);
  border-radius: var(--aa-radius-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--aa-shadow-sm);
  transition: box-shadow .22s var(--aa-ease), transform .22s var(--aa-ease);
  margin-bottom: 24px;
}
.aa-news-card:hover {
  box-shadow: var(--aa-shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}
.aa-news-card-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #c1d5e8;
}
.aa-news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--aa-ease);
}
.aa-news-card:hover .aa-news-card-img img {
  transform: scale(1.06);
}
.aa-news-card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}
.aa-news-tag {
  background: var(--aa-sky);
  color: var(--aa-navy);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
}
.aa-news-tag-featured {
  background: var(--aa-yellow);
  color: var(--aa-navy);
}
.aa-news-card-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  z-index: 2;
  line-height: 1.4;
}
.aa-news-card-body {
  padding: 16px 16px 18px;
}
.aa-news-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-navy);
  margin: 0 0 8px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aa-news-card-excerpt {
  font-size: 13px;
  color: var(--aa-muted);
  line-height: 1.65;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aa-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-navy);
  letter-spacing: 0.3px;
  transition: color .2s var(--aa-ease);
}
.aa-read-more:hover { color: #1a6496; }

/* ================================================================
   UPCOMING EVENTS — Full-image tiles (3 × col-sm-4)
   ================================================================ */
.aa-event-img-card {
  display: block;
  border-radius: var(--aa-radius-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--aa-shadow-md);
  transition: box-shadow .22s var(--aa-ease), transform .22s var(--aa-ease);
  margin-bottom: 24px;
}
.aa-event-img-card:hover {
  box-shadow: var(--aa-shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}
.aa-event-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #1a3a52;
}
.aa-event-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--aa-ease);
  font-size: 0;
  color: transparent;
}
.aa-event-img-card:hover .aa-event-img-wrap img {
  transform: scale(1.04);
}
.aa-event-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 42, 60, 0.88) 0%,
    rgba(14, 42, 60, 0.35) 48%,
    transparent 72%
  );
  transition: background .22s var(--aa-ease);
}
.aa-event-img-card:hover .aa-event-img-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 42, 60, 0.96) 0%,
    rgba(14, 42, 60, 0.46) 48%,
    rgba(14, 42, 60, 0.06) 72%
  );
}
.aa-event-img-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--aa-sky);
  color: var(--aa-navy);
  border-radius: var(--aa-radius-sm);
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.aa-event-img-day {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.aa-event-img-mon {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.72;
}
.aa-event-img-country {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--aa-navy);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100% - 90px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-event-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
}
.aa-event-img-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.aa-event-img-loc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.aa-event-img-loc .fa {
  margin-right: 4px;
  color: var(--aa-sky);
}

/* ================================================================
   ADSENSE SLOT PLACEHOLDER
   ================================================================ */
.aa-ad-wrap {
  padding: 16px 0;
  background: #f5f7f9;
  border-top: 1px solid var(--aa-border);
  border-bottom: 1px solid var(--aa-border);
}
.aa-ad-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #bbb;
  text-align: center;
  margin-bottom: 5px;
}
.aa-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed #d0d5da;
  background: #eef0f2;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}
.aa-ad-desktop { display: none; max-width: 728px; height: 90px; }
.aa-ad-mobile  { display: flex; max-width: 320px; height: 50px; }

/* ================================================================
   VIDEO HIGHLIGHTS — LANDSCAPE (16:9)
   ================================================================ */
.aa-video-card {
  display: block;
  background: var(--aa-bg-card);
  border-radius: var(--aa-radius-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--aa-shadow-sm);
  transition: box-shadow .22s var(--aa-ease), transform .22s var(--aa-ease);
  margin-bottom: 20px;
  cursor: pointer;
}
.aa-video-card:hover {
  box-shadow: var(--aa-shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}
.aa-video-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #111;
}
.aa-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s, transform .45s var(--aa-ease);
}
.aa-video-card:hover .aa-video-thumb img {
  opacity: 0.80;
  transform: scale(1.06);
}
.aa-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.aa-play-overlay .fa {
  font-size: 52px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  transition: transform .22s var(--aa-ease);
}
.aa-video-card:hover .aa-play-overlay .fa { transform: scale(1.15); }
.aa-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.80);
  color: #fff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 2;
}
.aa-video-info   { padding: 14px 16px; }
.aa-video-title  {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--aa-navy);
  margin-bottom: 6px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aa-video-meta { font-size: 12px; color: var(--aa-muted); }
.aa-yt-row     { text-align: center; margin-top: 16px; }
.aa-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: background .18s, transform .18s;
  font-family: inherit;
}
.aa-yt-btn:hover {
  background: #cc0000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ================================================================
   VIDEO HIGHLIGHTS — STORIES (9:16 Instagram-style)
   Desktop: 5 equal-width cards in one row
   Tablet (<992px): wrap to 3+2
   Mobile (<768px): horizontal scroll snap
   ================================================================ */
.aa-stories-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}
.aa-story-card {
  display: block;
  flex: 1 1 0;
  min-width: 130px;
  border-radius: var(--aa-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  text-decoration: none;
  box-shadow: var(--aa-shadow-md);
  transition: box-shadow .22s var(--aa-ease), transform .22s var(--aa-ease);
}
.aa-story-card:hover {
  box-shadow: var(--aa-shadow-lg);
  transform: translateY(-6px) scale(1.015);
  text-decoration: none;
}
.aa-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  position: absolute;
  inset: 0;
  transition: opacity .25s, transform .5s var(--aa-ease);
  font-size: 0;
  color: transparent;
}
.aa-story-card:hover img { opacity: 0.68; transform: scale(1.07); }
.aa-story-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: transform .22s var(--aa-ease);
}
.aa-story-card:hover .aa-story-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
}
.aa-story-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 68px 14px 16px;
  background: linear-gradient(transparent, rgba(10,28,42,0.96));
  pointer-events: none;
}
.aa-story-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 7px;
}
.aa-story-date {
  font-size: 10px;
  color: rgba(255,255,255,0.68);
  font-weight: 600;
}
.aa-story-title {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.42;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ================================================================
   TOP RANKINGS WIDGET
   ================================================================ */
.aa-rankings-section {
  background: var(--aa-bg-alt);
  padding: 64px 0;
}
.aa-rankings-inner {
  background: linear-gradient(
    135deg,
    #0b2333 0%,
    #16486e 55%,
    #0d3452 100%
  );
  border-radius: var(--aa-radius-lg);
  padding: 30px 36px 36px;
  box-shadow: 0 8px 40px rgba(14,42,60,0.35);
}
.aa-rankings-inner .aa-section-title { color: #fff; }
.aa-rankings-inner .aa-section-title::after { background: var(--aa-sky); }
.aa-rankings-inner .aa-section-subtitle { color: rgba(255,255,255,0.55); }

.aa-rankings-filters { margin-bottom: 24px; }
.aa-select-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}
.aa-select-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.aa-select-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
  display: block;
}
.aa-select-wrap {
  position: relative;
  display: inline-block;
}
.aa-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(149, 217, 254, 0.4);
  border-radius: var(--aa-radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 36px 9px 14px;
  min-width: 200px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s var(--aa-ease), background .2s var(--aa-ease);
  line-height: 1.4;
}
.aa-select:hover {
  border-color: var(--aa-sky);
  background: rgba(149, 217, 254, 0.13);
}
.aa-select:focus {
  border-color: var(--aa-sky);
  background: rgba(149, 217, 254, 0.13);
  outline: none;
  box-shadow: 0 0 0 3px rgba(149, 217, 254, 0.22);
}
.aa-select option {
  background: #0d2a3b;
  color: #fff;
  font-weight: 500;
}
.aa-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.aa-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 20px 0 0;
  flex-wrap: wrap;
  min-height: 200px;
}
.aa-podium-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--aa-radius-md);
  text-align: center;
  padding: 28px 20px 22px;
  flex: 1;
  max-width: 220px;
  min-width: 150px;
  position: relative;
  transition: box-shadow .22s var(--aa-ease), transform .22s var(--aa-ease);
}
.aa-podium-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  transform: translateY(-5px);
}
.aa-podium-card.rank-1 {
  padding-top: 38px;
  border-top: 4px solid #FFD700;
  background: rgba(255,215,0,0.07);
}
.aa-podium-card.rank-2 { border-top: 4px solid #B0B7BC; }
.aa-podium-card.rank-3 { border-top: 4px solid #CD7F32; }

.aa-rank-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid rgba(14,42,60,0.5);
}
.aa-rank-badge.gold   { background: #FFD700; color: #5a4800; }
.aa-rank-badge.silver { background: #B0B7BC; color: #fff; }
.aa-rank-badge.bronze { background: #CD7F32; color: #fff; }

.aa-athlete-name {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.3;
}
.aa-athlete-country {
  font-size: 11px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 10px;
}
.aa-athlete-time {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--aa-sky);
  margin-bottom: 5px;
  letter-spacing: 1px;
}
.rank-1 .aa-athlete-time {
  font-size: 26px;
  color: #FFD700;
}
.aa-athlete-club {
  font-size: 10.5px;
  color: rgba(255,255,255,0.42);
  font-style: italic;
}
.aa-rankings-empty {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.45);
  padding: 40px 0;
  font-style: italic;
}

/* ================================================================
   IMAGE HIGHLIGHTS GALLERY
   ================================================================ */
.aa-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.aa-filter-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--aa-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-muted);
  cursor: pointer;
  transition: all .2s var(--aa-ease);
  font-family: inherit;
}
.aa-filter-pill:hover {
  border-color: var(--aa-sky);
  color: var(--aa-navy);
  background: rgba(149,217,254,0.08);
}
.aa-filter-pill.active {
  background: var(--aa-navy);
  color: #fff;
  border-color: var(--aa-navy);
}
.aa-highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.aa-highlight-item {
  width: calc(25% - 8px);
  aspect-ratio: 1;
  border-radius: var(--aa-radius-sm);
  overflow: hidden;
  position: relative;
  background: #c1d5e8;
  box-shadow: var(--aa-shadow-sm);
  transition: opacity .3s;
}
.aa-highlight-item a { display: block; width: 100%; height: 100%; }
.aa-highlight-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s var(--aa-ease);
  font-size: 0;
  color: transparent;
}
.aa-highlight-item:hover img { transform: scale(1.10); }
.aa-highlight-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,42,60,0);
  transition: background .25s var(--aa-ease);
  pointer-events: none;
}
.aa-highlight-item:hover .aa-highlight-overlay {
  background: rgba(14,42,60,0.46);
}
.aa-highlight-overlay .fa {
  font-size: 28px;
  color: rgba(255,255,255,0);
  transition: color .25s;
}
.aa-highlight-item:hover .aa-highlight-overlay .fa {
  color: rgba(255,255,255,0.92);
}
.aa-highlight-item.aa-hidden { display: none; }

/* ================================================================
   VIDEO MODAL (aaPlayVideo)
   ================================================================ */
.aa-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-video-modal-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}
.aa-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  opacity: 0.8;
  transition: opacity .2s;
}
.aa-video-modal-close:hover { opacity: 1; }
.aa-video-modal-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.aa-video-modal-container iframe,
.aa-video-modal-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================================================
   RESPONSIVE RULES
   ================================================================ */

/* Tablet: ≤992px */
@media (max-width: 992px) {
  .aa-section { padding: 56px 0; }

  .aa-stories-row {
    flex-wrap: wrap;
  }
  .aa-story-card {
    flex: 1 1 calc(33.33% - 12px);
    min-width: 0;
  }

  .aa-select { min-width: 160px; }

  .aa-highlight-item { width: calc(33.33% - 8px); }

  .aa-ad-desktop { display: flex; }
  .aa-ad-mobile  { display: none; }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
  .aa-section { padding: 40px 0; }

  .aa-section-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stories: horizontal scroll snap */
  .aa-stories-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 12px;
  }
  .aa-stories-row::-webkit-scrollbar { height: 4px; }
  .aa-stories-row::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
  .aa-stories-row::-webkit-scrollbar-thumb { background: var(--aa-sky); border-radius: 2px; }
  .aa-story-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    aspect-ratio: 9 / 16;
    max-height: 400px;
  }

  .aa-highlight-item { width: calc(50% - 6px); }

  .aa-select-row { flex-direction: column; gap: 16px; }
  .aa-select { min-width: 100%; }

  .aa-rankings-inner { padding: 20px 18px 24px; }

  .aa-podium { gap: 10px; }
  .aa-podium-card { min-width: 120px; padding: 22px 12px 18px; }

  .aa-ad-desktop { display: none; }
  .aa-ad-mobile  { display: flex; }

  .aa-video-modal-inner { width: 96%; }
}
