/* =========================================================
   INDIAVAANI — Header + Live Player
   ========================================================= */

:root{
  --iv-blue-900:#0D2E7A;
  --iv-blue-800:#0D47A1;
  --iv-blue-700:#1246A0;
  --iv-blue-600:#1E5FD9;
  --iv-blue-500:#2E6FEA;
  --iv-orange-600:#FF7A00;
  --iv-orange-500:#FF9800;
  --iv-orange-400:#FFA726;

  --iv-bg:#F6F8FC;
  --iv-surface:#FFFFFF;
  --iv-surface-2:#F0F3F9;
  --iv-text:#101828;
  --iv-text-muted:#5B6472;
  --iv-border:#E6E9F0;
  --iv-shadow: 0 8px 24px rgba(13,46,122,.08);
  --iv-shadow-lg: 0 20px 48px rgba(13,46,122,.16);
  --iv-radius:16px;

  --font-heading:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;
}

[data-theme="dark"]{
  --iv-bg:#070B14;
  --iv-surface:#0F1626;
  --iv-surface-2:#141C30;
  --iv-text:#EEF2FA;
  --iv-text-muted:#93A0B8;
  --iv-border:#212B42;
  --iv-shadow: 0 8px 24px rgba(0,0,0,.4);
  --iv-shadow-lg: 0 20px 48px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top: 76px; max-width:100%; overflow-x:hidden; }

body{
  font-family: var(--font-body);
  background: var(--iv-bg);
  color: var(--iv-text);
  transition: background .3s ease, color .3s ease;
  max-width:100%;
  overflow-x:hidden;
}

img, svg{ max-width:100%; height:auto; }

h1,h2,h3,h4,h5,h6{ font-family: var(--font-heading); font-weight:700; color: var(--iv-text); }

a{ color:inherit; }

.text-orange{ color: var(--iv-orange-600) !important; }

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--iv-orange-600), var(--iv-blue-600));
  z-index:2000; transition: width .1s ease-out;
}

/* =========================================================
   HEADER
   ========================================================= */
.iv-header{
  background: var(--iv-surface);
  border-bottom: 1px solid var(--iv-border);
  z-index: 1030;
  transition: box-shadow .3s ease, background .3s ease;
}
.iv-header.scrolled{ box-shadow: var(--iv-shadow); }

.iv-brand{ gap:.6rem; }
.iv-logo{ height:44px; width:auto; }
.iv-logo-dark{ display:none; }
[data-theme="dark"] .iv-logo-light{ display:none; }
[data-theme="dark"] .iv-logo-dark{ display:block; }
.iv-brand-text{
  font-family: var(--font-heading);
  font-weight:800;
  font-size:1.35rem;
  letter-spacing:.5px;
  color: var(--iv-blue-800);
}
[data-theme="dark"] .iv-brand-text{ color:#EAF0FF; }

.iv-nav-link{
  position:relative;
  padding:.65rem .65rem;
  font-weight:600;
  font-size:.85rem;
  color: var(--iv-text);
  text-decoration:none;
  border-radius:8px;
  white-space:nowrap;
  transition: color .2s ease, background .2s ease;
}
.iv-nav-link:hover{ color: var(--iv-blue-700); background: var(--iv-surface-2); }

.iv-actions{ gap:.4rem; position:relative; }

.iv-icon-btn{
  width:40px; height:40px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: transparent; border:none; color: var(--iv-text);
  font-size:1.05rem; transition: background .2s ease, color .2s ease, transform .2s ease;
  position:relative;
}
.iv-icon-btn:hover{ background: var(--iv-surface-2); color: var(--iv-blue-700); transform: translateY(-1px); }

.btn.iv-btn-live{
  background: linear-gradient(135deg, #E11D2E, #B7101F);
  color:#fff; font-weight:700; border:none; border-radius:10px;
  padding:.5rem 1rem; display:inline-flex; align-items:center; gap:.4rem;
  box-shadow: 0 6px 16px rgba(225,29,46,.35);
  transition: transform .2s ease, padding .2s ease;
  flex-shrink:0;
}
.btn.iv-btn-live:hover{ transform: translateY(-2px); color:#fff; }

.iv-live-dot{
  width:8px; height:8px; border-radius:50%; background:#fff; display:inline-block;
  animation: pulseDot 1.4s infinite;
}
.iv-badge-live .iv-live-dot{ background:#fff; }
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(255,255,255,.6); }
  70%{ box-shadow:0 0 0 8px rgba(255,255,255,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,255,255,0); }
}

/* Mobile off-canvas nav */
.iv-mobile-nav{
  max-height:0; overflow:hidden; background: var(--iv-surface);
  border-top:1px solid transparent; transition: max-height .35s ease, border-color .3s ease;
  padding: 0 1rem;
}
.iv-mobile-nav.open{ max-height:600px; border-top-color: var(--iv-border); padding:1rem; }
.iv-mobile-nav .iv-nav-link{ display:block; padding:.7rem .5rem; border-bottom:1px solid var(--iv-border); border-radius:0; }

/* =========================================================
   LIVE PLAYER
   ========================================================= */
.iv-hero{ padding: 2rem 0; }

.iv-player-wrap{ position:relative; max-width:1100px; margin:0 auto; }
.iv-player{
  position:relative; width:100%; aspect-ratio: 16/9; border-radius: var(--iv-radius);
  overflow:hidden; background: linear-gradient(160deg,#0A1120,#101B33 60%,#0A1120);
  box-shadow: var(--iv-shadow-lg);
}
.iv-player-frame{ position:absolute; inset:0; }
.iv-player-frame iframe{ width:100%; height:100%; border:0; display:block; }

.iv-badge-live{
  position:absolute; top:16px; left:16px; z-index:5;
  background: linear-gradient(135deg,#E11D2E,#B7101F); color:#fff;
  font-weight:700; font-size:.75rem; letter-spacing:.5px;
  padding:.35rem .7rem; border-radius:6px; display:inline-flex; align-items:center; gap:.4rem;
  box-shadow:0 4px 12px rgba(225,29,46,.4);
  pointer-events:none;
}

/* Only the fullscreen button sits above the native player — a small
   corner hit-target so the embedded player's own controls stay clickable. */
.iv-ctrl-fullscreen{
  position:absolute; right:14px; bottom:14px; z-index:5;
  width:38px; height:38px; border-radius:50%; border:none;
  background: rgba(0,0,0,.55); color:#fff; font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(2px); transition:.2s ease;
}
.iv-ctrl-fullscreen:hover{ background: rgba(0,0,0,.75); }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 575.98px){
  .iv-logo{ height:36px; }
  .iv-badge-live{ font-size:.7rem; padding:.3rem .55rem; }
  .iv-ctrl-fullscreen{ width:34px; height:34px; right:10px; bottom:10px; }
}

/* Tight phones: shrink header chrome so nothing overflows or wraps */
@media (max-width: 399.98px){
  .iv-actions{ gap:.25rem; }
  .iv-icon-btn{ width:34px; height:34px; font-size:.95rem; }
  .btn.iv-btn-live{ padding:.5rem .65rem; }
  .iv-live-text{ display:none; }
}

@media (min-width: 400px){
  .iv-live-text{ margin-left:.15rem; }
}
