:root {
  --bg: #0d1117;
  --card: #161b22;
  --accent: #ff1744;
  --accent-hover: #ff3d63;
  --text: #ffffff;
  --muted: #8b949e;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

/* ── TOPBAR ── */
.topbar {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.brand-logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text);
}
.text-accent {
  color: var(--accent);
}
.nav-link {
  color: var(--muted) !important;
  transition: color 0.2s;
  font-size: 0.92rem;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
}
.nav-admin {
  color: var(--accent) !important;
}
.navbar-toggler {
  background: var(--accent);
  border-color: var(--accent);
  padding: 0.5rem 0.65rem;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 23, 68, 0.35);
}
.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(255, 23, 68, 0.3);
  transition: all 0.2s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 23, 68, 0.4);
}
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn-outline-light {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline-light:hover {
  background: var(--glass);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── FORMS ── */
.search-box .form-control,
.search-box .input-group-text,
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}
.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 23, 68, 0.5);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(255, 23, 68, 0.15);
}
.form-control::placeholder {
  color: var(--muted);
}
.form-label {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── FLASH TOAST ── */
.flash-toast {
  position: fixed;
  top: 80px;
  right: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation:
    slideIn 0.3s ease,
    fadeOut 0.4s ease 3.5s forwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(2px) brightness(0.35);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.95) 0%,
    rgba(13, 17, 23, 0.5) 60%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-poster-wrap {
  position: relative;
  display: inline-block;
}
.hero-poster {
  width: 100%;
  max-width: 320px;
  border-radius: 1.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}
.hero-poster-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(255, 23, 68, 0.25) 0%,
    transparent 70%
  );
  z-index: -1;
  border-radius: 50%;
}

/* ── BADGES ── */
.badge-pill-accent {
  display: inline-block;
  background: rgba(255, 23, 68, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 23, 68, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-pill-muted {
  display: inline-block;
  background: var(--glass);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ── FILTER CHIPS ── */
.filter-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.filter-chip.active,
.filter-chip:hover {
  background: rgba(255, 23, 68, 0.15);
  color: var(--text);
  border-color: rgba(255, 23, 68, 0.4);
}

/* ── SECTIONS ── */
.section-shell {
  margin-bottom: 2.5rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-title a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.section-title a:hover {
  color: var(--accent) !important;
}

/* ── MEDIA ROW ── */
.media-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.media-row::-webkit-scrollbar {
  height: 5px;
}
.media-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* ── MEDIA CARD ── */
.media-card {
  min-width: 230px;
  flex: 0 0 230px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  scroll-snap-align: start;
}
.media-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.media-card img {
  height: 285px;
  width: 100%;
  object-fit: cover;
}
.media-card .card-body {
  padding: 0.9rem;
}
.media-card .meta {
  color: var(--muted);
  font-size: 0.8rem;
}
.media-card .btn {
  width: 100%;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

/* ── PLANS SECTION ── */
.plans-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 23, 68, 0.04) 50%,
    transparent 100%
  );
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.plan-card--featured {
  border-color: rgba(255, 23, 68, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 23, 68, 0.2),
    0 20px 40px rgba(255, 23, 68, 0.1);
}
.plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
}

/* ── PREMIUM CARD ── */
.plan-premium-card {
  position: relative;
  background: linear-gradient(145deg, #1a0a0f 0%, #1e1020 50%, #0f0d1a 100%);
  border: 1px solid rgba(255, 23, 68, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 23, 68, 0.12),
    0 24px 60px rgba(255, 23, 68, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.plan-premium-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 23, 68, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.plan-premium-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 23, 68, 0.3),
    0 32px 70px rgba(255, 23, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.plan-premium-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 23, 68, 0.15);
  color: #ff6b8a;
  border: 1px solid rgba(255, 23, 68, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-popular-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-premium-price {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ff8fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plan-premium-feature {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
}
.plan-premium-feature i {
  color: #ff6b8a;
  font-size: 1rem;
  flex-shrink: 0;
}
.btn-premium {
  background: linear-gradient(135deg, var(--accent) 0%, #c2185b 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(255, 23, 68, 0.4);
  transition: all 0.2s;
}
.btn-premium:hover {
  background: linear-gradient(135deg, #ff3d63 0%, #d81b60 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 23, 68, 0.5);
}

/* ── VIDEO BADGES ── */
.media-card-thumb {
  position: relative;
}
.media-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.video-badge-pago {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.2),
    rgba(255, 23, 68, 0.2)
  );
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.video-badge-gratis {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(25, 135, 84, 0.15);
  color: #4ade80;
  border: 1px solid rgba(25, 135, 84, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* ── VFX PLAYER CUSTOMIZADO ── */
.vfx-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 1.2rem;
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
}
.vfx-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1.2rem;
}
.vfx-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: opacity .2s;
  pointer-events: none;
  border-radius: 1.2rem;
}
.vfx-big-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,23,68,.85);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: transform .15s, background .15s;
  box-shadow: 0 4px 24px rgba(255,23,68,.5);
}
.vfx-big-play:hover { transform: scale(1.1); background: #ff1744; }
.vfx-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .5rem .75rem .65rem;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
  border-radius: 0 0 1.2rem 1.2rem;
  transition: opacity .3s;
}
.vfx-player.hide-controls .vfx-controls { opacity: 0; pointer-events: none; }
.vfx-player.hide-controls .vfx-play-overlay { opacity: 0; }
.vfx-progress-wrap { position: relative; height: 18px; display: flex; align-items: center; margin-bottom: .3rem; }
.vfx-progress-bg {
  position: absolute; left: 0; right: 0; height: 4px;
  background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden;
}
.vfx-progress-buf { position: absolute; left: 0; height: 100%; background: rgba(255,255,255,.3); border-radius: 999px; width: 0; transition: width .3s; }
.vfx-progress-fill { position: absolute; left: 0; height: 100%; background: #ff1744; border-radius: 999px; width: 0; }
.vfx-seek {
  position: absolute; left: 0; right: 0; width: 100%;
  height: 18px; opacity: 0; cursor: pointer; margin: 0;
  accent-color: #ff1744;
}
.vfx-seek:hover ~ .vfx-progress-bg { height: 6px; }
.vfx-btns { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.vfx-btn {
  background: none; border: none; color: #fff;
  font-size: 1rem; padding: .25rem .4rem; border-radius: .4rem;
  cursor: pointer; transition: color .15s, background .15s; line-height: 1;
  display: flex; align-items: center;
}
.vfx-btn:hover, .vfx-btn.active { color: #ff1744; }
.vfx-vol {
  width: 70px; accent-color: #ff1744; cursor: pointer;
  height: 4px; border-radius: 999px;
}
.vfx-time { color: rgba(255,255,255,.75); font-size: .78rem; white-space: nowrap; }
/* Menus flutuantes */
.vfx-menu-wrap { position: relative; }
.vfx-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #1a1f27;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .75rem;
  padding: .4rem;
  min-width: 170px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.vfx-menu.open { display: block; animation: fadeIn .15s ease; }
.vfx-menu-title { color: #8b949e; font-size: .72rem; font-weight: 600; padding: .3rem .6rem .4rem; text-transform: uppercase; letter-spacing: .05em; }
.vfx-menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: #e6edf3;
  font-size: .85rem; padding: .45rem .75rem;
  border-radius: .5rem; cursor: pointer; transition: background .12s;
}
.vfx-menu-item:hover { background: rgba(255,255,255,.07); }
.vfx-menu-item.active { color: #ff1744; font-weight: 600; }
/* Legenda no vídeo */
::cue { background: rgba(0,0,0,.75); color: #fff; font-size: 1rem; border-radius: .25rem; }

/* ── PLAYER LOCK ── */
.player-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 1.2rem;
}
.cta-section {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 23, 68, 0.08) 0%,
    transparent 70%
  );
}

/* ── CARDS GENÉRICOS ── */
.hero-card,
.section-card,
.profile-card,
.info-card,
.auth-card,
.search-hero,
.player-sidebar,
.comments-panel,
.next-video-card,
.category-card {
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.border-accent {
  border-color: rgba(255, 23, 68, 0.5) !important;
}

/* ── PLAYER ── */
.player-shell {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--border);
}
.player-shell .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.player-shell .btn-outline-light:hover,
.player-shell .btn-outline-light:focus {
  background: #ff1744;
  border-color: #ff1744;
  color: #fff;
}
.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  min-height: 70vh;
  background: #000;
  aspect-ratio: 9/16;
  margin: 0 auto;
  max-width: 420px;
  animation: fadeIn 0.6s ease;
}
.player-frame img,
.player-frame video,
.player-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YouTube wrapper — oculta título e sugestões */
.yt-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #000;
}
.yt-wrapper iframe {
  position: absolute;
  top: -60px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 120px);
  border: none;
  pointer-events: auto;
}
.yt-top-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #000;
  z-index: 3;
}
.yt-bottom-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #000;
  z-index: 3;
}
/* Bloqueia clique no logo do YouTube (canto inferior esquerdo) */
.yt-logo-block {
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 120px;
  height: 40px;
  z-index: 4;
  cursor: default;
}
/* Bloqueia canto superior direito (menu de opções) */
.yt-menu-block {
  position: absolute;
  top: 62px;
  right: 0;
  width: 60px;
  height: 40px;
  z-index: 4;
  cursor: default;
}
.player-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.3rem 1.3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
}
.action-pill {
  border-radius: 999px;
  padding-inline: 0.95rem;
  font-size: 0.85rem;
}
.comments-panel {
  display: none;
}
.comments-panel.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
.next-video-card {
  transition: transform 0.25s;
}
.next-video-card:hover {
  transform: translateY(-3px);
}

/* ── AUTH ── */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 23, 68, 0.18), transparent 30%),
    var(--bg);
}

/* ── PROFILE ── */
.profile-avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
}

/* ── SEARCH ── */
.search-box-large .form-control {
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.9);
}
.footer a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--text);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.97);
  border-top: 1px solid var(--border);
  display: none;
  justify-content: space-around;
  padding: 0.65rem 0 0.5rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
}
.mobile-nav a {
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.5rem;
  transition: color 0.2s;
}
.mobile-nav a i {
  font-size: 1.25rem;
}
.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--accent);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 44px;
  height: 44px;
  display: none;
  z-index: 999;
  padding: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  .player-frame {
    min-height: 60vh;
  }
}
@media (max-width: 768px) {
  .media-card {
    min-width: 190px;
    flex-basis: 190px;
  }
  .mobile-nav {
    display: flex;
  }
  body {
    padding-bottom: 4.5rem;
  }
  .player-frame {
    max-width: 100%;
    min-height: 70vh;
  }
  .hero {
    min-height: auto;
    padding: 4rem 0 2rem;
  }
}
@media (max-width: 576px) {
  .media-card {
    min-width: 168px;
    flex-basis: 168px;
  }
  .media-card img {
    height: 210px;
  }
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .plan-price {
    font-size: 1.8rem;
  }
}
