:root {
  --ink: #09070e;
  --ink-2: #120c19;
  --panel: #191120;
  --paper: #f8f4f5;
  --muted: #a99da9;
  --line: rgba(255,255,255,.12);
  --coral: #ff6973;
  --rose: #e94a86;
  --lilac: #b69cff;
  --mint: #bff3dc;
  --shadow: 0 30px 100px rgba(0,0,0,.42);
  --shell: min(1220px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.booting { overflow: hidden; }
button, input, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; border-radius: 999px; color: var(--ink); background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 16px; color: var(--coral); font-size: .7rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .98; letter-spacing: -.045em; }
h2 span { color: var(--coral); font-style: italic; }

.button { min-height: 52px; padding: 0 23px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
.button-primary { color: #fff; background: linear-gradient(115deg, var(--coral), var(--rose)); box-shadow: 0 15px 38px rgba(233,74,134,.3); }
.button-text { color: var(--muted); background: transparent; }
.button-ghost { min-height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }

.startup-layer { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; overflow: hidden; background: #08050d; transition: opacity .5s ease, visibility .5s ease; }
.startup-layer.is-leaving { opacity: 0; visibility: hidden; }
.startup-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .25; }
.glow-one { width: 570px; height: 570px; top: -310px; right: -140px; background: var(--rose); }
.glow-two { width: 470px; height: 470px; bottom: -260px; left: -180px; background: var(--lilac); }
.startup-card { width: min(570px, 100%); max-height: calc(100vh - 32px); padding: clamp(30px, 4.5vw, 46px); position: relative; overflow: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 34px; background: linear-gradient(145deg, rgba(35,23,44,.96), rgba(16,10,22,.96)); box-shadow: var(--shadow); text-align: center; }
.startup-card > img { margin: 0 auto 17px; filter: drop-shadow(0 14px 28px rgba(255,105,115,.24)); }
.startup-card h1 { margin-bottom: 17px; font-size: clamp(2.8rem, 6vw, 4.2rem); }
.startup-copy { max-width: 470px; margin-inline: auto; color: var(--muted); }
.countdown-wrap { margin: 21px 0 18px; padding: 13px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035); text-align: left; }
.countdown-ring { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,105,115,.48); border-radius: 50%; background: rgba(255,105,115,.1); box-shadow: inset 0 0 20px rgba(255,105,115,.08); }
.countdown-ring i { color: var(--coral); font: italic 1.35rem Georgia, serif; }
.countdown-wrap strong, .countdown-wrap small { display: block; }
.countdown-wrap strong { font-size: .84rem; }
.countdown-wrap small { color: var(--muted); font-size: .7rem; }
.startup-actions { display: grid; gap: 4px; }

.video-app { min-height: 100vh; opacity: 0; transform: scale(.985); filter: blur(8px); pointer-events: none; background: radial-gradient(circle at 50% -10%, rgba(182,156,255,.1), transparent 35%), var(--ink); transition: opacity .65s ease, transform .65s ease, filter .65s ease; }
body.app-ready .video-app { opacity: 1; transform: scale(1); filter: blur(0); pointer-events: auto; }
.stream-header { position: sticky; z-index: 40; top: 0; isolation: isolate; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(9,7,14,.88); backdrop-filter: blur(24px); }
.stream-header::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--coral) 26%, var(--lilac) 68%, transparent); opacity: .85; }
.stream-header-inner { min-height: 84px; display: flex; align-items: center; gap: 24px; }
.stream-brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; }
.stream-brand-mark { width: 48px; height: 48px; flex: 0 0 auto; padding: 3px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 17px 17px 17px 7px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.stream-brand-mark img { width: 100%; height: 100%; border-radius: 14px 14px 14px 5px; object-fit: contain; }
.stream-brand-copy { min-width: 0; display: grid; line-height: 1; }
.stream-brand-copy strong { overflow: hidden; font-size: .86rem; font-weight: 900; letter-spacing: .21em; text-overflow: ellipsis; white-space: nowrap; }
.stream-brand-copy small { margin-top: 7px; color: #817582; font-size: .56rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.stream-status { margin-left: auto; padding: 8px 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); color: #f7eef4; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.stream-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4f64; box-shadow: 0 0 0 5px rgba(255,79,100,.12), 0 0 16px rgba(255,79,100,.72); }
.stream-status strong { font-size: .62rem; letter-spacing: .14em; }
.stream-status > span:last-child { color: #8f838f; letter-spacing: .03em; text-transform: none; }
.stream-status b { color: var(--paper); }
.download-button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px 14px 14px 5px; color: #0b0810; background: linear-gradient(115deg, #ffe0d9, #cbbdff); box-shadow: 0 12px 30px rgba(154,122,226,.18); font-size: .72rem; font-weight: 900; transition: transform .2s, filter .2s, opacity .2s; }
.download-button:not(.is-disabled):hover { transform: translateY(-2px); filter: brightness(1.05); }
.download-button svg { width: 18px; height: 18px; }
.download-button.is-disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.video-list-page { min-height: calc(100vh - 84px); padding: 30px 0 80px; }
.app-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--line); background: rgba(9,7,14,.82); backdrop-filter: blur(22px); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 1fr minmax(280px, 440px) 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .85rem; font-weight: 850; letter-spacing: .22em; }
.brand img { filter: drop-shadow(0 8px 20px rgba(255,105,115,.25)); }
.search-box { min-height: 44px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.search-box > span:first-child { color: #887d88; font-size: 1.1rem; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: .84rem; }
.search-box input::placeholder { color: #7d727d; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.adult-chip { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #c4bac4; font-size: .66rem; font-weight: 850; }
.circle-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); cursor: pointer; font: italic 1rem Georgia, serif; }

.feed-intro { padding: 105px 0 72px; position: relative; overflow: hidden; }
.feed-intro::before { content: ""; position: absolute; z-index: -1; width: 680px; height: 470px; top: -290px; right: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(233,74,134,.18), transparent 68%); filter: blur(30px); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.intro-grid h2 { margin: 0; font-size: clamp(3.8rem, 7vw, 7rem); }
.intro-note > p { color: var(--muted); font-size: 1rem; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: #bbb0bb; font-size: .76rem; }
.privacy-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(191,243,220,.65); }

.feed-section { padding: 0 0 120px; }
.feed-toolbar { min-height: 68px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; align-items: center; gap: 6px; }
.filter-tabs button { padding: 9px 15px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: .79rem; font-weight: 750; }
.filter-tabs button.active { color: var(--ink); background: var(--paper); }
.feed-toolbar > p { margin: 0; color: #756a75; font-size: .73rem; }
.feed-toolbar > p span { color: var(--paper); font-weight: 800; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-unavailable { grid-column: 1 / -1; min-height: 260px; padding: 56px 24px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line); border-radius: 28px; text-align: center; color: var(--paper); background: rgba(255,255,255,.035); }
.video-unavailable strong { font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.video-unavailable span { color: var(--muted); }
.video-card, .video-skeleton { aspect-ratio: 9 / 14; border-radius: 25px; overflow: hidden; }
.video-card { position: relative; isolation: isolate; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 20px 55px rgba(0,0,0,.2); transition: transform .25s, border-color .25s, box-shadow .25s; }
.video-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.25); box-shadow: 0 28px 65px rgba(0,0,0,.32); }
.video-card-cover { width: 100%; height: 100%; position: absolute; z-index: 0; inset: 0; object-fit: cover; transition: transform .55s ease, filter .35s; }
.video-card:hover .video-card-cover { transform: scale(1.035); }
.card-shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: transparent !important; }
.live-badge { position: absolute; z-index: 4; top: 13px; left: 13px; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; background: rgba(16,8,18,.48); backdrop-filter: blur(12px); font-size: .57rem; font-weight: 900; letter-spacing: .12em; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4f64; box-shadow: 0 0 0 4px rgba(255,79,100,.14), 0 0 12px rgba(255,79,100,.72); animation: live-pulse 1.8s ease-in-out infinite; }
.card-actions { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; align-items: center; gap: 7px; }
.card-action { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #fff; background: rgba(10,6,14,.42); backdrop-filter: blur(12px); box-shadow: 0 8px 20px rgba(0,0,0,.18); cursor: pointer; transition: transform .18s, background .18s, border-color .18s; }
.card-action:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.18); }
.card-action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.card-action svg { width: 16px; height: 16px; }
.video-open { position: absolute; z-index: 2; inset: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.video-open::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid rgba(255,255,255,.94); filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); opacity: 0; transform: translate(-42%, -50%) scale(.75); transition: opacity .2s, transform .2s; }
.video-card:hover .video-open::after, .video-open:focus-visible::after { opacity: 1; transform: translate(-42%, -50%) scale(1); }
.video-open:focus-visible { outline: 2px solid var(--lilac); outline-offset: -5px; }
.video-skeleton { background: linear-gradient(110deg, #17101e 25%, #22172a 42%, #17101e 60%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes live-pulse { 0%, 100% { opacity: .72; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
.empty-filter { padding: 60px 20px; border: 1px dashed var(--line); border-radius: 24px; text-align: center; }
.empty-filter strong, .empty-filter span { display: block; }
.empty-filter span { margin-top: 5px; color: var(--muted); }

.feed-footer-note { padding: 0 0 120px; }
.note-card { min-height: 420px; padding: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; overflow: hidden; position: relative; border-radius: 38px; background: linear-gradient(120deg, #dc4a75, #9d4284 56%, #48316d); box-shadow: 0 36px 90px rgba(104,31,85,.24); }
.note-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -100px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.022); }
.note-card > * { position: relative; z-index: 1; }
.note-card .eyebrow { color: #ffd3da; }
.note-card h2 { margin: 0; font-size: clamp(3.1rem, 5.7vw, 5.7rem); }
.note-card h2 span { color: #ffe1db; }
.note-card > p { color: rgba(255,255,255,.72); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: #060409; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-inner > div { display: flex; gap: 20px; color: var(--muted); font-size: .78rem; }
.footer-inner > p { margin: 0; justify-self: end; color: #756a75; font-size: .7rem; }

.viewer-dialog, .info-dialog { padding: 0; border: 1px solid var(--line); border-radius: 28px; color: var(--paper); background: #15101b; box-shadow: var(--shadow); }
.viewer-dialog::backdrop, .info-dialog::backdrop { background: rgba(5,3,8,.82); backdrop-filter: blur(14px); }
.viewer-dialog { width: min(920px, calc(100vw - 28px)); overflow: hidden; background: #050307; }
.viewer-dialog video { width: 100%; max-height: 86vh; object-fit: contain; background: #050307; }
.dialog-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(8,5,12,.48); backdrop-filter: blur(10px); cursor: pointer; font-size: 1.35rem; }
.info-dialog { width: min(520px, calc(100vw - 28px)); padding: 48px; text-align: center; }
.info-dialog > img { margin: 0 auto 20px; }
.info-dialog h2 { font-size: clamp(2.7rem, 7vw, 4rem); }
.info-dialog > p:not(.eyebrow) { color: var(--muted); }
.info-dialog .button { width: 100%; margin-top: 18px; }
.exit-screen { position: fixed; z-index: 220; inset: 0; padding: 24px; display: grid; place-items: center; background: var(--ink); text-align: center; }
.exit-screen[hidden] { display: none; }
.exit-screen img { margin: 0 auto 20px; }
.exit-screen h2 { font-size: clamp(2.7rem, 7vw, 4.5rem); }
.exit-screen p { color: var(--muted); }

.legal-page { color: var(--ink); background: var(--paper); }
.legal-page .site-header { position: static; background: var(--ink); }
.legal-page .nav-wrap { width: var(--shell); min-height: 78px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.legal-page .legal-main { min-height: 75vh; padding: 90px 0 120px; }
.legal-wrap { width: min(760px, calc(100vw - 48px)); margin-inline: auto; }
.legal-wrap h1 { font-size: clamp(3.5rem, 8vw, 6.2rem); }
.legal-wrap h2 { margin: 52px 0 14px; font-size: 2rem; letter-spacing: -.02em; }
.legal-wrap p, .legal-wrap li { color: #5f5660; }
.legal-wrap a { color: #9d315f; text-decoration: underline; }
.legal-meta { margin-bottom: 44px; color: #887c88; }
.legal-page .site-footer { color: var(--paper); }

@media (max-width: 1020px) {
  :root { --shell: min(calc(100% - 36px), 820px); }
  .stream-header-inner { gap: 16px; }
  .header-inner { grid-template-columns: 1fr minmax(230px, 340px) auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 25px; }
  .intro-note { max-width: 620px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .note-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(calc(100% - 28px), 580px); }
  .startup-layer { padding: 12px; }
  .startup-card { padding: 34px 23px; }
  .stream-header-inner { min-height: 72px; gap: 10px; }
  .stream-brand { gap: 9px; }
  .stream-brand-mark { width: 42px; height: 42px; border-radius: 15px 15px 15px 6px; }
  .stream-brand-copy strong { font-size: .74rem; letter-spacing: .16em; }
  .stream-brand-copy small { display: none; }
  .stream-status { margin-left: auto; padding: 8px 10px; }
  .stream-status > span:last-child { display: none; }
  .download-button { width: 42px; min-height: 42px; padding: 0; border-radius: 14px 14px 14px 5px; }
  .download-button > span { display: none; }
  .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .search-box { grid-column: 1 / -1; grid-row: 2; margin-bottom: 13px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .feed-intro { padding: 78px 0 48px; }
  .intro-grid h2 { font-size: clamp(3.35rem, 16vw, 4.7rem); }
  .feed-toolbar { align-items: flex-start; flex-direction: column; padding-bottom: 16px; }
  .filter-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs button { white-space: nowrap; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-list-page { padding: 18px 0 60px; }
  .video-card, .video-skeleton { border-radius: 20px; }
  .live-badge { top: 10px; left: 10px; min-height: 27px; padding: 0 8px; font-size: .51rem; }
  .card-actions { top: 9px; right: 9px; gap: 5px; }
  .card-action { width: 30px; height: 30px; }
  .card-action svg { width: 14px; height: 14px; }
  .feed-section, .feed-footer-note { padding-bottom: 82px; }
  .note-card { min-height: 500px; padding: 38px 27px; border-radius: 28px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p { grid-column: 1 / -1; justify-self: start; }
  .info-dialog { padding: 44px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Codex: show uploaded videos without color styling */
.video-card-cover,
.video-card video,
.viewer-dialog video {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.card-shade {
  background: transparent !important;
}

