/**
 * assets/css/ozantv.css
 * Stili dedicati a OzanTV — caricati SOLO nelle pagine video
 * Non impattano il resto del sito.
 *
 * Palette: variabili CSS già definite nel tema (--navy-deep, --gold, ecc.)
 *
 * @package ozanews
 */

/* ──────────────────────────────────────────────────────────────────
   VARIABILI LOCALI (fallback se le var del tema non sono caricate)
   ────────────────────────────────────────────────────────────────── */
:root {
  --ozantv-navy-deep: var(--navy-deep, #081b30);
  --ozantv-navy:      var(--navy, #0e2a47);
  --ozantv-navy-mid:  #173a5e;
  --ozantv-teal:      var(--teal, #1f6f6b);
  --ozantv-teal-br:   #2e8f89;
  --ozantv-gold:      var(--gold, #cba135);
  --ozantv-gold-soft: #e2c265;
  --ozantv-cream:     #f6f2e9;
  --ozantv-ink:       #0d1520;
  --ozantv-ink-soft:  #4a5568;
  --ozantv-line:      rgba(246,242,233,0.12);
  --ozantv-radius-sm: 8px;
  --ozantv-radius-md: 12px;
  --ozantv-radius-lg: 16px;
}

/* ──────────────────────────────────────────────────────────────────
   PAGE HEAD
   ────────────────────────────────────────────────────────────────── */
.ozantv-page-head {
  background: var(--ozantv-navy-deep);
  color: var(--ozantv-cream);
  padding: 32px 0 72px;
}

.ozantv-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ozantv-gold-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ozantv-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5a4e;
  box-shadow: 0 0 0 3px rgba(255,90,78,0.25);
  flex-shrink: 0;
}

.ozantv-h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ozantv-h1 span { color: var(--ozantv-gold-soft); }

.ozantv-desc {
  color: rgba(246,242,233,0.72);
  font-size: 16px;
  max-width: 540px;
  margin: 0;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────
   HERO CARD
   ────────────────────────────────────────────────────────────────── */
.ozantv-hero-wrap {
  max-width: 1200px;
  margin: -44px auto 0;
  padding: 0 24px;
}

.ozantv-hero-card {
  background: var(--ozantv-navy);
  border-radius: var(--ozantv-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(8,27,48,0.55);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 900px) { .ozantv-hero-card { grid-template-columns: 1fr; } }

/* Player facciata */
.ozantv-hero-player {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a2038, #123350 45%, #1c4f5a);
  cursor: pointer;
  overflow: hidden;
}

.ozantv-hero-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ozantv-hero-player:hover .ozantv-hero-thumb { transform: scale(1.03); }

.ozantv-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--ozantv-gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 3;
}

.ozantv-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--ozantv-gold-soft);
}

.ozantv-play-btn:focus-visible {
  outline: 3px solid var(--ozantv-cream);
  outline-offset: 4px;
}

.ozantv-play-btn svg {
  width: 26px; height: 26px;
  fill: var(--ozantv-navy-deep);
  margin-left: 4px;
}

.ozantv-live-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: #ff5a4e;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
  z-index: 3;
}

.ozantv-duration-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(8,27,48,0.82);
  color: var(--ozantv-cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
}

/* Iframe iniettato al click */
.ozantv-hero-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
}

/* Info laterali hero */
.ozantv-hero-info {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ozantv-cream);
}

.ozantv-hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ozantv-gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.ozantv-hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.25;
  margin: 0 0 14px;
}

.ozantv-hero-title a {
  color: inherit;
  text-decoration: none;
}

.ozantv-hero-title a:hover { color: var(--ozantv-gold-soft); }

.ozantv-hero-desc {
  color: rgba(246,242,233,0.72);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ozantv-hero-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(246,242,233,0.5);
  border-top: 1px solid var(--ozantv-line);
  padding-top: 16px;
  margin-bottom: 16px;
}

.ozantv-hero-footer .dot { opacity: .4; }

.ozantv-watch-btn {
  display: inline-flex;
  align-items: center;
  background: var(--ozantv-gold);
  color: var(--ozantv-navy-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s ease;
}

.ozantv-watch-btn:hover { background: var(--ozantv-gold-soft); }

/* ──────────────────────────────────────────────────────────────────
   FILTRI
   ────────────────────────────────────────────────────────────────── */
.ozantv-filters-wrap {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 24px;
}

.ozantv-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ozantv-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.ozantv-chip {
  border: 1.5px solid rgba(13,21,32,0.15);
  background: transparent;
  color: var(--ozantv-ink);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Source Sans 3', sans-serif;
}

.ozantv-chip:hover { border-color: var(--ozantv-teal); color: var(--ozantv-teal); }

.ozantv-chip--active {
  background: var(--ozantv-navy);
  border-color: var(--ozantv-navy);
  color: var(--ozantv-cream);
}

.ozantv-chip:focus-visible { outline: 2px solid var(--ozantv-teal); outline-offset: 2px; }

.ozantv-comune-select {
  margin-left: auto;
  border: 1.5px solid rgba(13,21,32,0.15);
  background: #fff;
  color: var(--ozantv-ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}

@media (max-width: 600px) {
  .ozantv-comune-select { margin-left: 0; width: 100%; }
  .ozantv-filters { flex-direction: column; align-items: stretch; }
  .ozantv-chips { justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────────
   WAVE DIVIDER
   ────────────────────────────────────────────────────────────────── */
.ozantv-wave {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 40px;
}

/* ──────────────────────────────────────────────────────────────────
   PLAYLIST ROWS
   ────────────────────────────────────────────────────────────────── */
.ozantv-playlist {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.ozantv-playlist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ozantv-playlist-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  color: var(--ozantv-ink);
}

.ozantv-see-all {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ozantv-teal);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ozantv-see-all:hover { color: var(--ozantv-navy); }

.ozantv-playlist-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ozantv-playlist-scroll::-webkit-scrollbar { height: 5px; }
.ozantv-playlist-scroll::-webkit-scrollbar-thumb {
  background: rgba(13,21,32,0.15);
  border-radius: 10px;
}

/* ──────────────────────────────────────────────────────────────────
   VCARD (card video generica)
   ────────────────────────────────────────────────────────────────── */
.ozantv-vcard {
  scroll-snap-align: start;
  flex: 0 0 264px;
  background: #fff;
  border-radius: var(--ozantv-radius-md);
  overflow: hidden;
  border: 1px solid rgba(13,21,32,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ozantv-vcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(13,21,32,0.22);
}

.ozantv-vcard-thumb-link { display: block; }

.ozantv-vcard-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ozantv-navy-mid), var(--ozantv-teal));
  overflow: hidden;
}

.ozantv-vcard-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ozantv-vcard:hover .ozantv-vcard-thumb img { transform: scale(1.04); }

.ozantv-play-mini {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(246,242,233,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ozantv-vcard:hover .ozantv-play-mini {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(246,242,233,1);
}

.ozantv-play-mini svg {
  width: 14px; height: 14px;
  fill: var(--ozantv-navy-deep);
  margin-left: 2px;
}

.ozantv-badge-dur {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(8,27,48,0.8);
  color: var(--ozantv-cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
}

.ozantv-live-badge-sm {
  position: absolute;
  top: 8px; left: 8px;
  background: #ff5a4e;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.ozantv-live-badge-sm .ozantv-live-dot {
  width: 6px; height: 6px;
  box-shadow: 0 0 0 2px rgba(255,90,78,0.3);
}

.ozantv-vcard-body { padding: 14px; }

.ozantv-vcard-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ozantv-teal);
  margin-bottom: 6px;
  display: block;
}

.ozantv-vcard-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ozantv-ink);
}

.ozantv-vcard-title a {
  color: inherit;
  text-decoration: none;
}

.ozantv-vcard-title a:hover { color: var(--ozantv-teal); }

.ozantv-vcard-foot {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ozantv-ink-soft);
}

/* ──────────────────────────────────────────────────────────────────
   GRIGLIA TUTTI I VIDEO
   ────────────────────────────────────────────────────────────────── */
.ozantv-grid-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px 80px;
}

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

.ozantv-video-grid .ozantv-vcard {
  flex: none;
}

@media (max-width: 900px) { .ozantv-video-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ozantv-video-grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────────────
   PAGINAZIONE
   ────────────────────────────────────────────────────────────────── */
.ozantv-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.ozantv-page-num {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(13,21,32,0.15);
  color: var(--ozantv-ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ozantv-page-num:hover { border-color: var(--ozantv-teal); color: var(--ozantv-teal); }
.ozantv-page-num.ozantv-page--active { background: var(--ozantv-navy); color: var(--ozantv-cream); border-color: var(--ozantv-navy); }

/* ──────────────────────────────────────────────────────────────────
   NO RESULTS
   ────────────────────────────────────────────────────────────────── */
.ozantv-no-results {
  text-align: center;
  color: var(--ozantv-ink-soft);
  font-size: 15px;
  padding: 48px 0;
}

/* ──────────────────────────────────────────────────────────────────
   MOBILE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ozantv-hero-wrap { padding: 0 16px; margin-top: -32px; }
  .ozantv-hero-info { padding: 20px; }
  .ozantv-hero-title { font-size: 18px; }
  .ozantv-playlist { padding: 0 16px; }
  .ozantv-grid-section { padding: 0 16px 60px; }
  .ozantv-playlist-title { font-size: 18px; }
  .ozantv-vcard { flex: 0 0 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .ozantv-play-btn, .ozantv-vcard, .ozantv-hero-thumb {
    transition: none !important;
    animation: none !important;
  }
}
