:root {
  --bg: #070b14;
  --panel: #0f1624;
  --line: #1f2839;
  --text: #f2f4f8;
  --muted: #98a2b5;
  --accent: #ee2530;
  --accent-ink: #fff;
  --danger: #ff6b6b;
  --ok: #4caf7d;
  --top-h: 64px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1 { font-size: 1.7rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .75rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { padding-top: 28px; padding-bottom: 56px; flex: 1; width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(7, 11, 20, .96), rgba(7, 11, 20, .72)); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--top-h); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.45rem; letter-spacing: .2px; color: var(--text); }
.logo svg { color: var(--accent); }
.logo b { color: var(--accent); font-weight: 700; }
.logo:hover { color: var(--text); }
.top nav.main { display: flex; gap: 26px; align-items: center; font-size: .9rem; }
.top nav.main a, .top nav.main summary { padding: 6px 0; border-bottom: 2px solid transparent; color: #d5dae4; }
.top nav.main a:hover, .top nav.main summary:hover { color: #fff; }
.top nav.main .on { color: #fff; font-weight: 600; border-bottom-color: var(--accent); }
.top .tools { display: flex; gap: 16px; align-items: center; margin-left: auto; font-size: .9rem; }
.top form.search input { width: 150px; padding: 7px 12px 7px 34px; border-radius: 999px; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px center no-repeat; border-color: transparent; transition: width .2s; }
.top form.search input:focus { width: 220px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; }

/* dropdowns (<details class="menu">) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.menu .drop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: grid; gap: 2px; z-index: 30; }
.menu.right .drop { left: auto; right: 0; }
.menu .drop a, .menu .drop .linkbtn, .menu .drop span { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0 !important; border-radius: 6px; font-size: .88rem; overflow-wrap: anywhere; }
.menu .drop a:hover, .menu .drop .linkbtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* forms + buttons */
input, select, textarea { width: 100%; padding: 10px 12px; background: #0b111d; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 4px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.btn { display: inline-block; padding: 11px 22px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.btn:hover { filter: brightness(1.12); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.glass { background: rgba(120, 130, 150, .35); color: #fff; backdrop-filter: blur(6px); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); font-weight: 500; }
.btn.small { padding: 6px 12px; font-size: .82rem; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
.inline { display: inline; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.narrow { max-width: 420px; margin: 32px auto; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; background: rgba(76, 175, 125, .15); border: 1px solid var(--ok); }
.flash.err { background: rgba(238, 37, 48, .12); border-color: var(--danger); }
.flash ul { margin: 0; padding-left: 18px; }

/* hero slider */
.hero { position: relative; margin-top: calc(var(--top-h) * -1); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; display: flex; align-items: center; min-height: min(74vh, 600px); padding: calc(var(--top-h) + 32px) 0 64px; background: #101a2e center top / cover no-repeat; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 20, .95) 0%, rgba(7, 11, 20, .7) 38%, rgba(7, 11, 20, .1) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.slide .wrap { position: relative; width: 100%; }
.pitch { max-width: 520px; }
.kicker { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pitch h1 { margin: 0 0 12px; font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: .5px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 12px; color: #c3cad6; font-size: .88rem; }
.meta span + span::before { content: "|"; margin: 0 12px; color: #5d667a; }
.meta .pill { padding: 1px 8px; border: 1px solid #5d667a; border-radius: 4px; font-size: .75rem; }
.meta .pill::before { display: none; }
.meta span + .pill { margin-left: 12px; }
.blurb { margin: 0 0 22px; color: #d5dae4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .arrow { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .7; }
.hero .arrow:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.hero .prev { left: 8px; }
.hero .next { right: 8px; }
.dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--accent); }

/* catalogue */
.rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.rowhead:first-child { margin-top: 0; }
.rowhead h2 { margin: 0; }
.rowhead a { font-size: .8rem; color: #c3cad6; white-space: nowrap; }
.rowhead a:hover { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip.wide { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
.strip > * { scroll-snap-align: start; min-width: 0; }
.tile .poster { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #1a2540, #0c1220); display: flex; align-items: flex-end; padding: 12px; font-weight: 700; font-size: 1.1rem; line-height: 1.15; color: #fff; transition: transform .18s, box-shadow .18s; }
.tile .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .poster { transform: scale(1.04); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.tile:hover { color: inherit; }
.tile .name, .resume .name { margin-top: 10px; font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .price { color: var(--muted); font-size: .8rem; }
.tile .price b { color: var(--accent); font-weight: 600; }
.resume { display: block; background: var(--panel); border-radius: 6px; overflow: hidden; padding-bottom: 12px; }
.resume:hover { color: inherit; }
.resume .shot { position: relative; aspect-ratio: 16 / 9; background: #16203a center 25% / cover no-repeat; display: grid; place-items: center; }
.resume .play { display: grid; place-items: center; width: 44px; height: 44px; padding-left: 3px; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: .9rem; transition: background .18s; }
.resume:hover .play { background: var(--accent); border-color: var(--accent); }
.resume .bar { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.resume .bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.resume .name, .resume .muted { padding: 0 14px; }
.resume .muted { font-size: .8rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 1000px) { .strip { grid-auto-columns: calc((100% - 3 * 18px) / 4); } .strip.wide { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .strip { grid-auto-columns: 42%; } .strip.wide { grid-auto-columns: 78%; } .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* call to action + footer */
.cta { background: linear-gradient(100deg, #2a1552 0%, #4a1a6b 55%, #2b1454 100%); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
.cta p { margin: 0; max-width: 520px; color: #d9cfee; }
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: .85rem; }
.foot nav { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 0 auto; color: #c3cad6; }
.foot .logo { font-size: 1.3rem; }

/* video page */
.detail { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.detail .poster { border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--panel); }
.detail .poster img { width: 100%; height: 100%; object-fit: cover; }
.detail a:not(.btn) { color: #c3cad6; }
.bigprice { font-size: 1.7rem; font-weight: 700; color: var(--accent); margin: .6em 0 .2em; }
.desc { white-space: pre-line; color: #d5dae4; }
.player { width: 100%; max-height: 78vh; background: #000; border-radius: 8px; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; } .detail .poster { max-width: 220px; } }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .85rem; white-space: nowrap; }
td input, td select { padding: 6px 8px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.bad { color: var(--danger); border-color: var(--danger); }
.tag.wait { color: #f5b301; border-color: #f5b301; }
.thumb { width: 44px; height: 62px; object-fit: cover; border-radius: 4px; }
.thumb.wide { width: 140px; height: 54px; }
pre.err { white-space: pre-wrap; color: var(--danger); font-size: .8rem; margin: 6px 0 0; max-height: 160px; overflow: auto; }

/* pagination (Laravel simple-default view) */
.pagination { display: flex; gap: 12px; list-style: none; padding: 0; margin: 28px 0 0; }
.pagination li > * { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; display: block; }
.pagination .disabled { opacity: .4; }

/* admin */
.admin { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin aside { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; }
.admin aside .logo { margin: 0 0 18px 8px; font-size: 1.25rem; }
.admin aside a:not(.logo), .admin aside .linkbtn { display: block; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; }
.admin aside a.on { background: rgba(238, 37, 48, .14); color: #fff; box-shadow: inset 3px 0 var(--accent); }
.admin > main { padding: 24px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stats .num { font-size: 1.7rem; font-weight: 700; color: #fff; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 10px 16px; padding-top: 10px; padding-bottom: 8px; }
  .top nav.main { order: 3; width: 100%; gap: 20px; overflow-x: auto; }
  .top form.search input, .top form.search input:focus { width: 120px; }
  .hero .arrow { display: none; }
  .slide { min-height: 460px; }
  .admin { grid-template-columns: 1fr; }
  .admin aside { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin aside .logo { width: 100%; margin: 0 0 6px 4px; }
  .admin aside a:not(.logo), .admin aside .linkbtn { width: auto; }
  .admin > main { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* video page: player-shaped stage with poster, play button and pay popup */
.stage { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; border-radius: 8px; overflow: hidden; background: #000 center / cover no-repeat; display: grid; place-items: center; isolation: isolate; }
.stage::before, .stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; }
.stage::before { background-size: cover; filter: blur(28px) brightness(.45); transform: scale(1.15); }
.stage::after { background-color: transparent; background-size: contain; }
.bigplay { display: grid; place-items: center; width: 84px; height: 84px; padding-left: 6px; border: 3px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.9rem; cursor: pointer; transition: background .18s, transform .18s; }
.bigplay:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.stage .lock { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: .85rem; font-weight: 500; }
.vtitle { margin: 20px 0 4px; }
dialog.pay { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
dialog.pay::backdrop { background: rgba(3, 5, 10, .78); backdrop-filter: blur(3px); }
dialog.pay h2 { margin: 0; font-size: 1.4rem; }
dialog.pay .x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
dialog.pay .x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn.wide { display: block; width: 100%; text-align: center; margin-top: 10px; }

/* playback page: custom player */
.pbox { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; }
.pbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.pbox:fullscreen { max-height: none; border-radius: 0; }
.pbox .bigplay { position: relative; z-index: 1; }
.pbox.started .bigplay { display: none; }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); transition: opacity .25s; }
.pbox.idle:not(.paused) .pbar { opacity: 0; pointer-events: none; }
.pbox.idle:not(.paused) video { cursor: none; }
.pbox:not(.started) .pbar { opacity: 0; pointer-events: none; }
.prow { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.prow .grow { flex: 1; }
.prow button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.prow button:hover { background: rgba(255, 255, 255, .14); }
.prow svg { width: 26px; height: 26px; }
.pbox.paused .i-pause, .pbox:not(.paused) .i-play, .pbox.muted .i-vol, .pbox:not(.muted) .i-muted { display: none; }
.ptime { margin-left: 8px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.ptime i { margin: 0 6px; color: #9aa3b5; font-style: normal; }
#pb-seek { --p: 0%; display: block; width: 100%; height: 4px; margin: 0; padding: 0; border: 0; border-radius: 2px; appearance: none; -webkit-appearance: none; cursor: pointer; background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, .35) var(--p)); }
#pb-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
#pb-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
#pb-seek::-moz-range-track { background: transparent; }
.pmenu { position: relative; }
.plist { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 110px; padding: 6px; border-radius: 8px; background: rgba(15, 22, 36, .96); border: 1px solid var(--line); display: grid; gap: 2px; }
.plist[hidden] { display: none; }
.plist button { width: 100%; height: auto; padding: 7px 12px; border-radius: 6px; font: inherit; font-size: .85rem; text-align: left; display: block; }
.plist button.on { color: var(--accent); font-weight: 600; }
.vtitle { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; margin: 22px 0 4px; }
.meta a { color: inherit; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0 0; }
.rule + .rowhead { margin-top: 20px; }
.widecard { position: relative; display: flex; align-items: flex-end; aspect-ratio: 5 / 2; padding: 12px 14px; border-radius: 6px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #1a2540, #0c1220) center 30% / cover no-repeat; font-weight: 600; font-size: 1.05rem; line-height: 1.15; text-transform: uppercase; color: #fff; transition: transform .18s; }
.widecard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .75)); }
.widecard:hover { transform: scale(1.03); color: #fff; }
@media (max-width: 640px) { .pbar { padding: 32px 10px 6px; } .prow button { width: 36px; height: 36px; } .prow svg { width: 22px; height: 22px; } }

/* upload progress + free-form pages */
progress { display: block; width: 100%; height: 8px; margin: 0 0 16px; border: 0; border-radius: 4px; overflow: hidden; background: var(--line); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
code { padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); font-size: .85em; }
.prose { max-width: 760px; color: #d5dae4; }
.prose h1 { color: #fff; font-size: 2rem; }
.prose h2, .prose h3 { color: #fff; margin: 1.6em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose li { margin: .3em 0; }
