:root {
    --bg: #0c0a09;
    --bg-2: #161210;
    --ink: #f6f1e7;
    --muted: #b7aa9a;
    --line: rgba(228, 194, 122, 0.2);
    --accent: #e4c27a;
    --accent-ink: #1a120c;
    --lime: #e4c27a;
    --card: #14110f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(820px 380px at 100% -12%, rgba(228, 194, 122, 0.14), transparent 58%),
        radial-gradient(640px 320px at -10% 20%, rgba(120, 36, 48, 0.22), transparent 60%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 0.8em; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--lime);
    color: #111;
    padding: 0.4rem 0.7rem;
    z-index: 5;
}
.skip:focus { top: 0.6rem; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 2rem)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(18, 20, 15, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.4rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.35rem;
}
.logo-mark { width: 2.35rem; height: 2.35rem; flex: 0 0 auto; display: block; }
.logo-type { display: grid; line-height: 1.05; }
.logo-name { letter-spacing: -0.03em; }
.logo-sub {
    margin-top: 0.18rem;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.mark {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    background: var(--accent);
    position: relative;
}
.mark::after {
    content: "";
    position: absolute;
    left: 0.48rem;
    top: 0.32rem;
    border-style: solid;
    border-width: 0.34rem 0 0.34rem 0.52rem;
    border-color: transparent transparent transparent var(--accent-ink);
}
.nav { display: none; gap: 1rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.search { margin-left: auto; display: none; }
.search input, .field input, .field textarea, .field select {
    width: 100%;
    background: #10120d;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.7rem 0.8rem;
}
.search input { width: 11rem; padding: 0.45rem 0.7rem; }
.menu { margin-left: auto; }
.menu summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu a { display: block; padding: 0.35rem 0; text-decoration: none; }
.tg-link { display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0; white-space: nowrap; }
.tg-logo { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: block; }
.menu a.tg-link { display: inline-flex; }
.header-bar > .btn { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}
.btn-primary { background: linear-gradient(180deg, #f3e0b8, #c6a15a); color: #1a120c; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.92rem; }
.hero { padding: 3.2rem 0 1rem; }
.hero-grid { display: grid; gap: 1.5rem; }
.eyebrow, .kicker {
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}
.lede { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.hero-note {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.2rem 1.2rem 0.4rem;
    box-shadow: var(--shadow);
}
.hero-note ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.hero-note li { margin-bottom: 0.7rem; }

.section { padding: 1.6rem 0 0.6rem; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}
.section-head a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: var(--bg-2);
}
.chip span { color: var(--lime); }

.grid, .package-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.card {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    overflow: hidden;
}
.card:hover { border-color: rgba(228, 194, 122, 0.7); transform: translateY(-2px); }
.card { transition: border-color 0.2s ease, transform 0.2s ease; }
.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d0f0b;
    overflow: hidden;
}
.thumb img, .thumb-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-fallback {
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 2.4rem;
    color: rgba(244, 240, 230, 0.35);
    background:
        linear-gradient(160deg, rgba(228, 194, 122, 0.28), transparent 55%),
        #2a211c;
}
.badge, .duration, .thumb-views {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.badge {
    top: 0.6rem;
    left: 0.6rem;
    background: var(--accent);
    color: #1a120c;
    font-weight: 600;
}
.thumb-views {
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.duration {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    z-index: 1;
    background: rgba(0, 0, 0, 0.72);
    color: #f4f0e6;
}
.card-body { padding: 0.9rem 1rem 1rem; }
.card-body h3 { font-size: 1.25rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.45rem; }

.package-card, .panel, .notice, .empty {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.1rem 1.15rem;
}
.package-card h3, .package-card h2 { font-size: 1.7rem; }
.package-card a { text-decoration: none; }
.price { color: var(--lime); font-weight: 600; margin-bottom: 0.3rem; }
.price-lg { font-size: 1.3rem; }
.text-link { color: var(--accent); }
.empty { margin-top: 1rem; }
.band { margin: 2.2rem 0 0; padding: 2rem 0 2.4rem; background: linear-gradient(180deg, #1c1410, #120e0c); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.band h2 { margin-bottom: 0.3rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; color: var(--muted); }
.view-count { color: var(--muted); font-size: 0.92rem; }
.player,
.trial-player {
    position: relative;
    margin: 1rem 0 0.6rem;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.player iframe,
.trial-player-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}
.trial-player-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}
.trial-player-big-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4.2rem;
    height: 4.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.trial-player-big-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin: 0.05rem auto 0;
    border-top: 0.75rem solid transparent;
    border-bottom: 0.75rem solid transparent;
    border-left: 1.2rem solid #fff;
}
.trial-player.is-playing .trial-player-big-play { opacity: 0; pointer-events: none; }
.trial-player.is-playing .trial-player-big-play::before {
    width: 0.85rem;
    height: 1.2rem;
    margin-top: 0;
    border: 0;
    background: linear-gradient(to right, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}
.trial-player-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
    pointer-events: auto;
}
.trial-player-play,
.trial-player-mute,
.trial-player-fs {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}
.trial-player-play::before,
.trial-player-mute::before,
.trial-player-fs::before {
    display: block;
    font-size: 0.85rem;
    line-height: 2rem;
    text-align: center;
}
.trial-player-play::before { content: '▶'; }
.trial-player.is-playing .trial-player-play::before { content: '❚❚'; font-size: 0.72rem; }
.trial-player-mute::before { content: '🔊'; }
.trial-player.is-muted .trial-player-mute::before { content: '🔇'; }
.trial-player-fs::before { content: '⛶'; }
.trial-player-time {
    flex: 0 0 auto;
    color: #f4f0e6;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    min-width: 5.5rem;
}
.trial-player-seek {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: var(--accent);
}
.upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}
.upload-row input[type="file"] { flex: 1 1 14rem; min-width: 0; }
.player-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 1.5rem;
    color: var(--muted);
    text-align: center;
}
.player-mask {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 4.75rem;
    height: 4.5rem;
    background: #000;
}
.notice { margin: 1rem 0; }
.notice strong { display: block; margin-bottom: 0.3rem; }
.prose { margin: 1.2rem 0; }
.tag-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-links a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
.package-inline { margin-top: 1.4rem; }
.pager { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0 0.4rem; }
.pager a { color: var(--lime); }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; }
.footer-brand .logo-mark { width: 2.6rem; height: 2.6rem; }
.footer-brand strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.promise { display: grid; gap: 0.8rem; }
.promise article, .review {
    background: rgba(20, 17, 15, 0.86);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.05rem 1.1rem 0.4rem;
}
.promise h3 { font-size: 1.45rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; }
.steps span { color: var(--accent); font-family: var(--serif); min-width: 1.6rem; }
.hero-count { margin: 0.4rem 0 0.8rem; color: var(--muted); }
.hero-count strong { color: var(--ink); font-family: var(--serif); font-size: 1.8rem; margin-right: 0.35rem; }
.review-grid { display: grid; gap: 0.8rem; }
.review { margin: 0; }
.review blockquote { margin: 0.45rem 0 0.7rem; color: var(--ink); }
.review figcaption { color: var(--muted); font-size: 0.92rem; }
.stars { letter-spacing: 0.12em; color: rgba(228, 194, 122, 0.28); }
.stars .is-on { color: var(--accent); }
.sample-note { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer-links a { color: var(--muted); }

.admin-body { background: #10120d; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-side {
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
    background: #14110f;
}
.side-label { color: var(--muted); font-size: 0.9rem; }
.side-nav { display: grid; gap: 0.25rem; margin: 1rem 0; }
.side-nav a { text-decoration: none; padding: 0.35rem 0.2rem; color: var(--muted); }
.side-nav a.is-on, .side-nav a:hover { color: var(--ink); }
.admin-main { padding: 1.2rem; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1rem; }
.stats article { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 0.9rem; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; }
.stats span { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.65rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table a { color: var(--ink); }
.quiet { display: block; color: var(--muted); font-size: 0.85rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.form { display: grid; gap: 0.85rem; margin-bottom: 1rem; }
.upload-status { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.upload-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.upload-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #f6e4b8);
    transition: width 0.15s ease;
}
.upload-status p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.upload-status p.is-ready { color: var(--lime); font-weight: 600; }
.thumb-preview-small {
    width: 160px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--line);
    margin-top: 0.45rem;
    display: block;
}
.thumb-upload-status {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}
.thumb-upload-status.is-ready { color: var(--lime); font-weight: 600; }
.thumb-field { align-content: start; }
.field { display: grid; gap: 0.3rem; }
.field span, legend { color: var(--muted); font-size: 0.92rem; }
.field small { color: var(--muted); }
.split { display: grid; gap: 0.8rem; }
.check { display: flex; gap: 0.5rem; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.8rem; }
.errors, .flash {
    background: #3a2218;
    border: 1px solid rgba(255, 92, 57, 0.45);
    border-radius: 0.8rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.8rem;
}
.flash { background: #243018; border-color: rgba(214, 242, 92, 0.4); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.login-card { width: min(420px, 100%); }
.login-card h1 { font-size: 3rem; }

@media (min-width: 760px) {
    .nav, .search, .header-bar > .btn { display: inline-flex; }
    .menu { display: none; }
    .search { display: block; }
    .hero-grid, .split { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
    .promise, .review-grid { grid-template-columns: repeat(3, 1fr); }
    .grid { grid-template-columns: 1fr 1fr; }
    .package-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 240px 1fr; }
    .admin-side { border-bottom: 0; border-right: 1px solid var(--line); }
    .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1040px) {
    .grid { grid-template-columns: 1fr 1fr 1fr; }
}
