/* chitrahaar.css — the full-quality YouTube section. Self-contained; site.css untouched. */
.chh {
  --osd: #63ff8a;
  --glow: #3a2a6a;
  --wood-hi: #6b3d20;
  --wood: #3e2212;
  --wood-lo: #1f0f07;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(20px, 4vh, 50px) var(--pad) clamp(90px, 14vh, 150px);
  background: #000;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: clamp(40px, 6vh, 70px) clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 1000px) {
  .chh { grid-template-columns: minmax(0, 1fr); }
}

/* the room lights up in whatever colour is on the telly */
.chh__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--glow);
  opacity: 0;
  /* soft at the edges so the section melts out of the black films list and into the next one */
  -webkit-mask:
    radial-gradient(60% 50% at 32% 62%, #000 0, rgba(0,0,0,.35) 45%, transparent 75%),
    linear-gradient(transparent, #000 22%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(60% 50% at 32% 62%, #000 0, rgba(0,0,0,.35) 45%, transparent 75%) intersect,
    linear-gradient(transparent, #000 22%, #000 80%, transparent);
  transition: background-color 1.2s ease, opacity 1.2s ease;
}
.chh.is-powered .chh__glow { opacity: .5; }
.chh.is-playing .chh__glow { opacity: .7; }
@media (max-width: 1000px) {
  .chh__glow {
    -webkit-mask: radial-gradient(90% 40% at 50% 45%, #000 0, transparent 75%);
    mask: radial-gradient(90% 40% at 50% 45%, #000 0, transparent 75%);
  }
}

/* ---------- heading ---------- */
.chh__head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40ch);
  gap: 24px 48px;
  align-items: end;
}
@media (max-width: 800px) { .chh__head { grid-template-columns: 1fr; } }
.chh__bug {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 6px;
  background: rgba(99, 255, 138, .08);
  box-shadow: inset 0 0 0 1px rgba(99, 255, 138, .3);
  color: var(--osd);
  font: 400 19px/1 "VT323", ui-monospace, monospace;
}
.chh__led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--osd);
  box-shadow: 0 0 8px var(--osd);
  animation: rec 1.6s ease-in-out infinite;
}
.chh__title { margin: 0; }
.chh__hi {
  display: block;
  font: 400 clamp(68px, 11vw, 170px)/1 var(--poster);
  color: var(--sub);
  text-shadow: -3px 0 0 rgba(255, 46, 136, .85), 3px 0 0 rgba(0, 220, 255, .7);
  transition: text-shadow .25s;
}
.chh.is-tuning .chh__hi {
  text-shadow: -7px 0 0 rgba(255, 46, 136, .85), 6px 1px 0 rgba(0, 220, 255, .7);
}
.chh__en {
  display: block;
  margin-top: 4px;
  font: 800 clamp(26px, 3.2vw, 46px)/1 var(--display);
  text-transform: uppercase;
  color: var(--light);
}
.chh__note { margin: 0; color: var(--dust); font-size: 16px; max-width: 40ch; }
.chh__note em { color: var(--light); }
.chh__note b { color: var(--sub); font-weight: 600; }

/* ---------- the TV set ---------- */
.chh__stage {
  position: sticky;
  top: 28px;
  min-width: 0;
}
@media (max-width: 1000px) { .chh__stage { position: relative; top: 0; } }
.chh__set {
  position: relative;
  padding-top: clamp(70px, 9vw, 120px);
  max-width: 900px;
}

/* antenna — the "hilao" button */
.chh__ant {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(150px, 22vw, 260px);
  height: clamp(74px, 9.5vw, 124px);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  z-index: 1;
}
.chh__ant::before,
.chh__ant::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 4px;
  height: 115%;
  margin-left: -2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6d6a64, #e9e4d8 45%, #8a867e);
  transform-origin: 50% 100%;
  transform: rotate(-34deg);
  transition: transform .5s cubic-bezier(.5, 1.8, .4, 1);
}
.chh__ant::after { transform: rotate(30deg); height: 100%; }
.chh__ant span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 22px;
  margin-left: -27px;
  border-radius: 30px 30px 6px 6px;
  background: radial-gradient(60% 80% at 50% 20%, #3a3a40, #121216);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  z-index: 1;
}
.chh__ant:hover::before { transform: rotate(-26deg); }
.chh__ant:hover::after { transform: rotate(38deg); }
.chh__ant.is-wiggle::before { animation: antL .7s ease; }
.chh__ant.is-wiggle::after { animation: antR .7s ease; }
@keyframes antL { 0%,100% { transform: rotate(-34deg); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(-48deg); } 75% { transform: rotate(-28deg); } }
@keyframes antR { 0%,100% { transform: rotate(30deg); } 25% { transform: rotate(52deg); } 50% { transform: rotate(14deg); } 75% { transform: rotate(36deg); } }

.chh__cab {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 15%, 160px);
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(14px, 2vw, 24px);
  border-radius: clamp(18px, 2.4vw, 30px);
  background:
    repeating-linear-gradient(94deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px, rgba(255,210,160,.05) 9px 11px, transparent 11px 23px),
    linear-gradient(170deg, var(--wood-hi), var(--wood) 40%, var(--wood-lo));
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 180, .22),
    inset 0 -4px 10px rgba(0, 0, 0, .5),
    0 40px 80px -20px rgba(0, 0, 0, .8);
}

/* maa's crochet cover. every TV had one. */
.chh__doily {
  position: absolute;
  top: -9px;
  left: 9%;
  width: 42%;
  height: 30px;
  z-index: 3;
  transform: rotate(-1.2deg);
  pointer-events: none;
  height: 20px;
  background:
    radial-gradient(circle 3px at 50% 50%, rgba(62, 34, 18, .35) 90%, transparent) 0 0 / 16px 10px,
    radial-gradient(circle 3px at 50% 50%, rgba(62, 34, 18, .35) 90%, transparent) 8px 5px / 16px 10px,
    linear-gradient(#f4efe3, #e6dfcf);
  border-radius: 6px 6px 0 0;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.35));
}
.chh__doily::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background:
    radial-gradient(circle 3px at 12px 5px, rgba(62, 34, 18, .35) 90%, transparent) 0 0 / 24px 14px repeat-x,
    radial-gradient(circle 12px at 12px 0, #e6dfcf 92%, transparent 96%) 0 0 / 24px 14px repeat-x;
}

.chh__bezel {
  min-width: 0;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: clamp(14px, 2vw, 24px);
  background: linear-gradient(160deg, #1d1d22, #050507);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 3px 12px rgba(0,0,0,.8);
}
.chh__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 7% / 10%;
  overflow: hidden;
  background: #030303;
  box-shadow: 0 0 0 2px #000, 0 0 40px -6px var(--glow);
  transition: box-shadow 1.2s;
}
.chh__cv,
.chh__frame,
.chh__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chh__cv { opacity: 0; transition: opacity .3s; }
.chh.is-powered .chh__cv { opacity: 1; }
.chh__frame { background: #000; z-index: 4; }
.chh__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.1), transparent 40%),
    radial-gradient(100% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.65) 100%),
    linear-gradient(rgba(0,0,0,.55), transparent 26%, transparent 58%, rgba(0,0,0,.72)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
}
.chh__scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  top: -25%;
  background: linear-gradient(transparent, rgba(255,255,255,.05), transparent);
  animation: roll 7s linear infinite;
}
@keyframes roll { to { top: 110%; } }

.chh__osd,
.chh__q,
.chh__naya,
.chh__lower { margin: 0; }
.chh__osd,
.chh__q {
  position: absolute;
  top: 7%;
  z-index: 3;
  font: 400 clamp(20px, 2.8vw, 38px)/1 "VT323", ui-monospace, monospace;
  color: var(--osd);
  text-shadow: 0 0 8px rgba(99,255,138,.7), 2px 2px 0 rgba(0,0,0,.6);
  pointer-events: none;
}
.chh__osd { right: 6%; transition: opacity .4s; }
.chh__q { left: 6%; font-size: clamp(16px, 2vw, 26px); opacity: .9; }
.chh__q.is-hd { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.6), 2px 2px 0 rgba(0,0,0,.6); }
.chh__naya {
  position: absolute;
  left: 6%;
  top: calc(7% + clamp(26px, 3vw, 38px));
  z-index: 3;
  padding: 3px 10px 5px;
  border-radius: 4px;
  background: var(--rani);
  color: #fff;
  font: 400 clamp(13px, 1.3vw, 17px)/1.2 var(--poster);
  transform: rotate(-4deg);
  pointer-events: none;
}

.chh__lower {
  position: absolute;
  left: 5.5%;
  right: 40%;
  bottom: 7%;
  z-index: 3;
  pointer-events: none;
  transition: opacity .35s, transform .5s var(--ease);
}
.chh.is-tuning .chh__lower { opacity: 0; transform: translateY(8px); }
.chh__lt {
  display: block;
  font: 900 clamp(20px, 2.6vw, 38px)/.95 var(--display);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}
.chh__lh {
  display: inline-block;
  margin-top: 6px;
  font: 400 clamp(13px, 1.3vw, 19px)/1.2 var(--hindi);
  color: var(--sub);
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.chh__lm {
  display: block;
  margin-top: 4px;
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}

.chh__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.5));
}
.chh__play i {
  position: relative;
  width: clamp(58px, 7vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
  transition: transform .35s var(--ease), background .25s;
}
.chh__play i::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 30%;
  border-left: clamp(17px, 2vw, 25px) solid #fff;
  border-top: clamp(11px, 1.3vw, 16px) solid transparent;
  border-bottom: clamp(11px, 1.3vw, 16px) solid transparent;
}
.chh__play:hover i,
.chh__play:focus-visible i { transform: scale(1.12); background: var(--rani); }
.chh__play:focus-visible { outline-offset: -4px; }
.chh.is-tuning .chh__play i { opacity: 0; }

/* CRT power-on: a line of light, then the picture */
.chh__tube {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #000;
}
.chh__tube::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(255,255,255,.7);
  opacity: .8;
}
.chh.is-powered .chh__tube { animation: tubeOff .75s .15s forwards; }
.chh.is-powered .chh__tube::after { animation: tubeLine .75s forwards; }
@keyframes tubeLine {
  0% { width: 4px; height: 4px; margin-left: -2px; opacity: 1; }
  40% { width: 100%; height: 3px; left: 0; margin-left: 0; opacity: 1; }
  75% { width: 100%; height: 100%; left: 0; top: 0; margin: 0; border-radius: 0; opacity: .9; }
  100% { width: 100%; height: 100%; left: 0; top: 0; margin: 0; border-radius: 0; opacity: 0; }
}
@keyframes tubeOff { 0%, 45% { background: #000; } 100% { background: transparent; } }

/* 240p to 4K meter */
.chh__meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: clamp(8px, 1.1vw, 12px);
  padding: 0 4px;
  font: 400 clamp(14px, 1.4vw, 18px)/1 "VT323", ui-monospace, monospace;
  color: rgba(236,233,226,.28);
}
.chh__meter span { position: relative; transition: color .15s; }
.chh__meter span.is-lit { color: var(--osd); text-shadow: 0 0 6px rgba(99,255,138,.6); }
.chh__meter span.is-top.is-lit { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.7); }
.chh__meter small {
  margin-right: auto;
  font: 500 11px/1 var(--text);
  color: var(--dust);
  letter-spacing: .02em;
}

/* side panel */
.chh__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(10px, 1.3vw, 14px) 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a2a30, #141418);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 2px 8px rgba(0,0,0,.6);
}
.chh__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d9c48a, #8e7535);
  color: #1a1206;
  font: 800 12px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.chh__brand b { font: 400 15px/1 var(--hindi); }

.chh__dial {
  position: relative;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.chh__dial:focus-visible { outline-offset: 2px; border-radius: 50%; }
.chh__num {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  font: 400 15px/24px "VT323", ui-monospace, monospace;
  color: rgba(236,233,226,.5);
  text-align: center;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  transition: color .2s;
}
.chh__num:hover { color: #fff; }
.chh__num.is-on { color: var(--osd); text-shadow: 0 0 6px var(--osd); }
.chh__knob {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.08) 0 4deg, rgba(0,0,0,.12) 4deg 8deg),
    radial-gradient(circle at 35% 30%, #5a5a62, #1b1b20 70%);
  box-shadow: 0 6px 12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2);
  transform: rotate(var(--rot, 0deg));
  transition: transform .45s cubic-bezier(.4, 1.6, .5, 1);
  cursor: grab;
}
.chh__knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7%;
  width: 4px;
  height: 30%;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--sub);
  box-shadow: 0 0 6px rgba(255,212,59,.6);
}
.chh__dial.is-drag .chh__knob { transition: none; cursor: grabbing; }

.chh__rocker { display: flex; gap: 6px; }
.chh__rocker button,
.chh__sound {
  font: 400 17px/1 "VT323", ui-monospace, monospace;
  padding: 7px 10px 6px;
  border-radius: 6px;
  color: var(--light);
  background: linear-gradient(180deg, #3a3a42, #1a1a1f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 2px 0 #000;
  transition: transform .1s, color .2s;
}
.chh__rocker button:active,
.chh__sound:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.chh__rocker button:hover,
.chh__sound:hover { color: var(--sub); }
.chh__sound { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.chh__sound::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #4a2020;
}
.chh__sound[aria-pressed="true"]::before { background: var(--osd); box-shadow: 0 0 6px var(--osd); }

.chh__grille {
  flex: 1;
  width: 78%;
  min-height: 40px;
  border-radius: 8px;
  background:
    radial-gradient(circle 2px, #050507 90%, transparent) 0 0 / 8px 8px,
    #2b2b31;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7);
}
.chh__power {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a0d0d;
  transition: background .3s, box-shadow .3s;
}
.chh.is-powered .chh__power { background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.chh.is-playing .chh__power { background: var(--osd); box-shadow: 0 0 8px var(--osd); }

.chh__legs {
  display: flex;
  justify-content: space-between;
  padding: 0 14%;
}
.chh__legs i {
  width: clamp(40px, 6vw, 70px);
  height: 14px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#1f0f07, #0b0503);
}

.chh__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: clamp(18px, 2.5vw, 28px);
}
.chh__acts .btn--yt { background: var(--sub); }
.chh__acts .btn--yt:hover { background: var(--light); }
.chh__hint { margin: 0 0 0 4px; font-size: 13px; color: var(--dust); }

@media (max-width: 700px) {
  .chh__cab { grid-template-columns: minmax(0, 1fr); }
  .chh__panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }
  .chh__dial { width: 112px; flex: none; }
  .chh__grille { display: none; }
  .chh__lower { right: 6%; }
  .chh__lm { display: none; }
  .chh__play i { width: 52px; }
  .chh__osd, .chh__q { top: 6%; }
  .chh__hint { margin: 0; flex-basis: 100%; }
}

/* ---------- programme guide ---------- */
.chh__guide { min-width: 0; }
.chh__gh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.chh__gh h3 { margin: 0; font: 800 clamp(26px, 2.6vw, 36px)/1 var(--display); text-transform: uppercase; }
.chh__gh span { font: 400 18px/1 var(--hindi); color: var(--sub); }
.chh__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chh__prog {
  position: relative;
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 8px 10px 8px 8px;
  border-radius: 10px;
  text-align: left;
  transition: background .25s;
}
.chh__prog::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: var(--sub);
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.chh__prog:hover { background: rgba(236,233,226,.04); }
.chh__prog[aria-current="true"] { background: rgba(255,212,59,.07); }
.chh__prog[aria-current="true"]::before { transform: scaleY(1); }
.chh__pn {
  font: 400 24px/1 "VT323", ui-monospace, monospace;
  color: rgba(99,255,138,.45);
  text-align: right;
}
.chh__prog[aria-current="true"] .chh__pn { color: var(--osd); text-shadow: 0 0 8px rgba(99,255,138,.6); }
.chh__pt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--night);
}
.chh__pt img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); transition: filter .3s, transform .6s var(--ease); }
.chh__prog:hover .chh__pt img,
.chh__prog[aria-current="true"] .chh__pt img { filter: none; transform: scale(1.06); }
.chh__px { min-width: 0; display: grid; gap: 2px; }
.chh__pname {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .45em;
  font: 800 clamp(19px, 1.7vw, 24px)/1.05 var(--display);
  text-transform: uppercase;
}
.chh__pname [lang="hi"] { font: 400 .72em/1.2 var(--hindi); text-transform: none; color: var(--sub); }
.chh__pm { font-size: 13px; color: var(--dust); }
.chh__pm em { font-style: normal; color: var(--light); opacity: .75; }
.chh__tag {
  position: absolute;
  left: 4px;
  top: 4px;
  padding: 1px 7px 3px;
  border-radius: 4px;
  background: var(--rani);
  color: #fff;
  font: 400 13px/1.2 var(--poster);
  transform: rotate(4deg);
}
.chh__foot { margin: 16px 0 0; font-size: 13px; color: var(--dust); max-width: 46ch; }
.chh__foot a { color: var(--light); }
.chh__foot a:hover { color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
  .chh__led, .chh__scan::after { animation: none; }
  .chh.is-powered .chh__tube { animation: none; background: transparent; }
  .chh.is-powered .chh__tube::after { animation: none; opacity: 0; }
  .chh__ant.is-wiggle::before, .chh__ant.is-wiggle::after { animation: none; }
}

/* dock: open to the links' real width instead of a 720px guess, so it grows smoothly */
.dock .dock__links { max-width: var(--dock-w, 720px); }
