/*
Theme Name: IRAF TV – ایراف تی وی
Author: Ariatech
Description: پوستهٔ راست‌چین شبکهٔ تلویزیونی ایراف تی‌وی با پشتیبانی فارسی، صفحهٔ اصلی پویا و بخش‌های اختصاصی برنامه‌ها، مستندها، روزنگار و گالری تصاویر. طراحی و توسعه توسط تیم Ariatech.
Version: 1.0.4
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iraftv
Tags: rtl-language-support, dark-mode, entertainment, video, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------------------------------------------------------
 * Abar variable font (assets/fonts) – the site-wide typeface.
 * Single variable file covers every weight (100–900); the
 * Tailwind font stacks request it first everywhere.
 * ------------------------------------------------------- */
@font-face {
	font-family: 'Abar';
	src: url('assets/fonts/Abar-VF.woff2') format('woff2-variations'),
		url('assets/fonts/Abar-VF.woff') format('woff-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------
 * Material Symbols Outlined – self-hosted subset (38 icons,
 * rlig ligatures, ~25KB). Offline-proof; no Google request.
 * ------------------------------------------------------- */
@font-face {
	font-family: 'Material Symbols Outlined';
	src: url('assets/fonts/material-symbols-outlined.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
.material-symbols-outlined{
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
 * Base – mirrors code.html <style> block + WP necessities
 * Tailwind handles layout; this file holds keyframes,
 * WP alignment helpers and fixed-header offset.
 * ------------------------------------------------------- */
html,body{
  margin:0;
  padding:0;
  font-family:'Vazirmatn','Plus Jakarta Sans',sans-serif;
  background:#0e0e11;
  color:#e4e1e6;
}
body{overscroll-behavior:none;}
::-webkit-scrollbar{display:none;}
main>:first-child{margin-top:0!important;}
main>:last-child{margin-bottom:0!important;}

/* ---------------------------------------------------------
 * Mobile type scale. Every token in tailwind.config.js holds
 * its desktop size and the templates only ever step them UP
 * at `lg:`, so a phone rendered the 40px page title and the
 * 30px section heading unchanged. Below `md` – the width the
 * layout itself collapses to one column – each token drops a
 * notch. The floor here is Persian legibility (the dotted
 * letters need ~12px to keep their marks apart), not a fixed
 * fraction of the desktop size.
 * ------------------------------------------------------- */
@media (max-width:767px){
  .text-headline-xl{font-size:22px;line-height:30px;}
  .text-headline-lg{font-size:19px;line-height:26px;}
  .text-headline-md{font-size:17px;line-height:25px;}
  .text-headline-sm{font-size:15px;line-height:23px;}
  .text-body-md{font-size:13px;line-height:21px;}
  .text-body-sm{font-size:12px;line-height:19px;}
  .text-label-lg{font-size:12px;line-height:18px;}
  .text-label-md{font-size:11px;line-height:16px;}
  .text-label-badge{font-size:10px;line-height:14px;}
}

@keyframes pulse-crimson{
  0%,100%{box-shadow:0 0 0 0 rgba(196,30,58,.6);}
  50%{box-shadow:0 0 0 10px rgba(196,30,58,0);}
}
@keyframes pulse-dot{
  0%,100%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.4);opacity:.6;}
}
.crimson-pulse{animation:pulse-crimson 2.4s infinite;}
.crimson-ping-dot{animation:pulse-dot 1.8s cubic-bezier(0,0,0.2,1) infinite;}

/* WP core alignments */
.alignright{float:right;margin-left:1.5em;}
.alignleft{float:left;margin-right:1.5em;}
.aligncenter{display:block;margin-right:auto;margin-left:auto;}
.wp-caption{max-width:100%;}
.wp-caption-text{font-size:12px;color:#A1A1AA;}

/* Header offset – header overlays the hero (absolute), h-20 (5rem) */
main{padding-top:0;}
.admin-bar header.absolute{top:32px;}
@media (max-width:782px){.admin-bar header.absolute{top:46px;}}

/* Text-only header wordmark. It stays lightweight and reveals leftward on hover/focus. */
.iraftv-wordmark{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  min-height:2.75rem;
  direction:rtl;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
}
.iraftv-wordmark__icon{display:block;flex:0 0 2.75rem;width:2.75rem;height:2.75rem;transition:transform .3s cubic-bezier(.2,.9,.3,1.5);}
.iraftv-wordmark__icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9999px;}
.iraftv-wordmark__text{
  display:block;
  order:2;
  flex:0 0 auto;
  width:0;
  height:2.75rem;
  overflow:hidden;
  background-image:var(--iraftv-wordmark-image);
  background-repeat:no-repeat;
  background-position:left center;
  background-size:auto 2.75rem;
  opacity:1;
  transition:width .45s cubic-bezier(.2,.7,.3,1);
}
.iraftv-wordmark:hover,
.iraftv-wordmark:focus-visible{
  overflow:visible;
}
.iraftv-wordmark:hover .iraftv-wordmark__text,
.iraftv-wordmark:focus-visible .iraftv-wordmark__text{
  /* The source wordmark also contains the red icon on its right. Keep the
     drawer limited to the text portion so that icon is never duplicated. */
  width:7.75rem;
}
.iraftv-wordmark:hover .iraftv-wordmark__icon,
.iraftv-wordmark:focus-visible .iraftv-wordmark__icon{transform:scale(1.15);}
.iraftv-wordmark:active .iraftv-wordmark__icon{transform:scale(.92);}
@media (prefers-reduced-motion:reduce){
  .iraftv-wordmark,
  .iraftv-wordmark__text,
  .iraftv-wordmark__icon{transition:none;}
}

/* Persian numerals helper (optional, for timeslots) */
.tabular-nums{font-variant-numeric:tabular-nums;}

/* ---------------------------------------------------------
 * Mobile nav – ultra-minimalist, Telegram-like instant feedback
 * - No tap delay, no 300ms highlight flash
 * - Active state pops instantly (0ms), hover glides (120ms)
 * ------------------------------------------------------- */
/* The hamburger is a bare glyph, exactly like the search icon next to it: no
   plate, no border, no shadow. Color is deliberately left to .text-text-primary
   so the light header of the inner pages inverts it the same way it inverts
   every other header item. */
#iraftv-mobile-toggle{
  background:none;border:0;box-shadow:none;border-radius:0;cursor:pointer;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  transition:transform .3s cubic-bezier(.2,.9,.3,1.5);
}
#iraftv-mobile-toggle:hover{transform:scale(1.15);}
#iraftv-mobile-toggle:active{transform:scale(.92);}
/* Search and the hamburger are one group. Each glyph already carries its own
   padding inside its button box (7px and 9px at the sides), so the old 12px row
   gap stacked on top of that and the pair read as two unrelated controls. The
   boxes sit flush now and the spacing comes from the glyphs alone. */
.iraftv-header-actions{gap:0;}
#iraftv-mobile-nav{
  touch-action:pan-y;
  transform-origin:top;
  transition:opacity 160ms ease-out, transform 160ms ease-out;
}
#iraftv-mobile-nav.iraftv-collapsed{opacity:0;transform:translateY(-6px) scaleY(.98);pointer-events:none;}
#iraftv-mobile-nav:not(.iraftv-collapsed){opacity:1;transform:none;}
#iraftv-mobile-nav ul{list-style:none;margin:0;padding:0;}
#iraftv-mobile-nav a{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  user-select:none;
  position:relative;
  transition:background-color 120ms ease-out, color 0ms, border-color 0ms, transform 80ms ease-out;
}
/* Instant active pop – no transition delay, theme crimson bar on the right (RTL) */
#iraftv-mobile-nav a:active{transform:scale(.97);background-color:#2a2a2d;}
#iraftv-mobile-nav a.iraftv-m-active{
  background:rgba(196,30,58,.14);
  color:#fff;
  border-color:rgba(196,30,58,.5);
}
#iraftv-mobile-nav a.iraftv-m-active::before{
  content:"";
  position:absolute;
  right:0;top:20%;bottom:20%;
  width:3px;border-radius:9999px;
  background:#c41e3a;
  box-shadow:0 0 12px rgba(196,30,58,.8);
}
@media (prefers-reduced-motion:reduce){
  #iraftv-mobile-nav{transition:none;}
  #iraftv-mobile-nav a{transition:none;}
}

/* ---------------------------------------------------------
 * Header search – bare icon + slide-out drawer (RTL).
 * Hover glides it open in place; click pins it open for
 * touch/keyboard (main.js toggles .is-open). No chip, no
 * border-box around the icon.
 * ------------------------------------------------------- */
.iraftv-search-drawer{--iraftv-search-w:min(320px,26vw);display:flex;align-items:center;}
.iraftv-search-form{width:0;overflow:hidden;display:flex;align-items:center;transition:width .45s cubic-bezier(.2,.7,.3,1);}
.iraftv-search-form input{width:var(--iraftv-search-w);border:0;border-bottom:1.5px solid rgba(255,255,255,.35);border-radius:0;background:transparent;color:#fff;font-family:inherit;font-size:14px;font-weight:500;padding:.35rem .5rem;text-align:right;outline:none;transition:border-color .25s ease;}
.iraftv-search-form input::placeholder{color:rgba(255,255,255,.6);}
.iraftv-search-form input:focus{border-bottom-color:#fff;}
.iraftv-search-drawer:hover .iraftv-search-form,
.iraftv-search-drawer.is-open .iraftv-search-form{width:var(--iraftv-search-w);}
.iraftv-search-btn{background:none;border:0;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:6px;transition:transform .3s cubic-bezier(.2,.9,.3,1.5);}
.iraftv-search-btn:hover{transform:scale(1.15);}
.iraftv-search-btn:active{transform:scale(.92);}
/* small screens: the mobile panel keeps its own search form */
@media (max-width:639px){
  .iraftv-search-drawer{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .iraftv-search-form{transition:none;}
  .iraftv-search-btn{transition:none;}
  #iraftv-mobile-toggle{transition:none;}
}

/* ---------------------------------------------------------
 * Hero slider – slide-to-right motion (text-free fullscreen)
 * ------------------------------------------------------- */
#hero-slider .slide{backface-visibility:hidden;-webkit-backface-visibility:hidden;}
@media (prefers-reduced-motion:reduce){
  #hero-slider .slide{transition:none;}
}

/* ---------------------------------------------------------
 * Hero slider core – plain CSS, zero CDN dependency.
 * Show/hide + dots work even if Tailwind CDN fails to load.
 * ------------------------------------------------------- */
#hero-slider{position:relative;width:100%;height:100vh;height:100svh;min-height:600px;max-height:1080px;overflow:hidden;background:#0e0e11;margin-top:-5rem;user-select:none;-webkit-user-select:none;}
#slides-container{position:absolute;inset:0;width:100%;height:100%;}
#hero-slider .slide{position:absolute;inset:0;opacity:0;visibility:hidden;transform:translateX(-100%);z-index:0;transition:opacity 1.2s ease,transform 1.2s ease,visibility 1.2s;will-change:transform,opacity;backface-visibility:hidden;-webkit-backface-visibility:hidden;}
#hero-slider .slide.is-active{opacity:1;visibility:visible;transform:translateX(0);z-index:10;}
#hero-slider .slide.is-exit{transform:translateX(100%);}
#hero-slider .slide-bg{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;}
/* Whole slide is the link into its post, so featured never dead-ends. */
#hero-slider .slide-link{position:absolute;inset:0;z-index:2;display:block;cursor:pointer;}
#hero-slider .slide-link:focus-visible{outline:2px solid rgba(255,255,255,.75);outline-offset:-10px;}
#hero-slider .hero-shade-top{position:absolute;left:0;right:0;top:0;height:10rem;background:linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.2),transparent);z-index:10;pointer-events:none;}
#hero-slider .hero-shade-bottom{position:absolute;left:0;right:0;bottom:0;height:8rem;background:linear-gradient(to top,rgba(0,0,0,.6),transparent);z-index:10;pointer-events:none;}
#hero-slider .hero-dots{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);z-index:20;display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none;}
#hero-slider .slide-nav-btn{background:none;border:0;padding:4px;cursor:pointer;line-height:0;}
#hero-slider .progress-bar{display:block;height:10px;width:10px;border-radius:9999px;background:rgba(255,255,255,.3);transition:all .5s ease;}
#hero-slider .slide-nav-btn:hover .progress-bar{background:rgba(255,255,255,.6);}
#hero-slider .slide-nav-btn[aria-current="true"] .progress-bar{width:40px;background:#c41e3a;box-shadow:0 0 12px rgba(196,30,58,.8);}
@media (max-width:639px){
  #hero-slider .hero-dots{bottom:1rem;gap:.35rem;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
  #hero-slider .slide-nav-btn{padding:5px;}
  #hero-slider .progress-bar{width:8px;height:8px;}
  #hero-slider .slide-nav-btn[aria-current="true"] .progress-bar{width:28px;}
}
@media (prefers-reduced-motion:reduce){
  #hero-slider .slide{transition:none;}
  #hero-slider .progress-bar{transition:none;}
}

/* ---------------------------------------------------------
 * Schedule rail – boxes stay in their slots and open one by
 * one like a drawer sliding LEFT (RTL): every 3s the open
 * panel closes and the next box slides its play panel out
 * toward the left, pushing the row smoothly. The grid-columns
 * trick animates the reveal without hard width values.
 * ------------------------------------------------------- */
/* the scroll container clips ink overflow (the open card's ring) at its
   edges, so give it padding and pull the box back out with negative
   margins to keep the layout identical */
#live-rail{padding-top:8px;padding-inline:12px;margin-top:-8px;margin-inline:-12px;}
#live-rail .live-mini{min-height:150px;cursor:pointer;position:relative;overflow:hidden;transition:background-color .3s ease,box-shadow .3s ease;}
#live-rail .live-mini.is-open{background-color:#2a2a2d;box-shadow:0 0 0 1.5px rgba(196,30,58,.65),0 0 22px -4px rgba(196,30,58,.45);}
.live-drawer{display:grid;grid-template-columns:0fr;opacity:0;transition:grid-template-columns .45s cubic-bezier(.2,.7,.3,1),opacity .35s ease;}
.live-drawer>div{overflow:hidden;min-width:0;}
.live-drawer-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;height:100%;padding-right:.75rem;border-right:1px solid rgba(255,255,255,.08);}
.live-drawer a{visibility:hidden;}
.live-mini.is-open .live-drawer{grid-template-columns:1fr;opacity:1;}
.live-mini.is-open .live-drawer a{visibility:visible;}
/* cover photo sits fully clear; only the bottom gradient keeps the text readable */
.live-mini-cover{background-size:cover;background-position:right center;transition:filter .3s ease;}
/* while the play drawer is open, image visibility fades 100% (right) → 20% (left) */
.live-mini-cover::before{content:'';position:absolute;inset:0;background:linear-gradient(to left,rgba(33,33,39,0) 0%,rgba(33,33,39,.25) 35%,rgba(33,33,39,.55) 65%,rgba(33,33,39,.8) 100%);opacity:0;transition:opacity .45s cubic-bezier(.2,.7,.3,1);}
.live-mini.is-open .live-mini-cover::before{opacity:1;}
.live-mini:hover .live-mini-cover{filter:brightness(1.18);}
/* hover: a red arc sweeps the border at even speed – the arc is an SVG
   stroke dash travelling the real rounded-rect path, so long edges and
   corners move alike (a conic-gradient angle would speed up on long edges) */
.live-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:5;opacity:0;transition:opacity .35s ease;}
.live-ring rect{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-dasharray:13 87;x:0;y:0;width:100%;height:100%;rx:24px;}
/* the orbit keeps running while hidden (opacity 0) so the dash never
   jumps back to the path start the moment the cursor leaves a box */
#live-rail .live-mini .live-ring rect{animation:live-ring 2.2s linear infinite;}
#live-rail .live-mini:hover .live-ring{opacity:1;}
@keyframes live-ring{to{stroke-dashoffset:-100;}}
@media (prefers-reduced-motion:reduce){
  .live-drawer{transition:none;}
  #live-rail .live-mini .live-ring rect{animation:none;}
}

/* ---------------------------------------------------------
 * Hover-media cards (stories + program posters) – the play
 * affordance is a bare glyph on the artwork, always visible so a
 * touch screen shows what the desktop shows. Hovering only draws
 * a hairline ring around it.
 * ------------------------------------------------------- */
.st-story-play{position:absolute;inset:0;z-index:2;display:grid;place-items:center;pointer-events:none;}
.st-story-play::before{content:"";grid-area:1/1;width:3.2rem;height:3.2rem;border:1px solid rgba(255,255,255,.8);border-radius:9999px;opacity:0;transform:scale(.62);transition:opacity .25s ease,transform .45s cubic-bezier(.2,.9,.3,1.35);}
.st-story-play__icon{grid-area:1/1;display:block;width:1.5rem;height:1.5rem;color:#fff;opacity:.94;filter:drop-shadow(0 2px 12px rgba(0,0,0,.6));transition:opacity .25s ease,transform .45s cubic-bezier(.2,.9,.3,1.35);}
.st-hover-media:hover .st-story-play::before,
.st-hover-media:focus-visible .st-story-play::before{opacity:1;transform:scale(1);}
.st-hover-media:hover .st-story-play__icon,
.st-hover-media:focus-visible .st-story-play__icon{opacity:1;transform:scale(1.06);}
.st-hover-media img,
.st-hover-media video{transition:transform .5s ease,filter .35s ease;}
.st-hover-media:hover img,
.st-hover-media:hover video{transform:scale(1.06);filter:brightness(.72);}
@media (prefers-reduced-motion:reduce){
  .st-hover-media .st-story-play,
  .st-hover-media .st-story-play::before,
  .st-hover-media .st-story-play__icon,
  .st-hover-media img,
  .st-hover-media video{transition:none;}
  .st-hover-media:hover img,
  .st-hover-media:hover video{transform:none;}
}

/* ---------------------------------------------------------
 * Stories rail (front-page.php) – a row of 9:16 story cards
 * that bleeds to the edge of the screen. The row glides one
 * card at a time; whichever card sits in the middle of the
 * frame gets the red ring and a repeatedly fading play icon
 * (main.js toggles it).
 * ------------------------------------------------------- */
#stories-container{position:relative;}
/* The rail has no end: it runs out to the edge of the screen, so the row is cut
   by the frame instead of stopping on the section's gutter. The page gutter moves
   inside the scroller (the first card still lines up with the heading) and the
   cards keep the width they had, so the bleed only adds neighbours. The block
   padding – cancelled by the same negative margin – is what lets the centre
   card's red ring and its shadow be drawn whole: a scroller clips its children
   at its own content box, and both of those live outside the card's box. */
#stories-container{--st-gutter:1.5rem;width:100vw;margin-block:-2rem;margin-inline:calc(50% - 50vw);padding:2rem var(--st-gutter);}
@media (min-width:1024px){
  #stories-container{--st-gutter:3rem;}
}
/* Six cards fill the 1440 frame: each is a sixth of it minus the five 16px gaps
   between them. front-page.php repeats the row enough times to cover this
   viewport past the wrap point, so the two numbers have to move together;
   main.js measures the width rather than assuming it. */
#stories-container .st-flow-card{width:calc((min(1440px,100vw) - var(--st-gutter) * 2 - 80px)/6);}
@media (max-width:768px){
  #stories-container .st-flow-card{width:calc((min(1440px,100vw) - var(--st-gutter) * 2 - 16px)/2);}
}
/* The ring is sized against the card, so it shrinks with it instead of
   turning into a lid on the smaller frame. */
#stories-container .st-story-play::before{width:2.9rem;height:2.9rem;}
#stories-container .st-story-play__icon{width:1.35rem;height:1.35rem;}
.st-flow-card.is-center{box-shadow:0 22px 60px rgba(0,0,0,.65),0 0 0 2.5px #c41e3a,0 0 30px rgba(196,30,58,.35);}
/* The card the rail parks on keeps its ring drawn; the glyph no longer pulses,
   which was the part that read as a stock video widget. */
.st-flow-card.is-center .st-story-play::before{opacity:.72;transform:scale(1);}
.st-flow-card.is-center .st-story-play__icon{opacity:1;}
.st-flow-card.is-center:hover .st-story-play::before,
.st-flow-card.is-center:focus-visible .st-story-play::before{opacity:1;transform:scale(1.06);}

/* Homepage program cards: keep the mobile card concise and let the artwork
   breathe; the full synopsis and host metadata remain available on larger
   screens where the overlay has room. */
@media (max-width:639px){
  .iraftv-programs-section{padding-block:2.75rem;}
  .iraftv-programs-section .iraftv-program-grid{gap:1rem;}
  .iraftv-program-card{border-radius:1rem;}
  .iraftv-program-card__content{padding:1rem;}
  .iraftv-program-card__time{top:.65rem;right:.65rem;padding:.3rem .55rem;font-size:.68rem;line-height:1.25rem;}
  .iraftv-program-card .st-story-play::before{width:2.8rem;height:2.8rem;}
  .iraftv-program-card .st-story-play__icon{width:1.25rem;height:1.25rem;}
  .iraftv-program-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:0;font-size:1rem;line-height:1.55;}
  .iraftv-program-card__excerpt,.iraftv-program-card__host{display:none;}
  .iraftv-program-card__content>div:first-child{margin-bottom:.35rem;}
}
@media (min-width:640px) and (max-width:1023px){
  .iraftv-programs-section{padding-block:3.5rem;}
  .iraftv-programs-section .iraftv-program-grid{gap:1.125rem;}
  .iraftv-program-card__content{padding:1.1rem;}
  .iraftv-program-card__title{font-size:1.1rem;line-height:1.5;}
  .iraftv-program-card__excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin-bottom:.45rem;}
}

/* ---------------------------------------------------------
 * Documentary watch page – description box on the right,
 * player + action bar on the left (RTL grid). Plain CSS on
 * purpose: the order utilities are not in compiled app.css,
 * so Tailwind classes alone would silently do nothing.
 * DOM order stays player-first, so mobile (single column)
 * still shows playback before the text.
 * ------------------------------------------------------- */
@media (min-width:768px){
  .doc-watch-player{order:2;}
  .doc-watch-desc{order:1;}
}

/* ---------------------------------------------------------
 * Showcase sliders (docs + gallery, front-page.php) –
 * crossfading slides, progress dots and nav controls.
 * Dots sit over the image, so they stay light in both themes.
 * ------------------------------------------------------- */
.doc-slide{opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s;pointer-events:none;}
.doc-slide.is-active{opacity:1;visibility:visible;z-index:1;pointer-events:auto;}
.doc-dot{display:inline-block;width:1.5rem;height:3px;border-radius:9999px;background:rgba(255,255,255,.35);border:0;padding:0;cursor:pointer;transition:all .3s ease;}
.doc-dot:hover{background:rgba(255,255,255,.6);}
.doc-dot.is-on{width:2.4rem;background:#c41e3a;box-shadow:0 0 12px rgba(196,30,58,.8);}
@media (prefers-reduced-motion:reduce){
  .doc-slide{transition:none;}
}

/* ---------------------------------------------------------
 * Gallery viewer (front-page.php #gal-slider) – modern look:
 * Ken Burns zoom, top progress segments, ghost index number,
 * floating glass caption, edge arrows and a filmstrip below.
 * Fill/bar timing matches data-interval="5000" on the markup.
 * ------------------------------------------------------- */
#gal-slider .doc-slide img{transform:scale(1.12);}
#gal-slider .doc-slide{transition:opacity .3s ease,visibility .3s;}
#gal-slider .doc-slide.is-active img{animation:gal-zoom 5s ease-out forwards;}
@keyframes gal-zoom{from{transform:scale(1.12);}to{transform:scale(1);}}
.gal-segs{position:absolute;top:0;right:0;left:0;z-index:10;display:flex;gap:.4rem;padding:1.1rem 1.25rem;}
@media (max-width:640px){#gal-slider .gal-segs{padding-top:.4rem;}}
#gal-slider .gal-segs .doc-dot{flex:1 1 0%;width:auto;height:3px;position:relative;overflow:hidden;background:rgba(255,255,255,.28);box-shadow:none;}
#gal-slider .gal-segs .doc-dot::after{content:"";position:absolute;inset:0;border-radius:inherit;background:#fff;transform:scaleX(0);transform-origin:right;}
#gal-slider .gal-segs .doc-dot.is-on{background:rgba(255,255,255,.28);width:auto;box-shadow:none;}
#gal-slider .gal-segs .doc-dot.is-on::after{animation:gal-fill 5s linear forwards;}
@keyframes gal-fill{from{transform:scaleX(0);}to{transform:scaleX(1);}}
.doc-nav-btn.gal-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:10;width:2.9rem;height:2.9rem;border-radius:.9rem;background:rgba(12,12,16,.5);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .25s ease,transform .25s ease;}
.doc-nav-btn.gal-nav:hover{background:rgba(12,12,16,.75);transform:translateY(-50%) scale(1.06);}
.gal-nav--next{right:1rem;}
.gal-nav--prev{left:1rem;}
.gal-caption{position:absolute;bottom:1.4rem;right:1.4rem;z-index:5;max-width:min(26rem,68%);background:rgba(12,12,16,.55);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.14);border-radius:1.1rem;padding:1rem 1.25rem;text-align:right;pointer-events:none;}
@media (prefers-reduced-motion:reduce){
  #gal-slider .doc-slide.is-active img{animation:none;transform:scale(1);}
  #gal-slider .gal-segs .doc-dot.is-on::after{animation:none;transform:scaleX(1);}
}

/* ---------------------------------------------------------
 * Online video player (template-parts/player.php) – 16:9
 * frame; oEmbed iframes and native <video> fill it entirely.
 * ------------------------------------------------------- */
.iraftv-player{aspect-ratio:16/9;width:min(100%,calc(72vh * 16 / 9));margin-inline:auto;}
.iraftv-player iframe,
.iraftv-player video{display:block;width:100%;height:100%;border:0;}
/* Watch layout (single.php): the player fills its column instead of the viewport cap. */
.watch-grid .iraftv-player{width:100%;margin-inline:0;}
article a{color:#ffb3b4;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(196,30,58,.5);transition:text-decoration-color .2s ease,color .2s ease;}
article a:hover{color:#fff;text-decoration-color:#e5043e;}

/* ---------------------------------------------------------
 * Video action bar (single pages) – Apple-style frosted glass:
 * circular icon buttons, spring hover lift, soft tooltips that
 * reveal the name, glass dropdown for download qualities.
 * ------------------------------------------------------- */
/* Tabler Icons (outline, MIT) — the same 24-unit grid and 2-unit stroke the
   video player uses, so the bar below it and the controls inside it match. */
.iraftv-action-icon{display:block;flex:none;width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.iraftv-menu-item .iraftv-action-icon{width:1.125rem;height:1.125rem;}
.iraftv-pill{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:9999px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.iraftv-pill-divider{width:1px;height:20px;background:rgba(255,255,255,.12);}
.iraftv-action-btn{position:relative;display:flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;height:44px;padding:0 .8rem;border-radius:9999px;font-size:13px;font-weight:700;color:#e4e1e6;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);cursor:pointer;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:transform .35s cubic-bezier(.2,.9,.3,1.4),background-color .25s ease,border-color .25s ease,color .25s ease;}
.iraftv-action-btn:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#fff;transform:translateY(-2px);}
.iraftv-action-btn:active{transform:scale(.92);}
.iraftv-action-btn.is-voted{color:#ffb3b4;border-color:rgba(196,30,58,.45);background:rgba(196,30,58,.12);}
.iraftv-action-btn.is-voted [data-fill]{fill:currentColor;color:#ffb3b4;}
/* buttons inside the like/dislike pill: the pill itself is the glass
   layer – a second button background behind them looked like a ghost box */
.iraftv-pill .iraftv-action-btn{background:transparent;border-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;}
.iraftv-pill .iraftv-action-btn:hover{background:rgba(255,255,255,.08);border-color:transparent;}
.iraftv-pill .iraftv-action-btn.is-voted{background:rgba(196,30,58,.14);}
/* soft tooltip: name appears on hover */
.iraftv-action-btn::after{content:attr(data-tip);position:absolute;top:calc(100% + 9px);right:50%;transform:translateX(50%) translateY(-4px);white-space:nowrap;background:rgba(28,28,32,.92);border:1px solid rgba(255,255,255,.12);color:#e4e1e6;font-size:11px;font-weight:700;padding:.3rem .65rem;border-radius:.6rem;opacity:0;pointer-events:none;transition:opacity .2s ease .12s,transform .2s ease .12s;z-index:30;}
.iraftv-action-btn:hover::after{opacity:1;transform:translateX(50%) translateY(0);}
/* glass dropdown */
.iraftv-menu{min-width:270px;background:rgba(28,28,32,.88);border:1px solid rgba(255,255,255,.12);border-radius:1.1rem;box-shadow:0 18px 50px rgba(0,0,0,.55);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overflow:hidden;transform-origin:top right;animation:iraftv-menu-in .28s cubic-bezier(.2,.9,.3,1.15);}
@keyframes iraftv-menu-in{from{opacity:0;transform:translateY(-6px) scale(.96);}to{opacity:1;transform:translateY(0) scale(1);}}
.iraftv-menu-title{padding:.65rem .95rem .3rem;font-size:11px;font-weight:700;color:#8a8890;}
.iraftv-menu-item{display:flex;align-items:center;gap:.6rem;width:100%;padding:.6rem .95rem;font-size:13px;font-weight:700;color:#e4e1e6;background:transparent;border:0;text-align:right;cursor:pointer;transition:background-color .15s ease;}
.iraftv-menu-item span{white-space:nowrap;}
.iraftv-menu-item:hover{background:rgba(255,255,255,.07);color:#fff;}
.iraftv-menu-size{margin-inline-start:auto;font-size:11px;color:#8a8890;font-weight:400;}
#iraftv-toast{position:fixed;bottom:1.5rem;right:50%;transform:translateX(50%) translateY(12px);z-index:100;padding:.6rem 1.1rem;border-radius:.75rem;background:rgba(28,28,32,.92);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 30px rgba(0,0,0,.6);color:#e4e1e6;font-size:13px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;}
#iraftv-toast.is-visible{opacity:1;transform:translateX(50%) translateY(0);}

/* ---------------------------------------------------------
 * Archive pagination – crimson buttons + dark surface cards
 * the_posts_pagination() markup: nav.pagination > .nav-links
 * ------------------------------------------------------- */
.iraftv-pagination .nav-links{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center;}
.iraftv-pagination .page-numbers{
  min-width:2.5rem;height:2.5rem;padding:0 .75rem;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:.75rem;font-size:14px;font-weight:600;line-height:20px;
  background:#212127;color:#e3bebd;border:1px solid rgba(255,255,255,.08);
  transition:all 120ms ease-out;text-decoration:none;
}
.iraftv-pagination a.page-numbers:hover{border-color:rgba(196,30,58,.5);color:#fff;background:#2a2a2d;}
.iraftv-pagination .page-numbers.current{
  background:#c41e3a;color:#fff;border-color:#c41e3a;
  box-shadow:0 0 24px -4px rgba(196,30,58,.55);font-weight:700;
}
.iraftv-pagination .page-numbers.dots{background:transparent;border-color:transparent;color:#63636E;}

/* ---------------------------------------------------------
 * Story viewer (single-stories.php) – vertical 9:16 stage.
 * The clip's own first frame IS the cover: no poster art, and
 * nothing plays until the visitor presses the ring.
 * ------------------------------------------------------- */
.iraftv-story-wrap{background:#0e0e11;}
.iraftv-story-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;min-height:calc(100vh - 5rem);min-height:calc(100svh - 5rem);padding:1.5rem 1rem 2rem;overflow:hidden;}
.iraftv-story-glow{position:absolute;top:-12rem;left:50%;transform:translateX(-50%);width:46rem;height:46rem;border-radius:9999px;background:radial-gradient(circle,rgba(196,30,58,.3),rgba(196,30,58,0) 62%);filter:blur(50px);pointer-events:none;}
.iraftv-story-back{position:absolute;top:1rem;right:1.25rem;z-index:6;display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:9999px;background:rgba(24,24,28,.72);border:1px solid rgba(255,255,255,.1);color:#cfcdd2;font-size:11px;font-weight:700;line-height:14px;backdrop-filter:blur(10px);transition:color .2s ease,border-color .2s ease;}
.iraftv-story-back:hover{color:#fff;border-color:rgba(196,30,58,.55);}
.iraftv-story-frame{position:relative;aspect-ratio:9/16;width:min(100%,calc(64vh * 9 / 16));width:min(100%,calc(64svh * 9 / 16));background:#000;border-radius:1.6rem;overflow:hidden;box-shadow:0 30px 80px -24px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.08);}
.iraftv-story-video,
.iraftv-story-embed,
.iraftv-story-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;}
.iraftv-story-embed iframe{display:block;width:100%;height:100%;border:0;}
.iraftv-story-poster{background-size:cover;background-position:center;}
.iraftv-story-shade{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.34) 46%,rgba(0,0,0,0));pointer-events:none;}
.iraftv-story-progress{position:absolute;top:.85rem;right:.9rem;left:.9rem;z-index:5;display:flex;gap:.28rem;}
.iraftv-story-seg{flex:1;height:3px;border-radius:9999px;background:rgba(255,255,255,.26);overflow:hidden;}
.iraftv-story-seg i{display:block;height:100%;width:100%;background:#fff;transform:scaleX(0);transform-origin:right;transition:transform .1s linear;}
.iraftv-story-seg.is-current i{transform:scaleX(var(--iraftv-story-ratio,0));}
.iraftv-story-seg.is-done i{transform:scaleX(1);}
.iraftv-story-counter{position:absolute;bottom:1.15rem;left:1.15rem;z-index:4;font-size:11px;font-weight:700;letter-spacing:.04em;color:rgba(255,255,255,.7);}
.iraftv-story-meta{position:absolute;right:1.15rem;left:3.2rem;bottom:1.15rem;z-index:4;text-align:right;}
.iraftv-story-title{font-size:17px;line-height:26px;font-weight:800;color:#fff;text-shadow:0 2px 16px rgba(0,0,0,.65);}
.iraftv-story-sub{margin-top:.3rem;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:11px;font-weight:700;color:rgba(255,255,255,.74);}
.iraftv-story-dot{opacity:.45;}
.iraftv-story-views{display:inline-flex;align-items:center;gap:.2rem;}
.iraftv-story-badge{display:inline-block;margin-bottom:.55rem;padding:.22rem .5rem;border-radius:.4rem;background:#c41e3a;color:#fff;font-size:11px;font-weight:700;line-height:14px;}
.iraftv-story-badge.is-live{animation:iraftv-story-blink 1.6s ease-in-out infinite;}
@keyframes iraftv-story-blink{0%,100%{opacity:1;}50%{opacity:.45;}}
.iraftv-story-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;width:4.6rem;height:4.6rem;border-radius:9999px;border:1px solid rgba(255,255,255,.3);background:rgba(196,30,58,.9);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 40px rgba(0,0,0,.6);transition:transform .28s cubic-bezier(.2,.9,.3,1.2),opacity .22s ease,background-color .2s ease;}
.iraftv-story-play span{font-size:34px;}
.iraftv-story-play:hover{transform:translate(-50%,-50%) scale(1.08);background:#c41e3a;}
.iraftv-story-frame.is-playing .iraftv-story-play,.iraftv-story-frame.is-playing .iraftv-story-nav{opacity:0;pointer-events:none;}
.iraftv-story-frame.is-playing .iraftv-story-play{transform:translate(-50%,-50%) scale(.8);}
.iraftv-story-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:2.5rem;height:2.5rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(8px);opacity:.5;transition:opacity .2s ease,background-color .2s ease;}
.iraftv-story-nav:hover{opacity:1;background:rgba(196,30,58,.85);}
.iraftv-story-nav.is-prev{right:.7rem;}
.iraftv-story-nav.is-next{left:.7rem;}
.iraftv-story-empty-note{position:absolute;top:50%;right:1.2rem;left:1.2rem;transform:translateY(-50%);z-index:4;text-align:right;font-size:12px;font-weight:700;line-height:22px;color:rgba(255,255,255,.82);}
.iraftv-strip-row{position:relative;z-index:4;display:flex;align-items:center;gap:.65rem;width:100%;max-width:62rem;}
.iraftv-strip-btn{flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#cfcdd2;cursor:pointer;transition:background-color .2s ease,color .2s ease,opacity .2s ease;}
.iraftv-strip-btn:hover{background:rgba(196,30,58,.85);color:#fff;}
.iraftv-strip-btn.is-disabled{opacity:.25;pointer-events:none;}
.iraftv-strip-row.is-static .iraftv-strip-btn{display:none;}
.iraftv-story-strip{flex:1 1 auto;min-width:0;display:flex;gap:.6rem;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x proximity;padding:.35rem .1rem .5rem;scrollbar-width:none;}
.iraftv-story-strip::-webkit-scrollbar{display:none;}
.iraftv-story-thumb{position:relative;scroll-snap-align:center;flex:0 0 auto;aspect-ratio:9/16;height:clamp(8.5rem,22vh,12rem);border-radius:.9rem;overflow:hidden;background:#1b1b1e;border:1px solid rgba(255,255,255,.08);opacity:.6;transition:opacity .2s ease,border-color .2s ease,transform .2s ease;}
.iraftv-story-thumb video,
.iraftv-story-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.iraftv-story-thumb:hover{opacity:1;transform:translateY(-2px);}
.iraftv-story-thumb.is-active{opacity:1;border-color:#c41e3a;box-shadow:0 0 18px -4px rgba(196,30,58,.75);}
.iraftv-story-thumb-label{position:absolute;right:0;left:0;bottom:0;padding:.6rem .35rem .35rem;font-size:10px;line-height:1.3;text-align:center;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,0));opacity:0;transition:opacity .2s ease;}
.iraftv-story-thumb:hover .iraftv-story-thumb-label,.iraftv-story-thumb.is-active .iraftv-story-thumb-label{opacity:1;}
.iraftv-story-thumb-blank{position:absolute;inset:0;background:#2a2a2d;}
@media (prefers-reduced-motion:reduce){
  .iraftv-story-strip{scroll-behavior:auto;}
  .iraftv-story-badge.is-live{animation:none;}
  .iraftv-story-play,.iraftv-story-thumb,.iraftv-story-seg i{transition:none;}
}

/* ---------------------------------------------------------
 * Stories archive carousel – one card owns the center, the
 * rest queue on both sides and slide left as the turn passes.
 * ------------------------------------------------------- */
/* The archive's own heading band is gone and the dark section already starts
   flush under the nav bar, so this band carries almost no top padding — the
   row sits as high as it can, and the stage takes whatever height is left.
   The dots and the count live under the stage, not inside it. */
.iraftv-carousel-wrap{padding:1.25rem 0;background:#111114;}
.iraftv-carousel{position:relative;}
.iraftv-carousel-stage{position:relative;height:clamp(26.75rem,calc(100vh - 12.5rem),42.5rem);height:clamp(26.75rem,calc(100svh - 12.5rem),42.5rem);overflow:hidden;}
/* The queue dissolves before it reaches the frame: a card wrapping around the
   loop never pops into view halfway across the stage. */
.iraftv-carousel-track{position:absolute;inset:0;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 88%,transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 12%,#000 88%,transparent 100%);}
.iraftv-carousel-card{position:absolute;top:0;left:50%;height:100%;aspect-ratio:9/16;will-change:transform,opacity;transition:transform .65s cubic-bezier(.22,.8,.28,1),opacity .5s ease,filter .5s ease;}
.iraftv-carousel-card.is-parked{pointer-events:none;}
.iraftv-carousel-link{position:absolute;inset:0;display:block;border-radius:1.5rem;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px -22px rgba(0,0,0,.9);transition:border-color .35s ease,box-shadow .35s ease;}
.iraftv-carousel-card.is-active .iraftv-carousel-link{border-color:rgba(196,30,58,.8);box-shadow:0 26px 70px -18px rgba(196,30,58,.45),0 0 0 1px rgba(196,30,58,.55);}
/* pointer-events:none keeps the click off the media itself: a focused video
   inside an aria-hidden card trips Chrome's a11y warning. */
.iraftv-carousel-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;pointer-events:none;}
.iraftv-carousel-blank{position:absolute;inset:0;background:#2a2a2d;}
/* The story's clock, and its scrubber: it sits at the bottom of the card,
   fills left to right, and drags. The rail is a pseudo-element so the hit
   strip can be taller than the 3px line — Tailwind's border-box would let
   padding swallow a fixed-height bar's visible fill. */
.iraftv-carousel-progress{position:absolute;bottom:.15rem;right:.95rem;left:.95rem;z-index:4;display:flex;align-items:center;height:1.25rem;opacity:0;pointer-events:none;touch-action:none;transition:opacity .3s ease;}
.iraftv-carousel-card.is-active .iraftv-carousel-progress{pointer-events:auto;}
.iraftv-carousel-progress.is-live{opacity:1;}
.iraftv-carousel-progress::before{content:"";position:absolute;right:0;left:0;top:50%;height:3px;margin-top:-1.5px;border-radius:9999px;background:rgba(255,255,255,.26);}
.iraftv-carousel-progress i{position:relative;z-index:1;display:block;width:100%;height:3px;border-radius:9999px;background:#fff;transform:scaleX(0);transform-origin:left;}
.iraftv-carousel-card.is-active .iraftv-carousel-progress:hover i{background:#c41e3a;}
.iraftv-carousel-shade{position:absolute;left:0;right:0;bottom:0;height:54%;background:linear-gradient(to top,rgba(0,0,0,.92),rgba(0,0,0,.32) 46%,rgba(0,0,0,0));pointer-events:none;}
.iraftv-carousel-caption{position:absolute;right:0;left:0;bottom:0;z-index:2;display:block;padding:1rem .95rem 1.65rem;text-align:right;}
.iraftv-carousel-title{display:block;font-size:16px;line-height:25px;font-weight:800;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.6);}
.iraftv-carousel-play{position:absolute;top:50%;left:50%;z-index:3;width:4.4rem;height:4.4rem;margin:0;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:9999px;background:rgba(196,30,58,.92);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transform:translate(-50%,-50%) scale(.7);box-shadow:0 12px 40px rgba(0,0,0,.6);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.9,.3,1.3);}
.iraftv-carousel-play::after{content:"";position:absolute;inset:-.65rem;border-radius:9999px;border:2px solid rgba(255,255,255,.16);border-top-color:#fff;border-right-color:rgba(255,255,255,.9);opacity:0;animation:iraftv-ring-spin 1.1s linear infinite;animation-play-state:paused;}
.iraftv-carousel-play span{font-size:32px;}
.iraftv-carousel-card.is-active .iraftv-carousel-play{opacity:1;transform:translate(-50%,-50%) scale(1);}
.iraftv-carousel-card.is-active .iraftv-carousel-link:hover .iraftv-carousel-play,.iraftv-carousel-card.is-active .iraftv-carousel-link:focus-visible .iraftv-carousel-play{transform:translate(-50%,-50%) scale(1.08);}
.iraftv-carousel-card.is-active .iraftv-carousel-link:hover .iraftv-carousel-play::after,.iraftv-carousel-card.is-active .iraftv-carousel-link:focus-visible .iraftv-carousel-play::after{opacity:1;animation-play-state:running;}
@keyframes iraftv-ring-spin{to{transform:rotate(360deg);}}
/* While its own clip runs the card shows the film, not the button; hovering
   brings the control back with a pause glyph. */
.iraftv-carousel-card.is-playing .iraftv-carousel-play{opacity:0;}
.iraftv-carousel-card.is-playing .iraftv-carousel-link:hover .iraftv-carousel-play,.iraftv-carousel-card.is-playing .iraftv-carousel-link:focus-visible .iraftv-carousel-play{opacity:1;transform:translate(-50%,-50%) scale(1);}
.iraftv-carousel-card.is-playing .iraftv-carousel-link:hover .iraftv-carousel-play::after,.iraftv-carousel-card.is-playing .iraftv-carousel-link:focus-visible .iraftv-carousel-play::after{opacity:0;}
/* direction:ltr stops Material Symbols from mirroring the chevrons in an RTL
   page, so each arrow points the way its button actually walks the row. */
.iraftv-carousel-nav{direction:ltr;position:absolute;top:50%;transform:translateY(-50%);z-index:30;width:2.75rem;height:2.75rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff;cursor:pointer;opacity:.65;backdrop-filter:blur(8px);transition:opacity .2s ease,background-color .2s ease;}
.iraftv-carousel-nav:hover{opacity:1;background:rgba(196,30,58,.85);}
.iraftv-carousel-nav.is-next{right:clamp(.4rem,3vw,2.2rem);}
.iraftv-carousel-nav.is-prev{left:clamp(.4rem,3vw,2.2rem);}
.iraftv-carousel-dots{position:relative;z-index:6;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;margin-top:.75rem;}
.iraftv-carousel-dot{width:auto;padding:0;border:0;background:transparent;cursor:pointer;}
.iraftv-carousel-dot i{display:block;width:1.5rem;height:3px;border-radius:9999px;background:rgba(255,255,255,.2);transition:background-color .3s ease,width .3s ease;}
.iraftv-carousel-dot:hover i{background:rgba(255,255,255,.45);}
.iraftv-carousel-dot.is-active i{width:2.4rem;background:#c41e3a;}
.iraftv-carousel-hint{margin:.5rem 0 0;text-align:center;font-size:11px;font-weight:700;letter-spacing:.04em;color:rgba(255,255,255,.45);}
@media (prefers-reduced-motion:reduce){
  .iraftv-carousel-card,.iraftv-carousel-play,.iraftv-carousel-link{transition:none;}
  .iraftv-carousel-play::after{animation:none;}
}

/* ---------------------------------------------------------
 * Live-TV page
 * ------------------------------------------------------- */
.iraftv-live-player{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:1rem;background:#050507;border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 55px rgba(0,0,0,.5);}
.iraftv-live-player video,.iraftv-live-embed,.iraftv-live-embed iframe{display:block;width:100%;height:100%;border:0;background:#000;}
.iraftv-live-player video{object-fit:contain;}
.iraftv-live-embed{position:absolute;inset:0;}
.iraftv-live-player-badge{position:absolute;top:1rem;right:1rem;z-index:3;display:inline-flex;align-items:center;gap:.45rem;padding:.38rem .7rem;border-radius:9999px;background:rgba(8,8,10,.72);border:1px solid rgba(255,255,255,.15);color:#fff;font-size:.75rem;font-weight:800;backdrop-filter:blur(10px);}
.iraftv-live-dot{display:inline-block;flex:0 0 auto;animation:iraftv-live-pulse 1.5s ease-in-out infinite;}
@keyframes iraftv-live-pulse{0%,100%{box-shadow:0 0 0 0 rgba(196,30,58,.6);}50%{box-shadow:0 0 0 .35rem rgba(196,30,58,0);}}
.iraftv-live-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;padding:2rem;text-align:center;background:radial-gradient(circle at 50% 35%,rgba(196,30,58,.18),transparent 55%),#09090c;color:#fff;}
.iraftv-live-empty .material-symbols-outlined{font-size:3.5rem;color:#c41e3a;}
.iraftv-live-empty h2{font-size:1.25rem;font-weight:900;}
.iraftv-live-empty p{max-width:30rem;color:rgba(255,255,255,.65);font-size:.9rem;line-height:1.9;}
.iraftv-live-status{position:absolute;right:1rem;bottom:1rem;z-index:3;padding:.35rem .65rem;border-radius:.5rem;background:rgba(0,0,0,.7);color:rgba(255,255,255,.72);font-size:.7rem;}
@media (prefers-reduced-motion:reduce){.iraftv-live-dot{animation:none;}}
