/* ══════════════════════════════════════════════════════════════════════════════
   FalaTV Player — Design System v2
   Mobile-first · Dark · Modern
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — YouTube Red */
  --primary:       #FF0000;
  --primary-dim:   rgba(255,0,0,.12);
  --primary-glow:  rgba(255,0,0,.28);

  --bg:            #090909;
  --surface:       #111111;
  --surface-2:     #191919;
  --surface-3:     #222222;
  --border:        #252525;
  --border-bright: #333333;

  --text:          #FFFFFF;
  --text-2:        #999999;
  --text-3:        #555555;

  --live:          #FF2D2D;
  --success:       #22C55E;

  /* Spacing */
  --page-px:       16px;
  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-full:   9999px;

  /* Layout */
  --header-h:      56px;
  --nav-h:         60px;
  --safe-t:        env(safe-area-inset-top,    0px);
  --safe-b:        env(safe-area-inset-bottom, 0px);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body#ftv-body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: contain;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

/* Esconde elementos do tema WordPress */
body#ftv-body > *:not(#ftv-app):not(#wpadminbar),
body#ftv-body .site-header, body#ftv-body .site-footer,
body#ftv-body header:not(#ftv-header), body#ftv-body footer:not(#ftv-bottom-nav),
body#ftv-body nav:not(#ftv-bottom-nav), body#ftv-body aside,
body#ftv-body .widget-area, body#ftv-body .sidebar,
body#ftv-body .entry-header, body#ftv-body .entry-footer { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
input { font: inherit; }

/* ══════════════════════════════════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════════════════════════════════ */

#ftv-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

#ftv-main {
  flex: 1;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 4px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HEADER — Glassmorphism
   ══════════════════════════════════════════════════════════════════════════════ */

#ftv-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,9,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-t);
  transition: box-shadow .3s;
}

#ftv-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.6);
}

.ftv-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
  gap: 8px;
}

/* Logo */
.ftv-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ftv-logo-mark {
  width: 30px; height: 30px;
  background: #FF0000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(255,0,0,.4);
}

.ftv-logo-mark svg { width: 16px; height: 16px; }

.ftv-logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.ftv-logo-text span { color: var(--primary); }

/* Header actions */
.ftv-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ftv-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background .15s, color .15s;
}

.ftv-icon-btn:active, .ftv-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.ftv-icon-btn svg { width: 20px; height: 20px; }

/* Live pill no header */
.ftv-header-live {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: opacity .15s;
  flex-shrink: 0;
}

.ftv-header-live:active { opacity: .8; }

.ftv-header-live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: ftv-pulse 1.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--page-px) 12px;
  animation: ftv-slidedown .2s ease;
}

.ftv-search-bar.hidden { display: none; }

.ftv-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.ftv-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px; height: 16px;
  color: var(--text-3);
  pointer-events: none;
}

.ftv-search-bar input {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 36px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.ftv-search-bar input:focus { border-color: var(--primary); }
.ftv-search-bar input::placeholder { color: var(--text-3); }

.ftv-search-cancel {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
}

.ftv-search-cancel:active { opacity: .7; }

.ftv-search-results-header {
  padding: 10px var(--page-px);
  font-size: 13px;
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIVE BANNER
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--page-px);
  background: linear-gradient(90deg, rgba(230,57,70,.18) 0%, rgba(230,57,70,.06) 100%);
  border-bottom: 1px solid rgba(230,57,70,.25);
  cursor: pointer;
  position: fixed;
  top: calc(var(--header-h) + var(--safe-t));
  left: 0; right: 0;
  z-index: 99;
  -webkit-tap-highlight-color: transparent;
}

.ftv-live-banner ~ #ftv-main {
  padding-top: calc(var(--header-h) + 44px);
}

.ftv-live-pulse {
  flex-shrink: 0;
  width: 10px; height: 10px;
  background: var(--live);
  border-radius: 50%;
  animation: ftv-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--live);
}

.ftv-live-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--live);
  background: rgba(255,45,45,.12);
  border: 1px solid rgba(255,45,45,.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.ftv-live-banner-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ftv-live-banner-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — Pill indicator
   ══════════════════════════════════════════════════════════════════════════════ */

#ftv-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,9,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
}

.ftv-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.ftv-nav-item svg {
  width: 22px; height: 22px;
  transition: transform .15s;
}

.ftv-nav-item:active svg { transform: scale(.88); }

.ftv-nav-item.active { color: var(--primary); }

/* Indicador vermelho acima do item ativo (estilo YouTube) */
.ftv-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ftv-nav-item.active::before { transform: translateX(-50%) scaleX(1); }

/* Underline indicator */
.ftv-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 0;
  border-radius: var(--radius-full);
  transition: none;
}

/* Live badge */
.ftv-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  min-width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  border: 2px solid rgba(9,9,9,.92);
  animation: ftv-pulse 1.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TAB CONTENT
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-tab-content { display: none; }
.ftv-tab-content.active { display: block; animation: ftv-fadein .22s ease; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-hero {
  padding: 12px var(--page-px) 4px;
}

.ftv-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}

.ftv-hero-card:active { opacity: .92; transform: scale(.99); transition: transform .1s, opacity .1s; }

.ftv-hero-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ftv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1)  0%,
    rgba(0,0,0,.05) 35%,
    rgba(0,0,0,.55) 65%,
    rgba(0,0,0,.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.ftv-hero-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--live);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  width: fit-content;
}

.ftv-hero-live-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: ftv-pulse 1.2s ease-in-out infinite;
}

.ftv-hero-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.ftv-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

.ftv-hero-play-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.ftv-hero-play-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-section {
  padding: 16px 0 4px;
}

.ftv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px) 12px;
}

.ftv-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ftv-section-title svg { width: 18px; height: 18px; color: var(--primary); }

.ftv-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.ftv-see-all:active { opacity: .7; }
.ftv-see-all svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════════════════════
   VIDEO GRID & CARDS
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 var(--page-px);
}

/* Card */
.ftv-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .12s, opacity .12s;
}

.ftv-card:active { transform: scale(.96); opacity: .85; }

.ftv-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
}

.ftv-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.ftv-card:hover .ftv-thumb { transform: scale(1.03); }

/* Play overlay */
.ftv-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.ftv-card:hover .ftv-play-overlay,
.ftv-card:active .ftv-play-overlay { opacity: 1; }

.ftv-play-circle {
  width: 40px; height: 40px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftv-play-circle svg { width: 18px; height: 18px; }

/* Badge LIVE */
.ftv-badge-live-sm {
  position: absolute;
  top: 7px; left: 7px;
  background: var(--live);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px;
}

.ftv-badge-live-sm::before {
  content: '';
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: ftv-pulse 1.2s ease-in-out infinite;
}

/* Card info */
.ftv-card-body {
  padding: 8px 9px 10px;
}

.ftv-card-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ftv-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.ftv-meta-dot {
  width: 2px; height: 2px;
  background: var(--text-3);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHORTS
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px var(--page-px);
}

.ftv-short-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .12s, opacity .12s;
}

.ftv-short-card:active { transform: scale(.95); opacity: .85; }

.ftv-short-thumb-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--surface-2);
  overflow: hidden;
}

.ftv-short-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.ftv-short-card:hover .ftv-short-thumb { transform: scale(1.04); }

.ftv-short-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,.85) 100%
  );
}

.ftv-short-center-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.ftv-short-card:hover .ftv-short-center-play,
.ftv-short-card:active .ftv-short-center-play { opacity: 1; }

.ftv-short-center-play svg { width: 18px; height: 18px; }

.ftv-short-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 8px 8px;
}

.ftv-short-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════════════════════════════════════════
   AO VIVO
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-live-hero {
  padding: 12px var(--page-px);
}

.ftv-live-frame-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(230,57,70,.2);
}

.ftv-live-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.ftv-live-details {
  padding: 14px 0 4px;
}

.ftv-live-tag-big {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,45,45,.12);
  border: 1.5px solid rgba(255,45,45,.4);
  color: var(--live);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.ftv-live-tag-big-dot {
  width: 7px; height: 7px;
  background: var(--live);
  border-radius: 50%;
  animation: ftv-pulse 1.2s ease-in-out infinite;
}

.ftv-live-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
}

.ftv-live-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PLAYLISTS
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-playlists {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ftv-playlist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--page-px);
  cursor: pointer;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}

.ftv-playlist-row:active { background: var(--surface); }

.ftv-playlist-thumb {
  position: relative;
  flex-shrink: 0;
  width: 114px; height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.ftv-playlist-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ftv-playlist-count-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 4px;
}

.ftv-playlist-info { flex: 1; min-width: 0; }

.ftv-playlist-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.ftv-playlist-sub {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ftv-chevron { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   PLAYER MODAL — Bottom sheet
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  animation: ftv-fadein .2s ease;
}

.ftv-modal-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: ftv-slideup .28s cubic-bezier(0.25,0.46,0.45,0.94);
  padding-bottom: calc(12px + var(--safe-b));
}

/* Drag handle */
.ftv-modal-handle {
  width: 36px; height: 4px;
  background: var(--border-bright);
  border-radius: var(--radius-full);
  margin: 10px auto 6px;
}

.ftv-modal-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

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

.ftv-modal-close-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  width: 32px; height: 32px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ftv-modal-close-btn svg { width: 14px; height: 14px; }

.ftv-modal-body { padding: 14px var(--page-px) 8px; }

.ftv-modal-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.ftv-modal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-2);
}

.ftv-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}

.ftv-btn:active { opacity: .82; transform: scale(.97); }

.ftv-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 3px 12px var(--primary-glow); }
.ftv-btn-ghost   { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-bright); }
.ftv-btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }

.ftv-btn svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  min-height: 38vh;
  gap: 10px;
}

.ftv-empty-icon {
  font-size: 52px;
  margin-bottom: 4px;
  filter: grayscale(30%);
}

.ftv-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.ftv-empty-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 260px;
  line-height: 1.5;
}

.ftv-empty-hint {
  font-size: 12px;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOAD MORE
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-load-more {
  display: flex;
  justify-content: center;
  padding: 20px var(--page-px) 8px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SKELETON LOADERS
   ══════════════════════════════════════════════════════════════════════════════ */

.ftv-skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: ftv-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

.ftv-skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.ftv-skeleton-thumb {
  aspect-ratio: 16/9;
}

.ftv-skeleton-line {
  height: 12px;
  margin: 10px 9px 5px;
  border-radius: var(--radius-full);
}

.ftv-skeleton-line-short {
  height: 10px;
  width: 60%;
  margin: 0 9px 10px;
  border-radius: var(--radius-full);
}

/* Divider */
.ftv-divider {
  height: 1px;
  background: var(--border);
  margin: 4px var(--page-px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

@keyframes ftv-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ftv-slideup {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes ftv-slidedown {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes ftv-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

@keyframes ftv-shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet+
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
  .ftv-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftv-shorts-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .ftv-grid { grid-template-columns: repeat(4,1fr); gap: 14px; }
  .ftv-hero-title { font-size: 20px; }

  /* Modal centralizado em tablet */
  .ftv-modal-backdrop { align-items: center; justify-content: center; }
  .ftv-modal-sheet {
    width: 580px;
    max-width: 95vw;
    border-radius: var(--radius-lg);
    max-height: 88vh;
  }
}

/* Admin bar do WordPress */
.admin-bar #ftv-header { top: 32px !important; }
.admin-bar .ftv-live-banner { top: calc(var(--header-h) + 32px) !important; }

@media (max-width: 782px) {
  .admin-bar #ftv-header { top: 46px !important; }
  .admin-bar .ftv-live-banner { top: calc(var(--header-h) + 46px) !important; }
}

/* ── Stats row ─────────────────────────────────────────────────────────────── */
.ftv-stats-row {
  display: flex;
  gap: 0;
  padding: 10px var(--page-px) 0;
}

.ftv-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-right: 1px solid var(--border);
}

.ftv-stat:last-child { border-right: none; }

.ftv-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.ftv-stat-label {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 3px;
  font-weight: 500;
}

.ftv-stat-live .ftv-stat-num { font-size: 16px; }

/* ── API hint ──────────────────────────────────────────────────────────────── */
.ftv-api-hint {
  margin-top: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  max-width: 300px;
}

.ftv-api-hint p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ftv-api-hint ol {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 16px;
  line-height: 1.8;
}

.ftv-api-hint strong { color: var(--text); }
