/* ===== Theme layer: shared overrides driven by theme variables ===== */
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
.topbar { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent), transparent); }
.menu-sheet { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.age-gate { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.age-card, .cookie-bar, .contact-form form, .sent { background: var(--panel); }
.btn-gold { color: var(--on-accent); background: linear-gradient(135deg, var(--gold2), var(--gold) 50%, var(--gold3)); }
.nav-arrow, .rail-btn, .pill-btn, .icon-btn, .btn-ghost, .ad-cta, .ad-skip:disabled, .ad-sound { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.chip.on, .ad-skip:not(:disabled), .toast { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card, .thumb, .player { border-radius: var(--r); }
.idx-num { -webkit-text-stroke-color: var(--line2); }
.kicker, .eyebrow, .side-h, .footer-cols h4 { color: var(--gold); }
.light .grain { opacity: .05; mix-blend-mode: multiply; }
.light .card-shade { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.light .card-meta, .light .vmeta { color: #fff; }
.light .watch-bg { filter: blur(90px) brightness(1.1) saturate(.6); opacity: .35; }
.light .field input, .light .field select, .light .field textarea, .light .lib-search { background: #fff; }

/* ===== Dynamic logo (every theme except the original) ===== */
.logo { display: inline-flex; align-items: center; gap: 0; font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; transition: transform .3s var(--ease), filter .3s; }
.brand:hover .logo { transform: translateY(-1px); filter: brightness(1.12); }
.logo .la, .logo .lb { display: inline-block; }
.l-pill .logo .lb, .l-pill .logo.one .la { margin-left: 3px; padding: 3px 7px 4px; border-radius: 6px; background: var(--gold); color: var(--on-accent); }
.l-pill .logo.one .la { margin: 0; }
.l-box .logo { padding: 6px 12px 7px; border-radius: 4px; background: var(--gold); color: var(--on-accent); text-transform: uppercase; letter-spacing: .01em; gap: 6px; }
.l-box .logo .lb { opacity: .82; font-weight: 600; }
.l-glow .logo { text-transform: uppercase; letter-spacing: .04em; color: var(--gold2); text-shadow: 0 0 18px var(--gold), 0 0 2px var(--gold); }
.l-glow .logo .lb { color: var(--ink); text-shadow: none; }
.l-grad .logo { background: linear-gradient(100deg, var(--gold2), var(--gold) 55%, color-mix(in srgb, var(--gold) 60%, #7c3aed)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 2px 2px 4px; }
.l-badge .logo .la { padding: 4px 8px; margin-right: 6px; border-radius: 6px; background: var(--gold); color: var(--on-accent); }
.l-badge .logo.one .la { margin: 0; }
.l-dot .logo { text-transform: uppercase; letter-spacing: .14em; font-size: 20px; font-weight: 800; gap: 2px; }
.l-dot .logo::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); margin-right: 10px; }
.l-dot .logo .lb { color: var(--gold); }
.l-sq .logo::before { content: ''; width: 30px; height: 30px; margin-right: 9px; border-radius: 4px; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center/18px no-repeat; }
.l-sq .logo .lb { color: var(--gold); }
.l-stencil .logo { padding: 7px 16px 8px; background: var(--gold); color: #000; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.l-foil .logo { background: linear-gradient(110deg, #a77b16, var(--gold2) 35%, var(--gold) 55%, #fff3c4 70%, #a77b16); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 1px solid var(--line2); padding-bottom: 4px; font-style: italic; }
.l-tag .logo { padding: 6px 14px 7px; border-radius: 12px 4px 12px 4px; background: var(--gold); color: var(--on-accent); gap: 4px; }
.l-tag .logo .lb { font-weight: 500; }
.l-dual .logo { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; text-shadow: -2px -1px 0 var(--gold2), 2px 1px 0 var(--gold); }
.l-italic .logo .la { font-style: italic; font-weight: 500; color: var(--gold); margin-right: 6px; }
.l-italic .logo .lb { font-family: var(--sans); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; font-weight: 600; }
.age-mark .logo { font-size: 38px; }

/* ===== Vertical feed ===== */
.vwrap { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; }
.vfeed { position: relative; z-index: 1; height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; width: min(100vw, calc(100dvh * 9 / 16)); }
.vfeed::-webkit-scrollbar { display: none; }
.vfeed.locked { overflow: hidden; }
.vback { display: none; }
.vslide { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; padding: 76px 0 14px; display: flex; }
.vcard-v { position: relative; flex: 1; overflow: hidden; background: #000; border-radius: var(--r); }
.o-frame .vcard-v { box-shadow: 0 0 0 1px var(--line2), 0 40px 100px -30px #000; }
.vcard-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vmeta { position: absolute; left: 20px; right: 84px; bottom: 26px; transition: opacity .4s, transform .4s var(--ease); }
.vmeta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.8vh, 2.1rem); line-height: 1.1; margin: 6px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vrail { position: absolute; right: 12px; bottom: 30px; display: grid; gap: 10px; transition: opacity .4s; }
.vrail button { width: 52px; padding: 10px 0 8px; display: grid; justify-items: center; gap: 2px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(12px); font-size: 11px; color: var(--ink); transition: transform .25s var(--ease), border-color .25s; }
.vrail button:hover { transform: scale(1.08); border-color: var(--line2); }
.vrail svg { font-size: 22px; } .vrail button.on svg { fill: var(--gold); stroke: var(--gold); }
.vside { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 4vw, 70px); }
.vside .hints { padding: 0; margin-top: 20px; color: var(--mute); font-size: 12px; } .vside .display.sm { padding: 0; } .vside.r { align-items: flex-end; } .vside.r .foot-legal { flex-direction: column; text-align: right; color: var(--mute); }
.vslide.is-ad .ad-box { position: absolute; inset: 0; } .vslide.ad-done .ad-box { display: none; } .vslide.ad-done .ad-thanks { display: grid; }
.o-full .vslide .ad-ui { padding-top: 84px; }
.tube .sec .tube-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 64px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; margin: -2px; }
.tube .sec .tube-grid::-webkit-scrollbar { display: none; } .tube .sec .vcard { scroll-snap-align: start; }
.c-dense .tube .sec .tube-grid { grid-auto-columns: calc((100% - 50px) / 6); }
@media (max-width: 1500px) { .tube .sec .tube-grid, .c-dense .tube .sec .tube-grid { grid-auto-columns: calc((100% - 48px) / 4); } }
@media (max-width: 1100px) { .tube .sec .tube-grid, .c-dense .tube .sec .tube-grid { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 900px) { .tube .sec .tube-grid, .c-dense .tube .sec .tube-grid { grid-auto-columns: 72%; gap: 10px; } }
/* full-bleed TikTok */
.o-full .vwrap { grid-template-columns: 0 1fr 0; } .o-full .vfeed { width: 100vw; } .o-full .vside { display: none; }
.o-full .vslide { padding: 0; } .o-full .vcard-v { border-radius: 0; }
.o-full .vcard-v video { object-fit: contain; background: #000; }
.o-full .vmeta { left: clamp(20px, 30vw, 34vw); right: clamp(90px, 30vw, 34vw); bottom: 40px; }
.o-full .vrail { right: clamp(14px, 28vw, 32vw); bottom: 40px; }
.o-full .vrail button { border-radius: 50%; width: 54px; height: 54px; padding: 0; align-content: center; background: rgba(255,255,255,.12); }
/* split: video + up next list */
.o-split .vwrap { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); }
.o-split .vside.r { align-items: stretch; justify-content: flex-start; padding-top: 90px; }
.o-split .vside.r .foot-legal { flex-direction: row; flex-wrap: wrap; text-align: left; margin-top: 18px; gap: 6px 14px; font-size: 12px; }
.vnext { display: grid; gap: 10px; max-width: 460px; max-height: calc(100dvh - 170px); overflow-y: auto; scrollbar-width: thin; }
.vnext-i { display: grid; grid-template-columns: 168px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); transition: background-color .25s; }
.vnext-i:hover { background: var(--bg2); } .vnext-i .thumb { border-radius: calc(var(--r) - 4px); }
.vnext-i b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .vnext-i small { color: var(--mute); font-size: 12px; }
.o-split .vslide { padding: 84px 0 20px; }
/* blurred ambient */
.o-blur .vback { display: block; position: absolute; inset: -12%; background: center/cover no-repeat; filter: blur(70px) saturate(1.5) brightness(.45); transition: background-image .8s; }
.o-blur .vwrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 100%); pointer-events: none; }
.o-blur .vcard-v { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 140px -30px var(--gold); }
.o-blur .vrail button { background: rgba(255,255,255,.08); }
/* phone mockup */
.o-phone .vwrap { grid-template-columns: 1fr auto 1fr; align-items: center; background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%); }
.o-phone .vfeed { height: calc(100dvh - 120px); width: calc((100dvh - 120px) * 9 / 19); margin-top: 60px; border-radius: 46px; box-shadow: 0 0 0 10px #050304, 0 0 0 11px var(--line2), 0 60px 140px -30px #000; }
.o-phone .vslide { height: 100%; padding: 0; }
.o-phone .vcard-v { border-radius: 0; }
.o-phone .vcard-v::before { content: ''; position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #050304; z-index: 3; }
/* minimal snap */
.o-minimal .clip-progress { top: 0; bottom: auto; height: 3px; z-index: 3; }
@media (hover: hover) { .o-minimal .vcard-v .vmeta, .o-minimal .vcard-v .vrail { opacity: .0; transform: translateY(8px); } .o-minimal .vcard-v:hover .vmeta, .o-minimal .vcard-v:hover .vrail { opacity: 1; transform: none; } }
.o-minimal .vrail button { border-radius: 50%; width: 48px; height: 48px; padding: 0; align-content: center; }
@media (max-width: 900px) {
  .vside { display: none; } .vwrap, .o-split .vwrap, .o-phone .vwrap { grid-template-columns: 0 1fr 0; } .vfeed, .o-phone .vfeed { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
  .vslide, .o-split .vslide { padding: 0; height: 100dvh; } .vcard-v { border-radius: 0; } .o-phone .vcard-v::before { display: none; } .vslide .ad-ui { padding-top: 84px; }
  .o-full .vmeta { left: 20px; right: 84px; } .o-full .vrail { right: 12px; } .o-full .vcard-v video { object-fit: cover; }
}

/* ===== Tube (big-site style) ===== */
.eng-tube { font-size: 14px; }
.eng-tube .page { padding-top: 50px; } .eng-tube .watch { padding-top: 26px; }
.th { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px -20px rgba(0,0,0,.6); }
.light .th { background: var(--bg2); }
.th-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 12px clamp(12px, 2.4vw, 32px); max-width: 1800px; margin: 0 auto; }
.th-burger { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 22px; transition: background-color .2s; }
.th-burger:hover { background: var(--line); }
.th-search { flex: 1; max-width: 720px; display: flex; height: 42px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); transition: border-color .2s, box-shadow .2s; }
.light .th-search { background: var(--bg); }
.th-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.th-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 0 16px; }
.th-search button { width: 58px; border: 0; background: var(--gold); color: var(--on-accent); font-size: 18px; display: grid; place-items: center; transition: filter .2s; }
.th-search button:hover { filter: brightness(1.1); }
.th-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.th-18 { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line2); color: var(--gold); }
.th-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 1800px; margin: 0 auto; padding: 0 clamp(12px, 2.4vw, 32px); }
.th-nav::-webkit-scrollbar { display: none; }
.th-nav a { position: relative; padding: 11px 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink2); white-space: nowrap; transition: color .2s; }
.th-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.th-nav a:hover { color: var(--ink); } .th-nav a.on { color: var(--gold); } .th-nav a.on::after, .th-nav a:hover::after { transform: none; }
.h-nav .th-nav { max-width: none; background: var(--gold); padding-left: max(clamp(12px, 2.4vw, 32px), calc((100vw - 1800px) / 2)); }
.h-nav .th-nav a { color: color-mix(in srgb, var(--on-accent) 80%, transparent); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.h-nav .th-nav a::after { background: var(--on-accent); } .h-nav .th-nav a.on, .h-nav .th-nav a:hover { color: var(--on-accent); }
.h-center .th-row { justify-content: space-between; } .h-center .th-search { max-width: 640px; margin: 0 auto; border-radius: 99px; } .h-center .th-search button { border-radius: 0 99px 99px 0; }
.h-center .th-nav { justify-content: safe center; } .h-center .th-act { margin-left: 0; }
.tube { max-width: 1800px; margin: 0 auto; padding: 22px clamp(12px, 2.4vw, 32px) 60px; }
.tube-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; padding-bottom: 2px; }
.tube-cats::-webkit-scrollbar { display: none; }
.tube-cats .chip { white-space: nowrap; border-radius: var(--r); padding: 7px 14px; background: var(--bg2); font-weight: 500; }
.tube-cats .chip.on { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.tube-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.o-side-right .tube-body { grid-template-columns: minmax(0, 1fr) 240px; } .o-side-right .tube-side { order: 2; }
.o-chips .tube-body { grid-template-columns: 1fr; } .o-chips .tube-side { display: none; }
.o-side-left .tube-cats, .o-side-right .tube-cats { display: none; }
.tube-side { position: sticky; top: 120px; align-self: start; display: grid; gap: 1px; max-height: calc(100vh - 140px); overflow: auto; scrollbar-width: thin; padding-right: 4px; }
.side-t { margin: 0 0 8px; padding: 0 12px; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.side-t:not(:first-child) { margin-top: 20px; }
.tube-side a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 6px; color: var(--ink2); font-size: 14px; transition: background-color .2s, color .2s, padding .2s; }
.tube-side a:hover, .tube-side a.on { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--ink); padding-left: 16px; }
.tube-side a.on { box-shadow: inset 3px 0 0 var(--gold); } .tube-side small { color: var(--mute); } .side-empty { color: var(--mute); padding: 0 12px; }
.sec { margin-bottom: 34px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-h h1, .sec-h h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .005em; }
.sec-h small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--mute); padding: 2px 8px; border-radius: 99px; background: var(--bg2); }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sec-more { color: var(--gold); font-weight: 600; font-size: 13px; } .sec-more:hover { text-decoration: underline; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: calc(var(--r) + 4px); background: var(--bg2); border: 1px solid var(--line); }
.tabs a { padding: 6px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--ink2); transition: background-color .2s, color .2s; }
.tabs a:hover { color: var(--ink); } .tabs a.on { background: var(--gold); color: var(--on-accent); }
.tube-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 16px; }
.c-dense .tube-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 10px; }
.eng-tube .vcard { opacity: 1; transform: none; }
.eng-tube .thumb { border-radius: var(--r); box-shadow: none; background: var(--bg2); }
.eng-tube .vcard:hover .thumb { transform: none; box-shadow: 0 0 0 2px var(--gold); }
.eng-tube .thumb em { right: 6px; bottom: 6px; border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.82); color: #fff; backdrop-filter: none; }
.thumb .hd { position: absolute; left: 6px; top: 6px; z-index: 2; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; background: var(--gold); color: var(--on-accent); }
.pbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; z-index: 3; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.previewing .pbar { animation: pbar 16s linear infinite; }
@keyframes pbar { to { transform: scaleX(1); } }
.eng-tube .vcard-txt { padding: 9px 2px 0; }
.eng-tube .vcard-txt b { font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.35; }
.eng-tube .vcard:hover b { color: var(--gold); }
.eng-tube .vcard-txt small { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: var(--mute); }
.eng-tube .vcard-txt small span { display: inline-flex; align-items: center; gap: 4px; } .eng-tube .vcard-txt small svg { font-size: 13px; }
.c-dense .vcard-txt b { font-size: 13px; -webkit-line-clamp: 1; }
.c-over .vcard { position: relative; }
.c-over .vcard-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 10px; border-radius: 0 0 var(--r) var(--r); background: linear-gradient(0deg, rgba(0,0,0,.92), transparent); color: #fff; pointer-events: none; z-index: 2; transition: opacity .3s; }
.c-over .vcard-txt small { color: rgba(255,255,255,.75); }
.c-over .thumb em { top: 6px; bottom: auto; }
.c-over .vcard.previewing .vcard-txt { opacity: 0; }
.tpager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.tpager a, .tpager span { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); font-weight: 600; transition: border-color .2s, color .2s; }
.tpager a:hover { border-color: var(--gold); color: var(--gold); } .tpager span.on { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.eng-tube .footer { max-width: none; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg2); padding-left: max(clamp(18px, 4vw, 56px), calc((100vw - 1740px) / 2)); padding-right: max(clamp(18px, 4vw, 56px), calc((100vw - 1740px) / 2)); }
@media (max-width: 900px) {
  .tube-body, .o-side-right .tube-body { grid-template-columns: 1fr; } .tube-side { display: none; } .o-side-left .tube-cats, .o-side-right .tube-cats { display: flex; }
  .tube-grid, .c-dense .tube-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .th-act { display: none; } .th-row, .h-center .th-row { flex-wrap: wrap; justify-content: flex-start; } .th-search, .h-center .th-search { order: 3; flex-basis: 100%; max-width: none; } .logo { font-size: 22px; }
}
@media (max-width: 480px) { .tube-grid, .c-dense .tube-grid { grid-template-columns: 1fr; } }
