/*
 * VÍDEOS DO TIMÃO
 * Aesthetic: Editorial broadcast — cable channel guide meets streaming home screen
 * Typography: Oswald (display, headers, UI) + Karla (body, metadata)
 * Palette: Monochrome black/white with single gold accent
 */

/* ─────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface-1:   #111111;
  --surface-2:   #1c1c1c;
  --surface-3:   #282828;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.13);

  --text-1:      #f0ece4;
  --text-2:      #9b9792;
  --text-3:      #555250;

  --gold:        #c9a84c;
  --gold-bright: #d4b55a;
  --gold-tint:   rgba(201,168,76,0.10);
  --gold-border: rgba(201,168,76,0.28);

  --white:       #ffffff;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;

  --pad:   16px;
  --gap:   14px;
  --max-w: 1320px;

  --font-d: 'Oswald', sans-serif;
  --font-b: 'Karla', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t:    0.18s;
}

/* ─────────────────────────────────────────
   RESET
   ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a   { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ─────────────────────────────────────────
   TOPBAR
   ───────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: opacity var(--t);
}
.logo:hover { opacity: 0.8; }

.logo strong {
  color: var(--white);
  font-weight: 700;
}

.logo-mark {
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px 11px;
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   PULSE DOT
   ───────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ─────────────────────────────────────────
   HERO FEATURE
   ───────────────────────────────────────── */
.hero-feature {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.hero-feature::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: var(--hero-bg, none) center / cover no-repeat;
  filter: blur(60px) brightness(0.12) saturate(0.6);
  z-index: 0;
  transform: scale(1.2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text { order: 2; }
.hero-media { order: 1; }

.hero-badge {
  display: inline-block;
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.07;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--text-2);
  flex-wrap: wrap;
}

.hero-channel { font-weight: 500; color: var(--text-1); }
.hero-sep     { color: var(--text-3); }

.hero-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-d);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t) var(--ease);
}

.hero-watch-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.hero-watch-btn:active {
  transform: translateY(0);
}

/* Hero thumb wrapper */
.video-thumb--hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ─────────────────────────────────────────
   CONTENT HUB
   ───────────────────────────────────────── */
.content-hub {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
}

/* Hidden page heading for non-hero pages */
.page-heading {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 28px 0 0;
}

.page-heading-sub {
  font-weight: 400;
  color: var(--text-3);
}

/* ─────────────────────────────────────────
   SECTION
   ───────────────────────────────────────── */
.vt-section { margin-top: 44px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-count {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-d);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--live {
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

/* ─────────────────────────────────────────
   VIDEO RAIL — horizontal scroll
   ───────────────────────────────────────── */
.video-rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  padding-bottom: 6px;
}

.video-rail::-webkit-scrollbar { display: none; }

.video-rail .video-card {
  flex: 0 0 260px;
  min-width: 260px;
}

/* Shorts rail — narrower cards */
.video-rail--shorts .video-card {
  flex: 0 0 160px;
  min-width: 160px;
}

/* ─────────────────────────────────────────
   VIDEO GRID
   ───────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* ─────────────────────────────────────────
   VIDEO CARD
   ───────────────────────────────────────── */
.video-card {
  background: var(--surface-1);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform var(--t) var(--ease),
    border-color var(--t),
    box-shadow var(--t);
  contain: layout style;
}

@media (hover: hover) {
  .video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-mid);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  }
}

/* ─────────────────────────────────────────
   VIDEO THUMB — click-to-play
   ───────────────────────────────────────── */
.video-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

/* 9:16 portrait for Shorts */
.video-thumb--short {
  padding-top: 177.78%;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background var(--t);
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t) var(--ease),
    color var(--t);
}

.play-btn svg { margin-left: 3px; }

.video-thumb:hover .play-overlay { background: rgba(0,0,0,0.08); }
.video-thumb:hover img             { transform: scale(1.04); }
.video-thumb:hover .play-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  transform: scale(1.12);
}

.video-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────
   CARD INFO
   ───────────────────────────────────────── */
.card-info {
  padding: 10px 12px 13px;
}

.card-title {
  font-family: var(--font-d);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-title a {
  display: block;
  transition: color var(--t);
}

.card-title a:hover { color: var(--gold); }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.card-channel {
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.card-time {
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   MATCHDAY STRIP
   ───────────────────────────────────────── */
.matchday-strip {
  margin-top: 44px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 20px 22px;
}

.matchday-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.matchday-label {
  display: block;
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.matchday-copy p {
  font-size: 0.88rem;
  color: var(--text-2);
  max-width: 400px;
  line-height: 1.5;
}

.matchday-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-mid);
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: border-color var(--t), color var(--t), background var(--t);
}

.matchday-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-tint);
}

/* ─────────────────────────────────────────
   PAGINATION
   ───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.pag-btn:hover:not(.pag-btn--disabled):not(.pag-btn--active) {
  background: var(--surface-2);
  border-color: var(--border-mid);
  color: var(--text-1);
}

.pag-btn--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
}

.pag-btn--disabled {
  opacity: 0.22;
  pointer-events: none;
  cursor: default;
}

/* ─────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-family: var(--font-d);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
  flex: 1;
}

.footer-copy a {
  color: var(--text-2);
  transition: color var(--t);
}
.footer-copy a:hover { color: var(--gold); }

.footer-admin {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: color var(--t), border-color var(--t);
}
.footer-admin:hover {
  color: var(--text-2);
  border-color: var(--border-mid);
}

.footer-channels {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.footer-channels-label {
  color: var(--text-2);
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-channels a {
  color: var(--text-3);
  transition: color var(--t);
}
.footer-channels a:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   LOAD ANIMATION — staggered fade-up
   ───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.video-card {
  animation: fade-up 0.4s var(--ease) both;
}

.video-grid .video-card:nth-child(1),
.video-rail .video-card:nth-child(1) { animation-delay: 0.02s; }
.video-grid .video-card:nth-child(2),
.video-rail .video-card:nth-child(2) { animation-delay: 0.06s; }
.video-grid .video-card:nth-child(3),
.video-rail .video-card:nth-child(3) { animation-delay: 0.10s; }
.video-grid .video-card:nth-child(4),
.video-rail .video-card:nth-child(4) { animation-delay: 0.14s; }
.video-grid .video-card:nth-child(5)  { animation-delay: 0.18s; }
.video-grid .video-card:nth-child(6)  { animation-delay: 0.22s; }
.video-grid .video-card:nth-child(7)  { animation-delay: 0.26s; }
.video-grid .video-card:nth-child(8)  { animation-delay: 0.30s; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET 600px+
   ───────────────────────────────────────── */
@media (min-width: 600px) {
  :root { --pad: 24px; --gap: 18px; }

  .topbar-inner { height: 56px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 48px var(--pad) 52px;
  }

  .hero-text  { order: 1; flex: 1 1 0; }
  .hero-media { order: 2; flex: 1.4 1 0; }

  .hero-title { -webkit-line-clamp: 3; }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
  }

  .video-rail .video-card {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .video-rail--shorts .video-card {
    flex: 0 0 175px;
    min-width: 175px;
  }

  .matchday-inner {
    flex-direction: row;
    align-items: center;
  }
  .matchday-copy { flex: 1; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — DESKTOP 1024px+
   ───────────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --pad: 32px; --gap: 20px; }

  .topbar-inner { height: 60px; }

  .logo { font-size: 1rem; }

  .hero-inner {
    padding: 60px var(--pad) 64px;
    gap: 56px;
  }

  .hero-title { -webkit-line-clamp: 4; }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-rail .video-card {
    flex: 0 0 300px;
    min-width: 300px;
  }

  .video-rail--shorts .video-card {
    flex: 0 0 190px;
    min-width: 190px;
  }

  .play-btn {
    width: 52px;
    height: 52px;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — WIDE 1280px+
   ───────────────────────────────────────── */
@media (min-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-rail .video-card {
    flex: 0 0 320px;
    min-width: 320px;
  }

  .video-rail--shorts .video-card {
    flex: 0 0 200px;
    min-width: 200px;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — TV/LARGE 1600px+
   ───────────────────────────────────────── */
@media (min-width: 1600px) {
  :root { --pad: 48px; }

  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-dot { animation: none; }
}
