:root {
  --bg: #07101f;
  --surface: rgba(15, 27, 48, 0.82);
  --surface-2: #111f35;
  --text: #f8fbff;
  --muted: #9cafc8;
  --line: rgba(255, 255, 255, .11);
  --accent: #57d78c;
  --accent-soft: rgba(87, 215, 140, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(36, 113, 255, .18), transparent 30rem),
    linear-gradient(180deg, #07101f 0%, #091426 52%, #07101f 100%);
}

body[data-world="fifa"] {
  --accent: #63e58c;
  --accent-soft: rgba(99, 229, 140, .14);
}

body[data-world="nhl"] {
  --accent: #6bbcff;
  --accent-soft: rgba(107, 188, 255, .14);
}

body[data-world="nba"] {
  --accent: #ff9f43;
  --accent-soft: rgba(255, 159, 67, .16);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 31, .78);
  backdrop-filter: blur(18px);
}

.top-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #07101f;
  background: var(--accent);
  font-weight: 900;
  letter-spacing: -1px;
}

.brand>span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.world-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.world-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.world-nav a:hover,
.world-nav a.active {
  color: var(--text);
  border-color: var(--line);
  background: var(--accent-soft);
}

.subscribe-button,
.primary-button {
  padding: 11px 17px;
  border: 0;
  border-radius: 12px;
  color: #07101f;
  background: var(--accent);
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.mobile-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -62% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(160px);
  opacity: .15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero-copy {
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.search-row {
  position: relative;
  max-width: 760px;
  margin: 34px auto 0;
}

.search-row .search-wrap {
  margin: 0;
}

.search-wrap {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 22, 39, .82);
  box-shadow: var(--shadow);
}

.search-wrap .search-submit {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.search-wrap input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-wrap input::placeholder {
  color: #7588a2;
}

.search-result-count {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  transform: translateY(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.search-wrap button,
.secondary-button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}

.hero-shortcuts {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.hero-shortcuts button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.hero-shortcuts button:hover,
.hero-shortcuts button.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 28px;
}

.category-card {
  min-height: 120px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 39, 66, .88), rgba(13, 26, 45, .88));
  box-shadow: 0 14px 42px rgba(0, 0, 0, .14);
  cursor: pointer;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--accent-soft), rgba(13, 26, 45, .94));
}

.category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 23px;
}

.category-card>span:nth-child(2) {
  display: grid;
}

.category-card small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.category-card strong {
  margin-top: 4px;
  font-size: 17px;
}

.category-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.category-card b {
  min-width: 34px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  text-align: center;
  font-size: 12px;
}

.library {
  padding-top: 24px;
  padding-bottom: 74px;
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.library-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.045em;
}

.library-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls label {
  color: var(--muted);
  font-size: 13px;
}

.controls select {
  padding: 11px 36px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #101e33;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.filter-bar p {
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: center;
}

.filter-bar strong {
  color: var(--text);
}

.status {
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 30, 51, .86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.thumbnail-link {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #13243d;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.video-card:hover .thumbnail {
  transform: scale(1.035);
}

.sport-badge,
.duration-badge {
  position: absolute;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(4, 10, 20, .82);
  backdrop-filter: blur(6px);
}

.sport-badge {
  left: 10px;
  color: var(--accent);
}

.duration-badge {
  display: none;
  right: 10px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.video-title {
  min-height: 48px;
  margin: 10px 0 13px;
  font-size: 17px;
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  font-size: 10px;
}

.watch-link {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  margin-top: 24px;
  padding: 54px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
}

.empty-state>span {
  font-size: 40px;
  color: var(--accent);
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  padding: 10px 15px;
  border: 0;
  border-radius: 11px;
  color: #07101f;
  background: var(--accent);
  font-weight: 800;
}

.load-actions {
  margin-top: 24px;
  text-align: center;
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 20, .62);
}

.footer-content {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-content p {
  color: var(--muted);
}

.footer-content>div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.portal-page {
  display: grid;
  place-items: center;
  padding: 42px 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(55, 220, 112, .18), transparent 27rem),
    radial-gradient(circle at 85% 20%, rgba(87, 165, 255, .18), transparent 30rem),
    radial-gradient(circle at 55% 90%, rgba(255, 151, 55, .17), transparent 30rem),
    #07101f;
}

.portal {
  position: relative;
  width: min(1180px, calc(100% - 36px));
}

.portal-copy {
  text-align: center;
}

.portal-brand {
  margin-bottom: 34px;
}

.portal-copy h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 94px);
  letter-spacing: -.07em;
  line-height: .95;
}

.portal-copy>p:last-of-type {
  max-width: 660px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.portal-subscribe {
  position: absolute;
  top: 0;
  right: 0;
  padding: 12px 19px;
  border-radius: 12px;
  color: #fff;
  background: #ff0000;
  font-weight: 800;
}

.portal-subscribe:hover {
  background: #cc0000;
}

.all-videos-link {
  position: absolute;
  top: 54px;
  right: 0;
  width: 174px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.all-videos-link:hover {
  color: var(--text);
}

.world-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.world-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 29, 50, .82);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: -30% -25% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--card-accent);
  filter: blur(70px);
  opacity: .32;
}

.world-card:hover {
  transform: translateY(-7px);
  border-color: var(--card-accent);
}

.fifa-world {
  --card-accent: #63e58c;
}

.nhl-world {
  --card-accent: #6bbcff;
}

.nba-world {
  --card-accent: #ff9f43;
}

.world-emoji {
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: 58px;
}

.world-card small {
  color: var(--card-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.world-card h2 {
  margin: 8px 0 10px;
  font-size: 36px;
  letter-spacing: -.04em;
}

.world-card p {
  color: var(--muted);
  line-height: 1.6;
}

.world-card b {
  margin-top: 18px;
  color: var(--card-accent);
}

.latest-videos {
  position: absolute;
  z-index: 30;
  top: 54px;
  right: 0;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 29, 50, .82);
  box-shadow: var(--shadow);
  text-align: left;
}

.latest-videos summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.latest-videos summary::-webkit-details-marker {
  display: none;
}

.latest-videos summary small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.latest-videos summary strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.latest-videos-toggle {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.latest-videos[open] .latest-videos-toggle {
  font-size: 0;
}

.latest-videos[open] .latest-videos-toggle::after {
  content: "Hide";
  font-size: 10px;
}

.latest-videos-content {
  padding-top: 10px;
}

.latest-videos-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.latest-videos-heading a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.latest-videos>p {
  color: var(--muted);
  font-size: 13px;
}

#latestVideosList {
  display: grid;
  gap: 7px;
}

.latest-video {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
}

.latest-video img {
  width: 48px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.latest-video strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-video:hover strong {
  color: var(--accent);
}

@media (max-width: 900px) {

  .dashboard,
  .video-grid,
  .world-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .world-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0c192c;
  }

  .world-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .subscribe-button {
    display: none;
  }

  .portal-subscribe {
    position: static;
    display: inline-flex;
    margin-top: 26px;
  }

  .all-videos-link {
    position: static;
    display: block;
    width: auto;
    margin: 12px auto 0;
  }

  .latest-videos {
    position: static;
    width: min(100%, 320px);
    margin: 12px auto 0;
  }

  .world-cards {
    margin-top: 32px;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .search-result-count {
    position: static;
    transform: none;
    max-width: none;
    text-align: right;
  }

  .search-row {
    display: grid;
    gap: 8px;
  }

  .dashboard,
  .video-grid,
  .world-cards {
    grid-template-columns: 1fr;
  }

  .library-heading,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .controls select {
    flex: 1;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-card {
    min-height: 330px;
  }
}

.format-card {
  border-style: dashed;
}

.format-card .category-icon {
  font-weight: 900;
  color: var(--accent);
}