/* MrA2 — multicolor "studio lights" look: deep navy-black background, every section has its own color
   (Home blue, Shorts pink, Trending orange, Search teal, Upload purple, Studio yellow) tied together
   by the blue → purple → pink → orange brand gradient of the logo.
   Mobile: app shell with bottom tab bar + edge-to-edge videos. Desktop: featured hero + grid. */
:root {
  --bg: #090a12;
  --bg-2: #0e1020;
  --surface: #141729;
  --surface-2: #1c2036;
  --surface-3: #272c47;
  --ink: #f5f6fc;
  --muted: #9ba2bd;
  --line: rgba(255, 255, 255, 0.08);
  /* brand */
  --accent: #a855f7;            /* purple — default accent */
  --accent-rgb: 168, 85, 247;
  --accent-2: #ec4899;          /* pink */
  --accent2-rgb: 236, 72, 153;
  --accent-soft: #d8b4fe;
  --grad: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 38%, #ec4899 70%, #f97316 100%);
  --grad-soft: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.16) 40%, rgba(236, 72, 153, 0.14) 70%, rgba(249, 115, 22, 0.12));
  /* har section ka apna rang */
  --c-home: #3b82f6;
  --c-shorts: #ec4899;
  --c-trend: #f97316;
  --c-search: #14b8a6;
  --c-upload: #8b5cf6;
  --c-studio: #eab308;
  --c-like: #3b82f6;
  --c-share: #22c55e;
  --c-bell: #facc15;
  --accent-ink: #ffffff;
  --ok: #2ed47a;
  --danger: #ff6b6b;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --head-h: 64px;
  --tab-h: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(236, 72, 153, 0.10), transparent 60%),
    radial-gradient(800px 460px at -10% 5%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(139, 92, 246, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  min-height: 100vh; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--accent-rgb), 0.35); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 11, 16, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.topbar-inner { max-width: 1440px; margin: 0 auto; height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.035em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; border-radius: 10px; }
.logo-word { font-family: "Montserrat", var(--display); font-style: italic; font-weight: 900; letter-spacing: -0.05em; }
.logo-word b { color: #22d3a6; font-weight: 900; }
/* Search bar — apna teal rang */
.searchbar { flex: 1 1 auto; display: flex; max-width: 620px; margin: 0 auto; min-width: 0; position: relative; }
.searchbar input {
  flex: 1; min-width: 0; height: 44px; padding: 0 52px 0 20px; border: 1.5px solid rgba(20, 184, 166, 0.35); border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.10), rgba(59, 130, 246, 0.06)), var(--surface);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.searchbar input::placeholder { color: #8fc9c2; }
.searchbar input:focus { outline: none; border-color: var(--c-search); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18); }
.searchbar button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #14b8a6, #3b82f6); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45); }
.searchbar button .icon { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); place-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35); }
.btn.primary:hover { box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.5); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.4); background: transparent; }
.btn.on { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.55); color: var(--accent-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; }
.upload-btn .plus { font-size: 20px; line-height: 1; font-weight: 700; margin-top: -2px; }

/* ---------- Page ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 28px max(24px, env(safe-area-inset-right)) 72px max(24px, env(safe-area-inset-left)); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; margin: 0; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 18px; }
.section-title { font-size: 1.35rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }

/* ---------- Hero (featured video) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 24px; border-radius: 28px; margin-bottom: 28px;
  background: linear-gradient(140deg, rgba(29, 33, 49, 0.9), rgba(15, 17, 25, 0.9)); border: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  filter: blur(60px) saturate(140%); opacity: 0.35;
}
.hero-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-thumb:hover img { transform: scale(1.03); }
.hero-thumb .play-big {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.6);
}
.hero-thumb .play-big svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.hero-info { display: grid; gap: 14px; align-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.25); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .35; } }
.hero-info h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.hero-meta { color: var(--muted); font-size: 15px; }
.hero-desc { color: #c9cddb; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero-actions .btn { height: 46px; padding: 0 24px; font-size: 16px; }

/* Channel strip */
.channel-strip { display: flex; align-items: center; gap: 12px; }
.channel-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(var(--accent-rgb), 0.5);
}
.channel-strip .name { font-weight: 700; }
.channel-strip .sub { font-size: 13px; color: var(--muted); }

/* Channel header (when no videos) */
.channel { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px; border-radius: 28px; margin-bottom: 28px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent2-rgb), 0.08) 60%, rgba(21, 24, 36, 0.9)); border: 1px solid var(--line); }
.channel .channel-avatar { width: 84px; height: 84px; font-size: 2.2rem; }
.channel-info { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.channel-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Chips ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top)); z-index: 20; padding-block: 10px; margin-top: -10px; background: linear-gradient(var(--bg) 70%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 38px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: #d4d7e3; transition: background .15s, color .15s; }
.tab:hover { background: var(--surface-2); color: var(--c, var(--ink)); }
.tab.active { background: color-mix(in srgb, var(--c, var(--accent)) 22%, var(--surface)); color: #fff; border-color: var(--c, var(--accent)); box-shadow: 0 4px 16px color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }

/* ---------- Video grid ---------- */
.grid { display: grid; gap: 34px 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: grid; gap: 12px; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); transition: transform .2s, box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.45)); opacity: 0; transition: opacity .2s; }
.card:hover .thumb { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.card:hover .thumb img { transform: scale(1.05); }
.card:hover .thumb::after { opacity: 1; }
.dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.new-pill { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; }
.card-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.card-body .channel-avatar { width: 36px; height: 36px; font-size: .95rem; box-shadow: none; }
.card-title { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; font-size: 1rem; }
.card-meta { font-size: 13.5px; color: var(--muted); }

/* Skeletons */
.skel .thumb, .skel .sk-line { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-line { height: 12px; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Watch page ---------- */
.watch { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .watch { grid-template-columns: minmax(0, 1fr) 400px; } }
.player-wrap { position: relative; }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; display: block; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.watch h1 { color: var(--ink); font-family: var(--body); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; margin-top: 16px; }
.watch-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chan-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chan-mini .channel-avatar { width: 42px; height: 42px; font-size: 1.1rem; box-shadow: none; }
.chan-mini .card-meta { font-size: 13px; }
.seg { display: inline-flex; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; background: transparent; }
.seg .btn + .btn { border-left: 1px solid var(--line); }
.seg .btn.on { background: rgba(var(--accent-rgb), 0.16); }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.desc .meta { font-weight: 700; margin-bottom: 4px; white-space: normal; }
.desc.clamped .desc-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tagrow a { color: var(--accent-soft); font-size: 14px; font-weight: 600; }
.quality { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }

.related { display: grid; gap: 14px; align-content: start; }
.related h2 { font-family: var(--body); font-weight: 800; font-size: 1.1rem; }
.rel-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; padding: 6px; margin: -6px; border-radius: 14px; transition: background .15s; }
.rel-card:hover { background: var(--surface); }
.rel-card .thumb { border-radius: 10px; }
.rel-card:hover .thumb { transform: none; box-shadow: none; }
.rel-card .card-title { font-size: .95rem; }

/* Comments */
.comments { margin-top: 28px; display: grid; gap: 18px; }
.comments h2 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; }
.cform { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cform textarea, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.cform textarea:focus, .field input:focus, .field textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12); }
.cform textarea { min-height: 70px; resize: vertical; }
.cform-row { display: flex; justify-content: flex-end; gap: 8px; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; color: var(--accent-soft); }
.comment .who { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment .who .when { font-weight: 400; color: var(--muted); }
.comment .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; color: #dfe2ec; }
.owner-tag { background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 5px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; }

/* Threads, replies, pin, heart */
.thread { display: grid; gap: 12px; }
.comment.pinned { background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent2-rgb), 0.05)); border: 1px solid rgba(var(--accent-rgb), 0.22); border-radius: 16px; padding: 12px; }
.pin-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-soft); margin-bottom: 3px; }
.pin-label .icon { width: 14px; height: 14px; }
.avatar.admin { background: var(--grad); color: #fff; }
.c-tools { display: flex; align-items: center; gap: 4px; margin: 6px 0 0 -8px; flex-wrap: wrap; }
.c-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px 9px; border-radius: 999px; }
.c-btn:hover { background: var(--surface-2); color: var(--ink); }
.c-btn .icon { width: 16px; height: 16px; }
.c-btn.heart.on { color: var(--accent); }
.heart-badge { position: relative; display: inline-flex; align-items: center; margin-left: 6px; }
.heart-badge .mini-av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.heart-badge .icon { position: absolute; right: -6px; bottom: -4px; width: 13px; height: 13px; color: var(--accent); }
.replies { display: grid; gap: 12px; margin-left: 52px; }
.comment.reply { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.comment.reply .avatar { width: 30px; height: 30px; font-size: 13px; }
.reply-toggle { justify-self: start; margin-left: 44px; background: none; border: 0; color: var(--accent-soft); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.reply-toggle:hover { background: rgba(var(--accent-rgb), 0.1); }
.reply-form { margin-left: 52px; padding: 10px; }
.reply-form textarea { min-height: 54px; }

/* Player extras */
.player-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.player-tools .hint { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.btn.toggle { gap: 9px; }
.btn.toggle .sw { width: 30px; height: 18px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; }
.btn.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.btn.toggle[aria-pressed="true"] .sw { background: var(--accent); }
.btn.toggle[aria-pressed="true"] .sw::after { transform: translateX(12px); }
.resume-chip { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; background: rgba(10, 11, 16, 0.82); backdrop-filter: blur(8px); border: 1px solid var(--line); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 6px 6px 12px; border-radius: 999px; animation: fadeIn .3s; }
.resume-chip button { background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.seek-flash { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.seek-flash.left { left: 0; border-radius: 20px 50% 50% 20px / 20px 50% 50% 20px; background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.18), transparent 70%); }
.seek-flash.right { right: 0; border-radius: 50% 20px 20px 50% / 50% 20px 20px 50%; background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.18), transparent 70%); }
.seek-flash.show { opacity: 1; }
.seek-flash .icon { width: 30px; height: 30px; }
.upnext { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(5, 6, 10, 0.78); backdrop-filter: blur(6px); border-radius: 20px; padding: 14px; animation: fadeIn .25s; }
.upnext-card { display: flex; gap: 16px; align-items: center; max-width: 560px; width: 100%; }
.upnext-card img { width: 44%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.upnext-info { display: grid; gap: 8px; min-width: 0; }
.upnext-info .eyebrow { color: var(--accent-soft); font-size: 13px; font-weight: 700; }
.upnext-info .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; margin-left: 2px; }
.upnext-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upnext-tag { position: absolute; left: 6px; top: 6px; z-index: 1; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Continue watching */
.watched { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.25); z-index: 1; }
.watched span { display: block; height: 100%; background: var(--accent); }
.shelf { margin: 4px 0 26px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.shelf-head .section-title { margin-bottom: 12px; font-size: 1.15rem; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.mini-card { display: grid; gap: 6px; scroll-snap-align: start; }
.mini-card .thumb { border-radius: 12px; }
.mini-card .card-title { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card .card-meta { font-size: 12.5px; }
.play-mini { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s; }
.play-mini .icon { width: 20px; height: 20px; }
.mini-card:hover .play-mini { opacity: 1; }

/* Notification bell */
.icon-btn.bell-top { display: grid; color: var(--ink); flex-shrink: 0; }
.icon-btn.bell-top .icon { width: 20px; height: 20px; }
.icon-btn.bell-top.on { color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }
.bell-btn.on { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.bell-btn:not(.on) { background: var(--ink); color: #0a0b10; border-color: transparent; }
.channel-strip .bell-btn { margin-left: auto; height: 38px; padding: 0 14px; font-size: 14px; }
.chan-mini .bell-btn { height: 36px; padding: 0 14px; font-size: 14px; margin-left: 6px; }
.accent-ic { color: var(--accent); }
.short-pill { display: inline-flex; align-items: center; gap: 4px; }
.short-pill .icon { width: 12px; height: 12px; }
.mini-tag { display: inline-block; margin-left: 8px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 5px; vertical-align: 2px; }
.icon-round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.icon-round:hover { background: var(--surface-3); }
.icon-round .icon { width: 20px; height: 20px; }

/* Shorts shelf (home) */
.shorts-row { grid-auto-columns: 172px; }
.short-card { display: grid; gap: 8px; scroll-snap-align: start; }
.short-thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.short-card:hover .short-thumb img { transform: scale(1.04); }
.short-views { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.short-card .card-title { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Shorts player */
body.shorts-mode .page { padding-top: 0; padding-bottom: 0; }
.shorts-feed { height: calc(100dvh - var(--head-h) - env(safe-area-inset-top)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.shorts-feed::-webkit-scrollbar { display: none; }
.short { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 0; }
.short-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.short-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.short-paused { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.short-paused .icon { width: 34px; height: 34px; }
.short-paused.show { opacity: 1; }
.short-mute { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0, 0, 0, 0.45); color: #fff; width: 40px; height: 40px; }
.short-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.2); z-index: 2; }
.short-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.short-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; pointer-events: none; }
.short-info button { pointer-events: auto; }
.short-chan { display: flex; align-items: center; gap: 10px; }
.short-chan .channel-avatar { width: 34px; height: 34px; font-size: .95rem; box-shadow: none; }
.short-chan .bell-top { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.short-chan .bell-top .icon { width: 17px; height: 17px; }
.short-title { margin: 8px 0 0; font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-actions { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; padding-bottom: 24px; }
.short-act { display: grid; justify-items: center; gap: 5px; background: none; border: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 0; }
.short-act .act-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: background .15s, transform .15s; }
.short-act:hover .act-ic { background: var(--surface-3); }
.short-act:active .act-ic { transform: scale(0.92); }
.short-act .icon { width: 22px; height: 22px; }
.short-act.on .act-ic { background: var(--grad); color: #fff; }
.shorts-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; z-index: 5; }

/* Comments sheet */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.sheet { width: min(640px, 100%); max-height: 78vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); animation: sheetUp .25s ease-out; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; background: var(--surface); }
.sheet .comments { margin-top: 0; }
.sheet .comments > h2 { display: none; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Chapters + timestamps */
.chap-current { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chap-current .icon { width: 12px; height: 12px; color: var(--accent); }
.chapters { margin-top: 14px; }
.chap-head { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.chap-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chap { flex: 0 0 auto; display: grid; gap: 2px; text-align: left; min-width: 130px; max-width: 220px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.chap:hover { background: var(--surface-2); }
.chap.on { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.1); }
.chap-t { color: var(--accent-soft); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chap-name { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts { background: none; border: 0; padding: 0; font: inherit; color: #7cb7ff; font-weight: 700; cursor: pointer; }
.ts:hover { text-decoration: underline; }

/* Studio analytics */
.analytics h2 { display: flex; align-items: center; gap: 8px; }
.analytics h2 .icon { width: 22px; height: 22px; color: var(--accent); }
.seg.range .btn { height: 34px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.chart-head h3, .top-list h3 { font-family: var(--body); font-size: 15px; font-weight: 800; }
.chart-wrap { position: relative; }
.bars { width: 100%; height: auto; display: block; overflow: visible; }
.bars .grid { stroke: var(--line); stroke-width: 1; }
.bars .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.bars .bar { fill: var(--accent); transition: fill .12s; }
.bars .bar.hov { fill: var(--accent-soft); }
.bars .hit { fill: transparent; cursor: pointer; outline: none; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--surface-3); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.top-list { margin-top: 18px; display: grid; gap: 4px; }
.top-row { display: grid; grid-template-columns: 22px 80px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.top-row:hover { background: var(--surface-2); }
.top-row img { width: 80px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.top-row .rank { color: var(--muted); font-weight: 800; text-align: center; }
.top-row .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row .n { font-size: 13px; white-space: nowrap; }

/* ---------- Search page ---------- */
.search-page .searchbar { display: flex; max-width: none; margin: 0 0 22px; }
.search-page .searchbar input { height: 50px; font-size: 17px; }
.search-page .searchbar button { width: 42px; height: 42px; }

/* ---------- Forms / panels ---------- */
.panel { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.panel.narrow { max-width: 440px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; }
.field textarea { min-height: 120px; resize: vertical; }
.drop { border: 2px dashed rgba(var(--accent-rgb), 0.5); border-radius: 18px; padding: 36px 16px; text-align: center; display: grid; gap: 6px; cursor: pointer; background: rgba(var(--accent-rgb), 0.05); transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: rgba(var(--accent-rgb), 0.1); border-color: var(--accent); }
.thumb-preview { max-width: 320px; border-radius: 12px; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.err { color: var(--danger); font-size: 14px; }

/* ---------- Studio ---------- */
.head-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-ready { background: rgba(46, 212, 122, 0.14); color: var(--ok); }
.pill-processing, .pill-queued, .pill-uploading { background: rgba(var(--accent2-rgb), 0.15); color: var(--accent-2); }
.pill-failed { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.thumb-ph { width: 120px; aspect-ratio: 16/9; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; min-width: 600px; }
.mtable td, .mtable th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mtable th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mtable img { width: 120px; border-radius: 8px; display: block; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.num { font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tab-h) + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(244, 245, 250, 0.96); color: #0a0b10; font-weight: 600; padding: 12px 20px; border-radius: 14px; z-index: 60;
  max-width: calc(100% - 32px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Bottom tab bar (mobile app shell) ---------- */
.tabbar { display: none; }

@media (max-width: 760px) {
  :root { --head-h: 56px; --tab-h: 64px; }
  .topbar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .topbar-inner { gap: 10px; }
  .logo { font-size: 1.3rem; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .topbar .searchbar { display: none; }
  .icon-btn { display: grid; margin-left: auto; }
  .nav { display: none; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
    background: rgba(12, 13, 19, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a { position: relative; }
  .tabbar a.active { color: var(--c, var(--ink)); }
  .tabbar a.active .icon { color: var(--c, var(--accent)); }
  .tabbar a.active::before { content: ""; position: absolute; top: 6px; width: 46px; height: 30px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); z-index: -1; }
  .tabbar a .icon, .tabbar a span { position: relative; }
  .tabbar .tab-plus { width: 46px; height: 32px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.45); }
  .tabbar .tab-plus .icon { width: 22px; height: 22px; }

  .page { padding: 12px max(14px, env(safe-area-inset-right)) 40px max(14px, env(safe-area-inset-left)); }

  .hero { grid-template-columns: 1fr; gap: 14px; padding: 0; border: 0; border-radius: 0; margin: -12px -14px 18px; background: none; }
  .hero::before { display: none; }
  .hero-thumb { border-radius: 0; box-shadow: none; }
  .hero-thumb .play-big { width: 60px; height: 60px; }
  .hero-info { padding: 0 14px; gap: 10px; }
  .hero .channel-avatar { box-shadow: none; }
  .hero-info h2 { font-size: 1.35rem; }
  .hero-desc { -webkit-line-clamp: 2; font-size: 15px; }
  .hero-actions .btn { flex: 1; height: 44px; }

  .channel { padding: 20px; border-radius: 20px; }
  .tabs { margin-inline: -14px; padding-inline: 14px; margin-bottom: 14px; top: calc(var(--head-h) + env(safe-area-inset-top)); }

  .grid { grid-template-columns: 1fr; gap: 22px; margin-inline: -14px; }
  .card .thumb { border-radius: 0; }
  .card:hover .thumb { transform: none; box-shadow: none; }
  .card-body { padding: 0 14px; }

  .watch { gap: 20px; }
  .player-wrap { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top)); z-index: 15; margin: -12px -14px 0; }
  .player { border-radius: 0; box-shadow: none; }
  .watch h1 { font-size: 1.15rem; margin-top: 12px; }
  .watch-bar { gap: 12px; }
  .actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .actions::-webkit-scrollbar { display: none; }
  .rel-card { grid-template-columns: 150px minmax(0, 1fr); }
  .player-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
  .player-tools::-webkit-scrollbar { display: none; }
  .player-tools .hint { display: none; }
  .upnext, .seek-flash.left, .seek-flash.right { border-radius: 0; }
  .upnext-card { gap: 12px; }
  .upnext-card img { width: 38%; }
  .upnext-title { font-size: .95rem; }
  .upnext .actions { width: auto; }
  .resume-chip { top: 8px; left: 8px; }
  .shelf-row { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; grid-auto-columns: 62%; }
  .replies, .reply-form { margin-left: 30px; }
  .icon-btn.bell-top { margin-left: 0; }
  .channel-strip .bell-btn span, .chan-mini .bell-btn span { display: none; }
  .channel-strip .bell-btn, .chan-mini .bell-btn { width: 38px; padding: 0; justify-content: center; }
  .shorts-row { grid-auto-columns: 40%; }
  body.shorts-mode .page { padding: 0; }
  .shorts-feed { position: fixed; left: 0; right: 0; top: calc(var(--head-h) + env(safe-area-inset-top)); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); height: auto; }
  .short { padding: 0; gap: 0; }
  .short-frame { width: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .short-info { padding-right: 76px; }
  .short-actions { position: absolute; right: 8px; bottom: 84px; z-index: 3; padding: 0; gap: 14px; }
  .short-act { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
  .short-act .act-ic { width: 46px; height: 46px; background: rgba(0, 0, 0, 0.38); backdrop-filter: blur(6px); }
  .shorts-nav { display: none; }
  .top-row { grid-template-columns: 18px 64px minmax(0, 1fr) auto; gap: 10px; }
  .top-row img { width: 64px; }
  .top-row .n.muted { display: none; }
  .chart-tip { font-size: 12px; }
  .reply-toggle { margin-left: 22px; }

  .panel { padding: 20px; border-radius: 20px; }
  .search-page .searchbar input { height: 48px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Multicolor: har button / section ka apna rang ---------- */
.seg .btn.like-btn.on { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.seg .btn.like-btn:hover { color: #93c5fd; }
.btn.share-btn { border-color: rgba(34, 197, 94, 0.35); color: #86efac; background: rgba(34, 197, 94, 0.08); }
.btn.share-btn:hover { background: rgba(34, 197, 94, 0.16); }
.btn.wa-btn { border-color: rgba(37, 211, 102, 0.4); color: #fff; background: #1a9e55; }
.btn.wa-btn:hover { background: #1fb862; }
.btn.bell-btn:not(.on) { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1405; border-color: transparent; font-weight: 700; box-shadow: 0 6px 18px rgba(250, 204, 21, 0.25); }
.btn.bell-btn.on { color: #fde68a; border-color: rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.08); }
.icon-btn.bell-top { background: rgba(250, 204, 21, 0.10); color: #fde68a; }
.icon-btn.bell-top.on { color: #facc15; background: rgba(250, 204, 21, 0.2); }
.btn.studio-btn { border-color: rgba(234, 179, 8, 0.4); color: #fde68a; background: rgba(234, 179, 8, 0.1); }
.btn.studio-btn:hover { background: rgba(234, 179, 8, 0.18); }
.btn.toggle[aria-pressed="true"] .sw { background: var(--c-upload); }
.quality { border-color: rgba(139, 92, 246, 0.3); }
.icon-btn:not(.bell-top) { color: #5eead4; background: rgba(20, 184, 166, 0.12); }
.section-title .icon { color: var(--c, var(--accent)); }
.short-act.like.on .act-ic { background: var(--c-like); }
.chap.on { border-color: var(--c-upload); background: rgba(139, 92, 246, 0.14); }
.stat-row .stat { position: relative; overflow: hidden; }
.stat-row .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sc, var(--accent)); }
.stat-row .stat:nth-child(1) { --sc: #3b82f6; }
.stat-row .stat:nth-child(2) { --sc: #a855f7; }
.stat-row .stat:nth-child(3) { --sc: #ec4899; }
.stat-row .stat:nth-child(4) { --sc: #f97316; }
.stat-row .stat:nth-child(5) { --sc: #14b8a6; }
.bars .bar { fill: url(#barGrad); }
.bars .bar.hov { fill: #f0abfc; }
.channel-avatar { background: var(--grad); }
.hero { border-color: rgba(139, 92, 246, 0.22); }
.hero-thumb .play-big { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* Logo badge inside avatars */
.channel-avatar.logo-av { background: transparent; padding: 0; overflow: hidden; border-radius: 27%; }
.channel-avatar.logo-av img { width: 100%; height: 100%; display: block; }
.heart-badge img.mini-av { border-radius: 27%; background: none; }
.avatar.admin { background: none; border-radius: 27%; overflow: hidden; }
/* Default channel banner (jab custom image na ho) */
.ch-banner.default { background:
    radial-gradient(40% 120% at 8% 0%, rgba(59, 130, 246, 0.55), transparent 70%),
    radial-gradient(35% 120% at 40% 110%, rgba(139, 92, 246, 0.5), transparent 70%),
    radial-gradient(35% 120% at 75% -10%, rgba(236, 72, 153, 0.5), transparent 70%),
    radial-gradient(30% 110% at 100% 100%, rgba(249, 115, 22, 0.45), transparent 70%), #0b0c18;
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px); }
.ch-banner.default::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.ch-banner.default img { width: clamp(44px, 7vw, 96px); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); position: relative; z-index: 1; }
.ch-banner.default .bw { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 5.5rem); letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.ch-banner.default .bw b { background: linear-gradient(120deg, #93c5fd, #c4b5fd 40%, #f9a8d4 70%, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Channel page ---------- */
.ch-banner { position: relative; aspect-ratio: 6 / 1; min-height: 120px; border-radius: 24px; overflow: hidden; background: #0e1020 center / cover no-repeat; border: 1px solid var(--line); }
.ch-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; margin: 6px 0 18px; padding: 0 8px; flex-wrap: wrap; }
.ch-head .channel-avatar { width: 96px; height: 96px; font-size: 2.4rem; margin-top: 0; box-shadow: 0 0 0 5px var(--bg); }
.ch-head .ch-info { flex: 1 1 240px; min-width: 0; display: grid; gap: 4px; padding-top: 12px; }
.ch-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.ch-head h1 { font-family: "Montserrat", var(--display); font-style: italic; font-weight: 900; letter-spacing: -0.05em; }
.ch-head h1 b { color: #22d3a6; }
.ch-meta { color: var(--muted); font-size: 14px; }
.ch-about { color: #cdd1e0; margin: 0; max-width: 70ch; white-space: pre-wrap; }
.ch-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ch-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); background: color-mix(in srgb, var(--lc) 14%, transparent); color: #fff; }
.ch-link:hover { background: color-mix(in srgb, var(--lc) 26%, transparent); }
.ch-link .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lc); }
.ch-tabs { margin-top: 4px; }

/* ---------- Playlists ---------- */
.pl-grid { display: grid; gap: 26px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pl-card { display: grid; gap: 10px; }
.pl-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 8px -8px 0 -2px var(--surface-3), 14px -14px 0 -4px rgba(139, 92, 246, 0.35); margin: 14px 14px 0 0; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-count { position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: rgba(9, 10, 18, 0.82); backdrop-filter: blur(6px); display: grid; place-content: center; justify-items: center; gap: 4px; font-weight: 800; color: #fff; }
.pl-count .icon { width: 24px; height: 24px; color: var(--accent-soft); }
.pl-head { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.pl-hero { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 14px; padding: 20px; border-radius: 24px; background: var(--grad-soft), var(--surface); border: 1px solid var(--line); }
.pl-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.pl-hero h1 { font-size: 1.6rem; }
.pl-list { display: grid; gap: 6px; }
.pl-item { display: grid; grid-template-columns: 28px 160px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; }
.pl-item:hover { background: var(--surface); }
.pl-item.now { background: rgba(139, 92, 246, 0.14); }
.pl-item .n { color: var(--muted); font-weight: 700; text-align: center; font-size: 14px; }
.pl-item .thumb { border-radius: 10px; }
.pl-panel { border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 18px; overflow: hidden; background: var(--surface); }
.pl-panel-head { padding: 14px 16px; background: var(--grad-soft); display: grid; gap: 2px; }
.pl-panel-head strong { font-size: 15.5px; }
.pl-panel-list { max-height: 420px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.pl-panel .pl-item { grid-template-columns: 22px 110px minmax(0, 1fr); gap: 10px; padding: 6px; }
.pl-panel .card-title { font-size: 13.5px; }
.pl-admin { display: grid; gap: 10px; }
.pl-admin-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pl-admin-row img { width: 70px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.check-list { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.check-list label:hover { background: var(--surface); }
.check-list input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Scheduled + misc */
.pill-scheduled { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.sched-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sched-row input[type="datetime-local"] { height: 42px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 0 12px; color-scheme: dark; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 14px; }
.radio-pill:has(input:checked) { border-color: var(--c-upload); background: rgba(139, 92, 246, 0.16); }
.radio-pill input { accent-color: var(--c-upload); }
.banner-preview { width: 100%; aspect-ratio: 6 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #0e1020; }

@media (max-width: 760px) {
  .ch-banner { border-radius: 0; margin: -12px -14px 0; aspect-ratio: 4 / 1; min-height: 90px; border: 0; }
  .ch-head { padding: 0; gap: 14px; }
  .ch-head .channel-avatar { width: 76px; height: 76px; margin-top: 0; }
  .pl-head { grid-template-columns: 1fr; }
  .pl-hero { position: static; }
  .pl-item { grid-template-columns: 22px 120px minmax(0, 1fr); }
}
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 .icon { width: 22px; height: 22px; color: var(--c-studio); }
.field label .icon { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 760px) {
  .ch-head { align-items: flex-start; }
  .ch-head .ch-info { padding-top: 6px; }
  .ch-head > .bell-btn { margin-left: 90px; margin-top: 0; }
}

/* ===== Attractive polish: preview, NEW, glow, animations, intro ===== */
:root { --mint: #22d3a6; --mint-rgb: 34, 211, 166; }
::selection { background: rgba(var(--mint-rgb), .35); color: #fff; }
:focus-visible { outline-color: var(--mint); }
.watched span { background: var(--mint); }
.player { accent-color: var(--mint); }
/* NEW badge */
.new-badge { position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--mint); color: #04130e; font: 900 italic 11px/1 "Montserrat", var(--body); letter-spacing: .08em; padding: 5px 8px 4px; border-radius: 6px; box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .6); animation: newPulse 2.4s ease-out infinite; }
.hero-thumb .new-badge { left: 14px; top: 14px; font-size: 13px; padding: 6px 10px 5px; }
@keyframes newPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--mint-rgb), 0); } }
/* Muted video previews (hover + hero) */
.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .45s ease; z-index: 0; background: transparent; }
.pv.on { opacity: 1; }
.thumb .dur, .thumb .watched, .short-thumb .short-views { z-index: 2; }
.thumb.previewing::after { opacity: 0 !important; }
.thumb.previewing img, .short-thumb.previewing img { transform: none !important; }
.hero-thumb .play-big { z-index: 2; transition: opacity .4s, transform .25s; }
.hero-thumb .dur { z-index: 2; }
.hero-thumb.previewing .play-big { opacity: .0; transform: translate(-50%, -50%) scale(.85); }
.hero-thumb.previewing:hover .play-big { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Ambient glow behind the player */
.player-wrap { isolation: isolate; }
.player-wrap > .player { position: relative; z-index: 1; }
.ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: blur(70px) saturate(1.8); transform: scale(1.08); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; border-radius: 20px; }
.ambient.on { opacity: .6; }
.resume-chip { z-index: 3; }
@media (max-width: 760px) { .ambient { display: none; } }
/* Like burst + bell ring */
.like-btn, .short-act .act-ic { position: relative; overflow: visible; }
.seg { overflow: visible; }
.pop .icon, .pop.act-ic .icon { animation: likePop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1); } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.burst i { position: absolute; left: 0; top: 0; font-style: normal; font-size: 13px; color: var(--c); transform: translate(-50%, -50%) scale(.4); opacity: 0; animation: burstOut .75s ease-out forwards; text-shadow: 0 0 8px var(--c); }
@keyframes burstOut { 15% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; } }
.ring .icon { animation: bellRing .9s ease; transform-origin: 50% 10%; }
.bell-btn:hover .icon, .bell-top:hover .icon { animation: bellRing .9s ease; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
/* Page transition + scroll reveal */
.page-in { animation: pageIn .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0ms), transform .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
/* Logo intro (sirf pehli baar har session mein) */
#splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 50%, rgba(var(--mint-rgb), .10), transparent 70%), var(--bg); animation: spOut .4s ease 1.25s forwards; }
html.nosplash #splash { display: none; }
#splash .sp { display: flex; align-items: center; gap: 14px; }
#splash img { width: 72px; height: 72px; border-radius: 18px; animation: spLogo .6s cubic-bezier(.3, 1.5, .5, 1) both; box-shadow: 0 0 40px rgba(var(--mint-rgb), .25); }
#splash .sp-word { font: 900 italic 44px/1 "Montserrat", var(--display); letter-spacing: -0.05em; color: #fff; clip-path: inset(0 100% 0 0); animation: spWord .5s cubic-bezier(.2, .8, .2, 1) .35s forwards; position: relative; }
#splash .sp-word b { color: var(--mint); }
#splash .sp-word::after { content: ""; position: absolute; left: 46%; right: 0; bottom: -10px; height: 5px; border-radius: 3px; background: var(--mint); transform: scaleX(0); transform-origin: left; animation: spLine .4s ease .75s forwards; }
@keyframes spLogo { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spWord { to { clip-path: inset(0 0 0 0); } }
@keyframes spLine { to { transform: scaleX(1); } }
@keyframes spOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 760px) { #splash img { width: 58px; height: 58px; } #splash .sp-word { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { #splash { display: none; } .rv { opacity: 1; transform: none; } }
.seg .btn:first-child { border-radius: 999px 0 0 999px; }
.seg .btn:last-child { border-radius: 0 999px 999px 0; }
@media (hover: none) { .hero-thumb.previewing .play-big { opacity: .92; transform: translate(-50%, -50%) scale(.8); } }

/* ===== Batch: watch later, support, subtitles, community, 2FA, footer ===== */
.ch-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.later-btn.on { color: var(--mint); border-color: rgba(var(--mint-rgb), .45); background: rgba(var(--mint-rgb), .1); }
.btn.later-btn.on .icon { fill: var(--mint); }
.btn.support-btn { background: linear-gradient(135deg, #ff4d8d, #ec4899); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 6px 18px rgba(236, 72, 153, .3); }
.btn.support-btn .icon { fill: #fff; stroke: none; }
.btn.support-btn:hover { filter: brightness(1.08); }
.btn.support-btn.small-sup { width: 42px; padding: 0; justify-content: center; }
.btn.cc-btn.on { color: var(--mint); border-color: rgba(var(--mint-rgb), .5); background: rgba(var(--mint-rgb), .1); }
.sheet-body { padding: 4px 2px 8px; }
.support-box { display: grid; gap: 14px; justify-items: center; text-align: center; padding-bottom: 6px; }
.support-note { margin: 0; color: #d6d9e6; max-width: 46ch; }
.upi { display: grid; gap: 10px; justify-items: center; }
.qr-box { width: 220px; height: 220px; background: #fff; border-radius: 16px; padding: 8px; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box .muted { color: #555; font-size: 13px; text-align: center; }
.upi-id { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.upi-id code, code.secret { background: var(--surface-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 14px; word-break: break-all; }
.steps-ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.steps-ol .qr-box { width: 190px; height: 190px; margin: 4px 0 8px; }
/* Community */
.posts { display: grid; gap: 16px; max-width: 760px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .channel-avatar, .composer-top .channel-avatar { width: 40px; height: 40px; flex: none; box-shadow: none; }
.post-text { margin: 0; white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.post-img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 14px; background: #000; }
.post-like.on { color: #ff6b9d; border-color: rgba(255, 77, 141, .45); background: rgba(255, 77, 141, .1); }
.post-like.on .icon { fill: #ff4d8d; }
.post-like { position: relative; overflow: visible; }
.poll { display: grid; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; isolation: isolate; }
.poll-opt::before { content: ""; position: absolute; inset: 0; width: var(--p); background: rgba(var(--mint-rgb), .18); z-index: -1; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.poll-opt:hover { border-color: rgba(var(--mint-rgb), .45); }
.poll-opt.mine { border-color: var(--mint); }
.poll-opt.mine::before { background: rgba(var(--mint-rgb), .3); }
.poll-p { font-variant-numeric: tabular-nums; color: var(--mint); }
.composer { max-width: 760px !important; margin-bottom: 16px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-top textarea { flex: 1; min-height: 80px; }
.poll-edit { display: grid; gap: 8px; }
.poll-edit .linkbtn { justify-self: start; }
.btn.on { border-color: rgba(var(--mint-rgb), .5); }
.post-img-prev { position: relative; width: max-content; max-width: 100%; }
.post-img-prev img { max-height: 200px; max-width: 100%; border-radius: 12px; display: block; }
.post-img-prev .icon-round { position: absolute; top: 6px; right: 6px; }
.later-x { margin-left: auto; align-self: start; width: 30px; height: 30px; }
.card-body:has(.later-x) { grid-template-columns: 36px minmax(0, 1fr) auto; }
/* Footer */
.site-foot { max-width: 1440px; margin: 40px auto 0; padding: 20px 16px 28px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13.5px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--mint); }
@media (max-width: 760px) {
  .ch-head > .ch-btns { margin-left: 90px; }
  .post { padding: 14px; border-radius: 16px; }
}
