/* ════════════════════════════════════════════════════════════════════
   Codelith Lab Deepotsav — HERO FILM (cdl-film.css)
   ₹29,999 UGC film — glossy glass frame (portrait 9:16), gold rim, sheen.
   Din: ivory stage · Raat (html.cdl-nh): gehra emerald stage.
   Video par kabhi blur/filter nahi — 1080p source poori saaf dikhe.
   ════════════════════════════════════════════════════════════════════ */
html.cdl-on .cdl-film {
  --cf-ink: #0E2A27; --cf-body: #4B5D57; --cf-gold: #8A5F1A; --cf-rim: rgba(184, 134, 47, .5);
  position: relative; max-width: 1080px; margin: 0 auto; text-align: left;
}
html.cdl-on .cf-stage {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px;
  padding: 48px 56px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background-color: #FFFCF6;
  background-image:
    radial-gradient(60% 80% at 18% 50%, rgba(239, 203, 126, .34), transparent 70%),
    radial-gradient(50% 60% at 100% 0%, rgba(14, 158, 122, .08), transparent 70%),
    linear-gradient(160deg, #FFFFFF 0%, #FFFAF0 55%, #FFF4E0 100%);
  box-shadow: 0 1px 2px rgba(120, 84, 24, .08), 0 24px 56px -28px rgba(120, 84, 24, .32), 0 48px 100px -60px rgba(226, 150, 60, .45);
}
html.cdl-on .cf-stage::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, #E7BE6A, rgba(226, 182, 92, .25) 30%, rgba(226, 182, 92, .12) 60%, #D9A84E);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
html.cdl-on .cf-stage > * { z-index: 1; }

/* ── device: glossy glass frame ─────────────────────────────────── */
html.cdl-on .cf-devwrap { position: relative; width: clamp(260px, 24vw, 340px); }
html.cdl-on .cf-halo {
  position: absolute; left: 50%; top: 50%; width: 170%; height: 120%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 110, .42), rgba(255, 196, 110, .12) 55%, rgba(255, 196, 110, 0));
  animation: cf-breathe 5s ease-in-out infinite;
}
@keyframes cf-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
html.cdl-on .cf-device {
  --fx: 30%; --fy: 10%;
  position: relative; padding: 11px; border-radius: 38px;
  background:
    radial-gradient(120% 60% at var(--fx) var(--fy), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, #FFFFFF 0%, #FFF6E4 26%, #EFD49B 52%, #FFF2D6 74%, #E2BE78 100%);
  box-shadow:
    inset 0 1px 0 #FFFFFF, inset 0 -1.5px 0 rgba(138, 95, 26, .45), inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 0 0 1px rgba(184, 134, 47, .55),
    0 2px 4px rgba(120, 84, 24, .14), 0 22px 44px -18px rgba(120, 84, 24, .5), 0 60px 110px -50px rgba(14, 42, 39, .55);
  transition: transform .5s cubic-bezier(.22, .8, .24, 1);
  transform-style: preserve-3d;
}
html.cdl-on .cf-device:hover { transition: transform .18s ease-out; }
/* bezel par patli safed specular rekha (glossy kinara) */
html.cdl-on .cf-device::before {
  content: ""; position: absolute; inset: 3px; border-radius: 35px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); opacity: .9;
}
html.cdl-on .cf-screen {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #0F2E2B;
  box-shadow: 0 0 0 1px rgba(14, 42, 39, .4), 0 0 0 3px rgba(255, 246, 225, .7), 0 0 0 4px rgba(184, 134, 47, .35);
  transform: translateZ(0);
}
html.cdl-on .cf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0F2E2B; cursor: pointer; }
/* kaanch ki chamak — halki, video saaf rahe (opacity kam) */
html.cdl-on .cf-gloss {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .07) 22%, rgba(255, 255, 255, 0) 36%),
              linear-gradient(0deg, rgba(4, 18, 16, .42) 0%, rgba(4, 18, 16, 0) 22%);
}
html.cdl-on .cf-sheen {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 252, 238, .28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-16deg);
  animation: cf-sheen 7s cubic-bezier(.4, 0, .2, 1) 1.5s infinite;
}
@keyframes cf-sheen { 0%, 70% { transform: translateX(-140%) skewX(-16deg); } 100% { transform: translateX(330%) skewX(-16deg); } }
@media (prefers-reduced-motion: reduce) { html.cdl-on .cf-sheen { animation-duration: 12s; } }
html.cdl-on .cf-floor {
  position: absolute; left: 12%; right: 12%; bottom: -26px; height: 26px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(90, 60, 14, .32), rgba(90, 60, 14, 0));
}

html.cdl-on .cf-chip {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  font: 800 10px/1 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #2A1708;
  background: linear-gradient(135deg, #FFE7A8, #D9A84E); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45);
}
html.cdl-on .cf-chip i { width: 6px; height: 6px; border-radius: 50%; background: #D6334C; box-shadow: 0 0 0 3px rgba(214, 51, 76, .22); animation: cf-breathe 1.6s ease-in-out infinite; }

/* bada play (sirf jab ruka ho) */
html.cdl-on .cf-bigplay {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #2A1708;
  background: linear-gradient(135deg, #FFE7A8 0%, #E7BC66 40%, #C38D34 75%, #E2B35C 100%);
  box-shadow: 0 0 0 6px rgba(255, 246, 225, .35), 0 16px 32px -10px rgba(0, 0, 0, .5);
  transition: transform .18s ease-out, opacity .3s ease-out;
}
html.cdl-on .cf-bigplay svg { width: 30px; height: 30px; margin-left: 4px; }
html.cdl-on .cf-bigplay:hover { transform: scale(1.06); }
html.cdl-on .cf-bigplay:active { transform: scale(.96); }
html.cdl-on .cdl-film.cf-playing .cf-bigplay { opacity: 0; pointer-events: none; }

/* neeche ke controls — kaanch ki patti */
html.cdl-on .cf-ctrl {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 99px;
  background: rgba(10, 31, 28, .55); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 225, .18);
}
html.cdl-on .cf-ctrl button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0; border: 0; border-radius: 99px;
  cursor: pointer; color: #FFF6E2; background: rgba(255, 246, 225, .12); font: 700 12px/1 Inter, system-ui, sans-serif;
  transition: background-color .18s ease-out, transform .18s ease-out;
}
html.cdl-on .cf-ctrl button svg { width: 18px; height: 18px; }
html.cdl-on .cf-ctrl button:hover { background: rgba(255, 246, 225, .22); }
html.cdl-on .cf-ctrl button:active { transform: scale(.96); }
html.cdl-on :is(.cf-ctrl button, .cf-bigplay, .cf-watch, .cf-cta):focus-visible { outline: 2px solid #E7BE6A; outline-offset: 3px; }
html.cdl-on .cf-snd { padding: 0 12px 0 10px !important; color: #2A1708 !important; background: linear-gradient(135deg, #FFE7A8, #D9A84E) !important; }
html.cdl-on .cdl-film.cf-sound .cf-snd { color: #FFF6E2 !important; background: rgba(255, 246, 225, .14) !important; }
html.cdl-on .cdl-film:not(.cf-sound) .cf-snd { animation: cf-nudge 2.4s ease-in-out infinite; }
@keyframes cf-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 190, 106, .55); } 50% { box-shadow: 0 0 0 6px rgba(231, 190, 106, 0); } }
html.cdl-on .cf-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 246, 225, .22); overflow: hidden; }
html.cdl-on .cf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFE7A8, #E2B65C); transform-origin: 0 50%; transform: scaleX(0); }
html.cdl-on .cdl-film.cf-err .cf-ctrl { display: none; }

/* ── copy ───────────────────────────────────────────────────────── */
html.cdl-on .cf-kick { margin: 0 0 12px; font: 700 12px/1.4 Inter, system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #B4600E; }
html.cdl-on .cf-h {
  margin: 0 0 16px; font: 800 clamp(30px, 3.2vw, 42px)/1.1 Sora, Inter, sans-serif; letter-spacing: -.02em; color: var(--cf-ink);
}
html.cdl-on .cf-h em {
  font: italic 600 1.08em/1.05 var(--cdl-serif, "Cormorant Garamond", Georgia, serif); letter-spacing: 0;
  background-image: linear-gradient(100deg, #7A5216 0%, #B8862F 30%, #D9AC5E 48%, #9C6E22 72%, #B8862F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-right: 4px;
}
html.cdl-on .cf-p { margin: 0 0 20px; max-width: 34em; font-size: 16px; line-height: 1.7; color: var(--cf-body); }
html.cdl-on .cf-price { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
html.cdl-on .cf-price s { font-size: 17px; color: #7A8781; }
html.cdl-on .cf-price b {
  font: 800 40px/1 Sora, Inter, sans-serif; letter-spacing: -.02em;
  background-image: linear-gradient(100deg, #7A5216 0%, #B8862F 24%, #D9AC5E 40%, #AE7C29 58%, #7E5618 78%, #BF9142 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
html.cdl-on .cf-price span { font-size: 13px; font-weight: 600; color: var(--cf-body); }
html.cdl-on .cf-pts { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
html.cdl-on .cf-pts li {
  padding: 8px 14px; border-radius: 99px; font: 600 13px/1.2 Inter, system-ui, sans-serif; color: var(--cf-ink);
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(184, 134, 47, .32), 0 4px 12px -8px rgba(120, 84, 24, .4);
}
html.cdl-on .cf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
html.cdl-on .cf-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 99px;
  font: 700 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; color: #2A1708;
  background: linear-gradient(135deg, #FFE7A8 0%, #E7BC66 36%, #C38D34 70%, #E2B35C 100%); background-color: #D9A84E;
  box-shadow: 0 1px 2px rgba(120, 84, 24, .22), 0 10px 24px -10px rgba(195, 141, 52, .65), inset 0 1px 0 rgba(255, 250, 230, .8);
  transition: transform .18s ease-out, box-shadow .18s ease-out, filter .18s ease-out;
}
html.cdl-on .cf-cta:hover { color: #2A1708; transform: translateY(-2px); filter: brightness(1.04); }
html.cdl-on .cf-cta:active { transform: scale(.98); }
html.cdl-on .cf-watch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 99px; cursor: pointer;
  font: 700 15px/1.2 Inter, system-ui, sans-serif; color: var(--cf-ink); background: rgba(255, 255, 255, .85); border: 1px solid rgba(184, 134, 47, .45);
  transition: border-color .18s ease-out, color .18s ease-out, transform .18s ease-out;
}
html.cdl-on .cf-watch svg { width: 18px; height: 18px; }
html.cdl-on .cf-watch:hover { border-color: #B8862F; color: #8A5F1A; }
html.cdl-on .cf-watch:active { transform: scale(.98); }

/* ── raat: gehra emerald stage ───────────────────────────────────── */
html.cdl-on.cdl-nh .cdl-film { --cf-ink: #FFF6E2; --cf-body: rgba(246, 238, 220, .8); }
html.cdl-on.cdl-nh .cf-stage {
  background-color: #0F2E2B;
  background-image: radial-gradient(60% 80% at 18% 50%, rgba(226, 182, 92, .22), transparent 70%), linear-gradient(160deg, #154A41 0%, #0F2E2B 55%, #0A1F1C 100%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}
html.cdl-on.cdl-nh .cf-kick { color: #F0B35E; }
html.cdl-on.cdl-nh .cf-h em, html.cdl-on.cdl-nh .cf-price b { background-image: linear-gradient(100deg, #E7BE6A 0%, #FFF3D2 30%, #F0D08C 50%, #E2B65C 70%, #FFE7A8 100%); }
html.cdl-on.cdl-nh .cf-price s { color: rgba(246, 238, 220, .55); }
html.cdl-on.cdl-nh .cf-pts li { color: #FFF6E2; background: rgba(255, 246, 225, .08); box-shadow: inset 0 0 0 1px rgba(226, 182, 92, .4); }
html.cdl-on.cdl-nh .cf-watch { color: #FFF6E2; background: rgba(255, 246, 225, .08); border-color: rgba(226, 182, 92, .5); }
html.cdl-on.cdl-nh .cf-watch:hover { color: #F3DDAA; }
html.cdl-on.cdl-nh .cf-floor { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  html.cdl-on .cf-stage { grid-template-columns: 1fr; justify-items: center; gap: 40px; padding: 40px 24px 32px; text-align: center; }
  html.cdl-on .cf-devwrap { width: min(78vw, 320px); }
  html.cdl-on .cf-p { margin-left: auto; margin-right: auto; }
  html.cdl-on :is(.cf-price, .cf-pts, .cf-ctas) { justify-content: center; }
}
@media (max-width: 767px) {
  html.cdl-on .cf-ctrl button { height: 44px; min-width: 44px; }
}
@media (max-width: 480px) {
  html.cdl-on .cf-stage { padding: 28px 16px 24px; border-radius: 24px; gap: 32px; }
  html.cdl-on .cf-h { font-size: 28px; }
  html.cdl-on .cf-price b { font-size: 34px; }
  html.cdl-on .cf-ctas { flex-direction: column; align-items: stretch; }
  html.cdl-on :is(.cf-cta, .cf-watch) { justify-content: center; font-size: 14px; }
  html.cdl-on .cf-ctrl { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 31, 28, .78); }
}
