:root {
    color-scheme:dark;
    --bg:#09090c;
    --surface:#151519;
    --red:#ee3543;
    --muted:#a4a4ad;
    --border:#2a2a30
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    background:var(--bg);
    color:#f5f5f7;
    font:16px/1.65 Arial,Tahoma,sans-serif
}
a {
    color:inherit;
    text-decoration:none
}
button,input,select {
    font:inherit
}
button,a,input,select {
    -webkit-tap-highlight-color:transparent
}
button {
    cursor:pointer
}
a:hover {
    color:#fff
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
    outline:3px solid #ff8f98;
    outline-offset:4px
}
.skip {
    position:absolute;
    left:10px;
    top:-100px;
    z-index:20;
    background:var(--red);
    padding:8px
}
.skip:focus {
    top:10px
}
header {
    display:flex;
    align-items:center;
    gap:45px;
    padding:24px 5%;
    border-bottom:1px solid var(--border);
    background:#0c0c10
}
.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:23px;
    font-weight:900;
    line-height:1.15;
    white-space:nowrap
}
.brand b {
    color:var(--red)
}
.brand small {
    display:block;
    font-size:10px;
    letter-spacing:2px;
    color:#9898a5;
    margin-top:5px
}
.brand-icon {
    background:var(--red);
    color:#fff;
    width:38px;
    height:43px;
    display:grid;
    place-items:center;
    border-radius:7px;
    font-size:29px
}
nav {
    display:flex;
    gap:30px;
    font-size:14px
}
nav a {
    color:var(--muted);
    padding:10px 0;
    position:relative
}
nav a.active {
    color:white
}
nav a.active:after {
    content:'';
    position:absolute;
    bottom:-25px;
    height:3px;
    background:var(--red);
    left:0;
    right:0
}
.account {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:18px;
    font-size:14px
}
.account form {
    margin:0
}
.button {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    background:var(--red);
    border:1px solid var(--red);
    color:white;
    padding:12px 23px;
    border-radius:6px;
    font-weight:700;
    font-size:15px;
    line-height:1.5
}
.button:hover {
    background:#cb2534
}
.button.secondary {
    background:#ffffff08;
    border-color:#53535c
}
.button.secondary:hover {
    background:#ffffff15
}
.button.small {
    padding:8px 16px;
    font-size:14px
}
.button.full {
    width:100%
}
.plain {
    border:0;
    background:none;
    color:var(--muted);
    padding:0
}
.menu-toggle {
    display:none
}
.hero {
    position:relative;
    min-height:570px;
    overflow:hidden;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    background:radial-gradient(ellipse at 76% 38%,#640c1e 0, #240912 30%,#0b0b10 70%)
}
.hero-art {
    position:absolute;
    right:4%;
    width:50%;
    height:100%;
    opacity:.6;
    transform:rotate(-12deg)
}
.hero-art img {
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.25
}
.hero-art>span {
    position:absolute;
    top:18%;
    left:5%;
    font-size:clamp(80px,18vw,260px);
    font-weight:900;
    letter-spacing:-16px;
    color:#e73346;
    opacity:.4;
    white-space:nowrap
}
.hero-content {
    position:relative;
    z-index:1;
    padding:50px 5%;
    width:65%
}
.eyebrow {
    font-size:12px;
    letter-spacing:2px;
    color:var(--red);
    font-weight:800;
    margin:0 0 15px
}
.eyebrow span {
    display:inline-block;
    color:#d0c0c2;
    border:1px solid #7b3840;
    letter-spacing:0;
    padding:2px 8px;
    margin-left:10px;
    border-radius:3px
}
h1,h2,h3,p {
    margin-top:0
}
h1 {
    font-size:clamp(36px,4.3vw,60px);
    line-height:1.3;
    letter-spacing:-1.5px;
    margin-bottom:22px
}
h1 span {
    display:block;
    color:var(--red)
}
h2 {
    font-size:27px;
    line-height:1.4;
    margin-bottom:12px
}
h3 {
    font-size:17px;
    line-height:1.4;
    margin-bottom:6px
}
.hero-description {
    color:#bbb9c1;
    font-size:17px;
    line-height:1.9;
    margin-bottom:25px
}
.actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap
}
.subtle {
    font-size:12px;
    color:var(--muted);
    margin:17px 0 0
}
.hero-caption {
    position:absolute;
    right:7%;
    bottom:50px;
    border-left:2px solid var(--red);
    padding-left:20px
}
.hero-caption span {
    font-size:11px;
    letter-spacing:2px;
    color:#ce98a0
}
.hero-caption strong {
    display:block;
    font-size:30px;
    line-height:1.15;
    letter-spacing:1px;
    margin:10px 0
}
.hero-caption p {
    font-size:12px;
    color:#ac9198;
    margin:0
}
main>section:not(.hero),main>.notice {
    margin:0 5% 45px
}
main>section.collection {
    margin-top:45px
}
.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px
}
.section-heading h2 {
    margin:0
}
.section-heading .eyebrow {
    margin:0 0 5px
}
.section-heading>a {
    font-size:14px;
    color:var(--muted)
}
.video-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px
}
.poster {
    height:285px;
    border:1px solid #ffffff14;
    border-radius:8px;
    position:relative;
    overflow:hidden;
    background:#48121a
}
.poster img {
    width:100%;
    height:100%;
    object-fit:cover;
    mix-blend-mode:screen;
    opacity:.65
}
.poster-label {
    position:absolute;
    top:16px;
    left:16px;
    font-size:9px;
    letter-spacing:1.5px;
    color:#dfd1d3
}
.poster strong {
    position:absolute;
    left:22px;
    right:15px;
    bottom:25px;
    font-size:27px;
    line-height:1.08;
    letter-spacing:1px;
    max-width:200px
}
.play {
    position:absolute;
    right:15px;
    top:44%;
    background:#ffffff18;
    border:1px solid #ffffff35;
    border-radius:50%;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    opacity:0;
    transition:.2s
}
.video-card:hover .play {
    opacity:1
}
.video-card:hover .poster {
    border-color:var(--red)
}
.blue {
    background:#102742
}
.gold {
    background:#443018
}
.purple {
    background:#2d1643
}
.teal {
    background:#123936
}
.orange {
    background:#542818
}
.card-meta {
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#aaa;
    margin:14px 0 8px
}
.card-meta span:first-child {
    color:#e9858c
}
.video-card p {
    font-size:12px;
    color:var(--muted);
    margin:0
}
.vip-banner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:35px;
    background:linear-gradient(110deg,#251017,#121217);
    border:1px solid #49202b;
    border-radius:9px;
    gap:25px
}
.vip-banner p {
    color:var(--muted);
    margin-bottom:0
}
.vip-banner .eyebrow {
    color:var(--red);
    margin-bottom:8px
}
footer {
    border-top:1px solid var(--border);
    margin:0 5%;
    padding:30px 0;
    display:flex;
    align-items:center;
    gap:25px;
    color:var(--muted);
    font-size:12px
}
footer .brand {
    font-size:17px
}
footer .brand small {
    display:inline
}
footer p {
    margin:0
}
footer>a:not(.brand) {
    margin-left:auto
}
.demo-tag,.badge {
    padding:4px 10px;
    border:1px solid #43434c;
    border-radius:4px;
    font-size:12px;
    white-space:nowrap
}
.page-heading {
    padding-top:55px
}
.page-heading h1 {
    font-size:45px
}
.page-heading h1 span {
    display:inline;
    margin-left:10px
}
.page-heading p {
    color:var(--muted)
}
.page-heading .eyebrow {
    color:var(--red)
}
.center {
    text-align:center
}
.count {
    font-size:20px;
    border:1px solid #573038;
    padding:5px 12px;
    border-radius:4px;
    vertical-align:middle
}
.panel {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:9px;
    padding:28px
}
.panel p {
    color:var(--muted)
}
.auth-layout {
    padding-top:60px;
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:70px;
    align-items:center;
    min-height:650px
}
.auth-story {
    padding:25px 0;
    overflow:hidden
}
.auth-story p {
    color:var(--muted)
}
.auth-story .eyebrow {
    color:var(--red)
}
.auth-mark {
    font-size:110px;
    line-height:1.3;
    color:#3c171e;
    letter-spacing:-10px;
    font-weight:900
}
.auth-panel {
    max-width:480px;
    width:100%;
    margin:auto
}
.auth-panel h2 {
    font-size:30px
}
.auth-panel>p {
    font-size:14px
}
.auth-panel small {
    color:var(--muted);
    font-size:12px
}
.auth-panel p a {
    color:#ff7d88
}
.stack {
    display:grid;
    gap:19px;
    margin:25px 0 15px
}
label {
    display:block;
    font-size:14px;
    color:#d3d3db
}
input,select {
    width:100%;
    display:block;
    border:1px solid #42424c;
    background:#0c0c10;
    color:white;
    padding:12px 14px;
    border-radius:5px;
    margin-top:7px;
    min-height:47px
}
input::placeholder {
    color:#777781
}
.filters {
    display:grid;
    grid-template-columns:1fr 220px auto;
    align-items:end;
    gap:20px;
    margin-bottom:30px
}
.library-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    row-gap:35px
}
.library-grid .poster {
    height:350px
}
.package-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px
}
.package {
    padding:32px
}
.package.featured {
    border-color:var(--red);
    background:linear-gradient(145deg,#2b151c,#151519)
}
.package h2 {
    font-size:23px
}
.price {
    font-size:45px!important;
    color:white!important;
    font-weight:800;
    margin:26px 0
}
.price small {
    font-size:14px;
    font-weight:400;
    color:var(--muted);
    margin-left:8px
}
.package ul {
    list-style:none;
    padding:0;
    font-size:14px;
    color:#c7c7d0;
    margin-bottom:30px
}
.package li {
    margin:15px 0
}
.package li:before {
    content:'✓';
    color:var(--red);
    margin-right:10px
}
.package>small {
    display:block;
    text-align:center;
    font-size:12px;
    color:var(--muted);
    margin-top:14px
}
.notice {
    border:1px solid #493942;
    background:#221820;
    padding:17px 22px;
    border-radius:6px;
    margin-top:25px!important
}
.notice.error {
    border-color:var(--red);
    color:#ffacb3
}
.membership {
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:space-between
}
.request-row {
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    align-items:center;
    padding:20px 0;
    border-bottom:1px solid var(--border)
}
.request-row strong {
    overflow-wrap:anywhere
}
.request-row .badge {
    margin-left:auto
}
.watch-page {
    padding-top:30px
}
.back-link {
    display:inline-block;
    color:var(--muted);
    font-size:14px;
    margin-bottom:20px
}
.player {
    aspect-ratio:16/8;
    position:relative;
    background:#100d12;
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
    display:grid;
    place-items:center
}
.player>img {
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.25
}
.player>div {
    position:relative;
    text-align:center;
    padding:25px
}
.player-icon {
    font-size:38px;
    color:var(--red)
}
.player p {
    color:var(--muted);
    font-size:14px
}
.watch-info {
    display:flex;
    justify-content:space-between;
    align-items:start;
    gap:20px;
    padding:30px 0
}
.watch-info h1 {
    font-size:34px
}
.watch-info p {
    color:var(--muted)
}
.stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:0 5% 30px
}
.stats strong {
    display:block;
    font-size:40px;
    margin-top:8px
}
.stats span {
    color:var(--muted)
}
.table-wrap {
    overflow:auto
}
table {
    border-collapse:collapse;
    width:100%;
    text-align:left;
    font-size:14px
}
th,td {
    padding:16px 12px;
    border-bottom:1px solid var(--border)
}
th {
    color:var(--muted);
    font-weight:400
}
td {
    overflow-wrap:anywhere
}
.empty {
    text-align:center;
    padding:40px
}
.auth-panel .full {
    margin-bottom:10px
}
@media(min-width:1600px) {
    main,header,footer {
        max-width:1600px;
        margin-left:auto;
        margin-right:auto
    }
}
@media(max-width:1050px) {
    header {
        gap:25px
    }
    nav {
        gap:18px
    }
    .account {
        gap:10px
    }
    .poster {
        height:245px
    }
    .poster strong {
        font-size:23px
    }
    .package {
        padding:23px
    }
    .price {
        font-size:36px!important
    }
    .auth-layout {
        gap:35px
    }
    footer {
        flex-wrap:wrap
    }
    .hero-content {
        width:70%
    }
    .hero-caption {
        right:4%
    }
}
@media(max-width:760px) {
    header {
        padding:18px 5%;
        flex-wrap:wrap;
        gap:16px
    }
    .brand {
        font-size:20px
    }
    .brand small {
        font-size:9px
    }
    .menu-toggle {
        display:block;
        margin-left:auto;
        color:white;
        background:#19191f;
        border:1px solid var(--border);
        padding:8px 12px;
        border-radius:5px;
        font-size:14px
    }
    nav {
        display:none;
        order:4;
        width:100%;
        padding-top:10px
    }
    nav.open {
        display:flex
    }
    nav a.active:after {
        bottom:0
    }
    .account {
        width:100%;
        margin:0;
        justify-content:flex-end;
        font-size:13px
    }
    .hero {
        min-height:610px;
        align-items:flex-start
    }
    .hero-content {
        width:100%;
        padding:35px 5% 140px
    }
    .hero h1 {
        font-size:39px
    }
    .hero-description {
        font-size:15px
    }
    .hero-caption {
        bottom:25px;
        left:5%;
        right:auto
    }
    .hero-caption strong {
        font-size:20px
    }
    .hero-caption strong br {
        display:none
    }
    .hero-art {
        width:80%;
        right:-20%;
        opacity:.35
    }
    .hero-art>span {
        letter-spacing:-5px
    }
    .hero .actions {
        gap:10px
    }
    .button {
        padding:11px 16px;
        font-size:14px
    }
    .section-heading {
        gap:12px;
        align-items:end
    }
    .section-heading h2 {
        font-size:22px
    }
    .section-heading>a {
        white-space:nowrap;
        font-size:12px
    }
    .video-grid,.library-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px 14px
    }
    .poster,.library-grid .poster {
        height:260px
    }
    .poster strong {
        font-size:21px;
        left:15px
    }
    .poster-label {
        font-size:8px;
        left:12px
    }
    .play {
        opacity:1;
        width:34px;
        height:34px;
        font-size:12px
    }
    .card-meta {
        font-size:11px;
        gap:6px
    }
    h3 {
        font-size:15px
    }
    .vip-banner {
        padding:24px;
        flex-direction:column;
        align-items:start
    }
    .vip-banner h2 {
        font-size:23px
    }
    .vip-banner p {
        font-size:14px
    }
    footer {
        gap:16px
    }
    footer p {
        width:100%;
        order:3
    }
    .auth-layout {
        display:block;
        padding-top:30px;
        min-height:0
    }
    .auth-story {
        padding:0
    }
    .auth-story h1 {
        font-size:33px
    }
    .auth-story .eyebrow {
        font-size:10px
    }
    .auth-mark {
        display:none
    }
    .auth-panel {
        margin:30px auto
    }
    .page-heading {
        padding-top:35px
    }
    .page-heading h1 {
        font-size:33px
    }
    .page-heading p {
        font-size:14px
    }
    .package-grid {
        grid-template-columns:1fr
    }
    .filters {
        grid-template-columns:1fr 1fr;
        gap:12px
    }
    .filters>label:first-of-type {
        grid-column:1/-1
    }
    .filters button {
        min-height:47px
    }
    .player {
        aspect-ratio:auto;
        min-height:340px
    }
    .player h2 {
        font-size:21px
    }
    .watch-info {
        flex-direction:column
    }
    .watch-info h1 {
        font-size:28px
    }
    .stats {
        gap:10px
    }
    .stats .panel {
        padding:15px
    }
    .stats span {
        font-size:12px
    }
    .stats strong {
        font-size:30px
    }
    .panel {
        padding:22px
    }
    .request-row {
        gap:10px
    }
    .request-row .badge {
        margin-left:0
    }
}
@media(max-width:380px) {
    .poster,.library-grid .poster {
        height:225px
    }
    .poster strong {
        font-size:18px
    }
    .hero h1 {
        font-size:34px
    }
    .hero .actions {
        flex-direction:column;
        align-items:start
    }
    .hero {
        min-height:665px
    }
    .card-meta {
        flex-wrap:wrap
    }
    .stats {
        grid-template-columns:1fr
    }
    .price {
        font-size:35px!important
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        scroll-behavior:auto!important
    }
}
main>.auth-panel {
    width:auto
}
main>section {
    min-width:0
}
.panel {
    overflow-wrap:anywhere
}
/* Spoiler collection: dense cover grid and independent presentation/age badges. */
header {
    gap:22px;
    flex-wrap:wrap;
    padding-top:18px;
    padding-bottom:18px
}
header nav {
    gap:20px;
    font-size:14px;
    flex-wrap:wrap
}
header nav a.active:after {
    bottom:-18px
}
.account {
    font-size:13px
}
.video-grid,.library-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:26px 18px
}
.poster,.library-grid .poster {
    height:auto;
    aspect-ratio:2/3
}
.poster img {
    object-fit:cover;
    mix-blend-mode:normal;
    opacity:.8
}
.poster strong {
    font-size:clamp(16px,1.5vw,24px);
    left:16px;
    bottom:25px;
    max-width:none;
    overflow-wrap:anywhere
}
.poster-label {
    font-size:10px;
    letter-spacing:.6px;
    left:12px;
    right:12px
}
.poster-uncen {
    position:absolute;
    right:10px;
    top:12px;
    background:#ee3543;
    padding:3px 7px;
    border-radius:4px;
    font-size:11px;
    font-weight:700
}
.play {
    opacity:1;
    width:36px;
    height:36px
}
.card-meta {
    font-size:12px;
    flex-wrap:wrap;
    gap:5px
}
.video-card h3 {
    font-size:16px
}
.video-card p {
    font-size:13px
}
.clip-badges {
    display:flex;
    gap:8px;
    flex-wrap:wrap
}
.clip-badges .badge {
    font-size:13px
}
.type-badge {
    color:#e1dce4;
    background:#24242e
}
.uncen {
    background:#671c27;
    border-color:#bd3647;
    color:#ffbbc4
}
.catalog-filters {
    grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto auto
}
.filter-reset {
    font-size:14px;
    padding:12px 0;
    color:var(--muted)
}
.catalog-summary {
    display:flex;
    justify-content:space-between;
    gap:15px;
    color:var(--muted);
    font-size:14px;
    margin:0 0 25px
}
.pagination {
    display:flex;
    justify-content:center;
    gap:8px;
    margin:35px 0 0;
    flex-wrap:wrap
}
.pagination a {
    border:1px solid var(--border);
    padding:10px 16px;
    border-radius:5px;
    min-height:44px;
    background:var(--surface);
    color:#ddd
}
.pagination a[aria-current="page"] {
    background:var(--red);
    border-color:var(--red);
    color:white
}
.pagination a:after {
    display:none
}
.watch-layout {
    display:grid;
    grid-template-columns:minmax(0,7fr) minmax(0,3fr);
    gap:25px 32px;
    align-items:start
}
.watch-title {
    grid-column:1/-1;
    grid-row:1
}
.watch-title h1 {
    font-size:clamp(28px,3vw,42px);
    margin-bottom:15px
}
.watch-player {
    grid-column:1;
    grid-row:2;
    min-width:0
}
.watch-cover {
    grid-column:2;
    grid-row:2 / span 2;
    min-width:0
}
.watch-cover img {
    width:100%;
    height:auto;
    aspect-ratio:2/3;
    object-fit:contain;
    display:block;
    background:#15151d;
    border:1px solid var(--border);
    border-radius:8px
}
.watch-cover p {
    font-size:13px;
    color:var(--muted);
    text-align:center;
    margin-top:10px
}
.watch-details {
    grid-column:1;
    grid-row:3;
    margin-top:0
}
.watch-details h2 {
    font-size:21px
}
.watch-details p {
    overflow-wrap:anywhere
}
.watch-details p:last-child {
    margin-bottom:0
}
.detail-meta {
    display:flex;
    gap:10px 20px;
    flex-wrap:wrap;
    color:var(--muted);
    font-size:14px;
    margin-bottom:24px
}
.player-shell {
    width:100%;
    aspect-ratio:16/9;
    background:#111116;
    border-radius:8px;
    overflow:hidden;
    border:1px solid var(--border)
}
.player-shell video {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain
}
.locked-player {
    aspect-ratio:16/9;
    min-height:0
}
.locked-player p {
    font-size:15px
}
.locked-player .player-icon {
    font-size:26px;
    font-weight:800
}
.locked-player h2 {
    font-size:23px
}
.locked-player form {
    max-width:500px;
    margin:auto
}
.locked-player>div {
    padding:24px
}
.demo-player-actions {
    padding:16px 0;
    display:flex;
    gap:18px;
    align-items:start;
    flex-wrap:wrap
}
.demo-player-actions p {
    font-size:14px;
    color:var(--muted);
    flex:1;
    min-width:180px
}
.related-heading {
    margin-top:45px
}
.account-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px
}
textarea {
    font:inherit;
    color:white;
    background:#0c0c10;
    border:1px solid #42424c;
    border-radius:5px;
    width:100%;
    padding:12px 14px;
    margin:7px 0 0;
    resize:vertical
}
textarea:focus-visible {
    outline:3px solid #ff8f98;
    outline-offset:3px
}
.clip-form {
    display:grid;
    gap:24px
}
.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px
}
.form-grid.three {
    grid-template-columns:repeat(3,minmax(0,1fr))
}
fieldset {
    border:1px solid var(--border);
    padding:20px;
    border-radius:6px;
    margin:0;
    min-width:0
}
fieldset[hidden] {
    display:none
}
legend {
    padding:0 10px;
    font-size:15px
}
.check-label {
    display:flex;
    gap:12px;
    align-items:center;
    min-height:44px
}
.check-label input {
    width:20px;
    height:20px;
    min-height:0;
    flex:0 0 20px;
    margin:0;
    accent-color:var(--red)
}
.clip-form .subtle {
    margin:0;
    font-size:13px
}
.clip-form fieldset>label,.clip-form fieldset>.form-grid {
    margin-bottom:18px
}
input[type=file] {
    max-width:100%;
    font-size:14px
}
.table-subtitle {
    display:block;
    font-size:12px;
    color:var(--muted)
}
.admin-catalog .table-wrap {
    max-height:550px
}
.admin-catalog th {
    position:sticky;
    top:0;
    background:var(--surface)
}
.admin-catalog table {
    min-width:700px
}
.panel p,.membership strong {
    overflow-wrap:anywhere
}
@media(max-width:1250px) {
    header nav {
        order:3;
        width:100%;
        justify-content:center
    }
    header nav a.active:after {
        bottom:-18px
    }
    .video-grid,.library-grid {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }
    .poster strong {
        font-size:23px
    }
    .catalog-filters {
        grid-template-columns:minmax(180px,2fr) 1fr 1fr auto
    }
    .filter-reset {
        grid-column:1/-1;
        padding:0
    }
    .watch-layout {
        gap:22px
    }
    .locked-player {
        aspect-ratio:auto;
        min-height:calc((100vw - 10vw - 22px)*.7*9/16)
    }
}
@media(max-width:760px) {
    header nav {
        display:none;
        justify-content:flex-start;
        gap:12px 23px
    }
    header nav.open {
        display:flex
    }
    header nav a.active:after {
        bottom:0
    }
    header .account {
        width:100%
    }
    .video-grid,.library-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px 14px
    }
    .poster strong {
        font-size:20px
    }
    .poster-label {
        font-size:10px
    }
    .catalog-filters {
        grid-template-columns:1fr 1fr;
        gap:14px
    }
    .catalog-filters>label:first-of-type {
        grid-column:1/-1
    }
    .catalog-filters button {
        grid-column:1/-1
    }
    .catalog-summary {
        font-size:13px
    }
    .watch-layout {
        display:flex;
        flex-direction:column;
        gap:24px
    }
    .watch-layout>* {
        width:100%
    }
    .watch-player {
        order:0
    }
    .watch-title {
        order:1
    }
    .watch-cover {
        order:2;
        max-width:260px;
        margin:auto
    }
    .watch-details {
        order:3
    }
    .watch-page>.back-link {
        margin-bottom:15px
    }
    .watch-title h1 {
        font-size:30px
    }
    .watch-title .eyebrow {
        font-size:13px;
        letter-spacing:1px;
        overflow-wrap:anywhere
    }
    .locked-player {
        aspect-ratio:auto;
        min-height:240px
    }
    .locked-player>div {
        padding:20px 15px
    }
    .locked-player h2 {
        font-size:21px
    }
    .locked-player p {
        font-size:14px
    }
    .demo-player-actions {
        gap:12px
    }
    .demo-player-actions .button {
        width:100%
    }
    .account-grid,.form-grid,.form-grid.three {
        grid-template-columns:1fr
    }
    .clip-form fieldset {
        padding:15px
    }
    .clip-form label {
        font-size:15px
    }
    .admin-catalog .section-heading {
        flex-wrap:wrap
    }
    .hero h1 {
        font-size:38px
    }
    .hero {
        min-height:575px
    }
    .auth-story h1 {
        font-size:32px
    }
    .pagination a {
        padding:10px 14px
    }
}
@media(max-width:380px) {
    .poster strong {
        font-size:16px
    }
    .hero h1 {
        font-size:33px
    }
    .watch-title h1 {
        font-size:27px
    }
    .hero {
        min-height:620px
    }
}

@media (max-width:760px) {
    .button.small, .account a, .account .plain { min-height:44px; display:inline-flex; align-items:center; }
}

.payment-panel { max-width: 780px; margin: 0 auto 3rem; }
.payment-details { margin: 1.5rem 0; }
.payment-details > div { padding: .8rem 0; border-bottom: 1px solid #333; }
.payment-details dt { color: #aaa; margin-bottom: .4rem; }
.payment-details dd { margin: 0; overflow-wrap: anywhere; }
.payment-details .button { margin: .5rem 0 .5rem .5rem; }
.line-button { background: #067d38; border-color: #067d38; color: #fff; }
.line-button:hover { background: #05652d; }
.copy-status { min-height: 1.5em; }
@media (max-width: 600px) { .payment-details .button { display: block; margin-left: 0; min-height: 44px; } }

.admin-nav,.admin-alerts,.admin-pages { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; align-items: center; }
.admin-stats { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); }
.admin-filter { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; align-items: end; }
.admin-filter label { display: grid; gap: .4rem; flex: 1 1 150px; }
.admin-days { max-width: 600px; }
.admin-check { display: flex; gap: .6rem; align-items: center; }
.admin-check input[type=checkbox] { width: auto; min-width: 22px; }
.table-wrap td { overflow-wrap: anywhere; max-width: 360px; }
.table-wrap details { min-width: 200px; }
@media (max-width: 600px) { .admin-nav .button { min-height: 44px; } .admin-filter > .button { flex: 1 1 140px; } .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.series-summary { display: flex; gap: 2rem; align-items: start; }
.series-cover { width: 180px; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.volume-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; margin: 2rem 0; }
.volume-grid li { margin: .8rem 0; overflow-wrap: anywhere; }
.series-navigation { flex-wrap: wrap; margin: 2rem 0; }
.video-card > a > img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media(max-width:600px) { .series-summary { flex-direction: column; } .volume-grid { grid-template-columns: minmax(0,1fr); } }

.admin-volume-cover{width:60px;aspect-ratio:2/3;object-fit:cover;border-radius:6px}.admin-breadcrumb{padding:12px 0;overflow-wrap:anywhere}.admin-filter label{min-width:0}.admin-filter select{max-width:100%}

/* Website management uses the existing dark/red layout and catalog cards. */
.video-card{position:relative}.favorite-heart{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;border:1px solid #b72438;border-radius:50%;background:#151017e8;color:#ff5265;font-size:28px;cursor:pointer}.favorite-heart[aria-pressed=true]{background:#9c1329;color:white}.page-heading .favorite-heart{position:static}.favorite-heart:focus-visible{outline:3px solid white;outline-offset:2px}.favorite-details,.history-card{padding:12px}.favorite-item{min-width:0;border:1px solid #30242b;border-radius:12px}.favorite-item .video-card{border:0}.favorite-details p,.history-card p{overflow-wrap:anywhere}.history-card>img{width:100%;aspect-ratio:2/3;object-fit:cover}.library-toast{position:fixed;bottom:18px;left:16px;right:16px;max-width:500px;padding:16px;background:#24101b;border:1px solid #b72438;border-radius:10px;z-index:20}.manager-packages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-preview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}.home-preview{min-height:300px;height:320px;max-width:100%;overflow:hidden}.home-preview .hero-content{padding:20px;max-width:100%}.home-preview h2{font-size:28px}.home-preview.mobile{max-width:320px;height:420px}.home-preview.mobile .hero-art{width:85%;right:-15%}.home-preview.mobile .hero-content{width:100%}.hero.with-custom-image .hero-art img{opacity:.75}
@media(max-width:700px){.manager-packages,.home-preview-grid{grid-template-columns:minmax(0,1fr)}}

/* Owner-supplied homepage text may include long words; keep it inside the existing layout. */
.hero-content,.hero-caption,.vip-banner,.collection .section-heading{overflow-wrap:anywhere}
.hero-caption{max-width:30%}
.vip-banner>div{min-width:0}
.hero .button,.vip-banner .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.hero-caption{max-width:90%}}


/* UANNOI VIP V2 - Admin Manga Cover Fix */

.table-wrap tr[data-series-id] > td:first-child img {
    display: block !important;

    width: 72px !important;
    height: 108px !important;

    min-width: 72px !important;
    max-width: 72px !important;

    min-height: 108px !important;
    max-height: 108px !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 8px !important;
    flex-shrink: 0 !important;
}


/* UANNOI VIP V2 - Manga Admin Buttons */

.table-wrap tr[data-series-id] > td:last-child {
    font-size: 0;
    min-width: 280px;
}

.table-wrap tr[data-series-id] > td:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;
    min-height: 44px;
    margin: 0 8px 8px 0;

    border: 1px solid #53535c;
    border-radius: 7px;
    background: #ffffff08;

    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

/* ปุ่มจัดการเล่มสีแดง */
.table-wrap tr[data-series-id] > td:last-child > a:last-of-type {
    background: #ee3543;
    border-color: #ee3543;
}

/* เอฟเฟกต์เมื่อเลื่อนเมาส์ */
.table-wrap tr[data-series-id] > td:last-child > a:hover {
    filter: brightness(1.15);
}


/* UANNOI VIP V2 - Manga Volume Cover */

.table-wrap img.admin-volume-cover {
    display: block !important;

    width: 64px !important;
    height: 96px !important;

    min-width: 64px !important;
    max-width: 64px !important;

    min-height: 96px !important;
    max-height: 96px !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 8px !important;
    flex-shrink: 0 !important;
}


/* UANNOI VIP V2 - Manga Volume Action Buttons */

.table-wrap tr:has(img.admin-volume-cover) > td:last-child {
    font-size: 0;
    min-width: 370px;
}

/* ปุ่มแก้ไขเล่มและเพิ่มตอน */
.table-wrap tr:has(img.admin-volume-cover) > td:last-child > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-height: 42px;
    margin: 0 8px 8px 0;

    border: 1px solid #53535c;
    border-radius: 7px;
    background: #ffffff08;

    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* ปุ่มเพิ่มตอนสีแดง */
.table-wrap tr:has(img.admin-volume-cover) > td:last-child > a:nth-of-type(2) {
    background: #ef3043;
    border-color: #ef3043;
}

/* จัดระเบียบปุ่มจัดการสถานะ */
.table-wrap tr:has(img.admin-volume-cover) > td:last-child > form.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
}

/* ช่องยืนยัน */
.table-wrap tr:has(img.admin-volume-cover) .admin-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

/* ปรับขนาดปุ่มให้สม่ำเสมอ */
.table-wrap tr:has(img.admin-volume-cover) form.actions .button {
    min-height: 40px;
    padding: 8px 12px;
}


/* UANNOI VIP - Clean Manga Editor */

/* ซ่อนประเภทคอนเทนต์เฉพาะฟอร์มเล่มมังงะ */
#clip-form form.clip-form:has(input[name="easy_series_id"])
label:has(#content-type) {
    display: none !important;
}

/* ให้ช่องสถานะขยายเต็มความกว้าง */
#clip-form form.clip-form:has(input[name="easy_series_id"])
label:has(select[name="status"]) {
    grid-column: 1 / -1;
}


/* UANNOI VIP V2 - Dashboard Charts */

.vip-charts-section {
    margin: 28px 0;
}

.vip-charts-section > h2 {
    margin-bottom: 8px;
}

.vip-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.vip-chart-card {
    min-width: 0;
    padding: 22px;
}

.vip-chart-card h3 {
    font-size: 18px;
    margin: 0 0 22px;
    color: #fff;
}

.vip-chart-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 105px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.vip-chart-label {
    color: #a4a4ad;
    font-size: 12px;
}

.vip-chart-value {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.vip-chart-row progress {
    width: 100%;
    height: 14px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background: #292930;
}

.vip-chart-row progress::-webkit-progress-bar {
    background: #292930;
    border-radius: 8px;
}

.vip-chart-row progress::-webkit-progress-value {
    background: #ee3543;
    border-radius: 8px;
}

.vip-chart-row progress::-moz-progress-bar {
    background: #ee3543;
    border-radius: 8px;
}

@media (max-width: 850px) {
    .vip-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vip-chart-card {
        padding: 14px;
    }

    .vip-chart-row {
        grid-template-columns: 48px minmax(0, 1fr) 90px;
        gap: 7px;
    }

    .vip-chart-value {
        font-size: 12px;
    }
}

/* ===== VIP Dashboard Single Bar Chart ===== */

.vip-chart-panel {
    margin-top: 28px;
}

.vip-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vip-chart-head h2 {
    margin: 0 0 6px;
}

.vip-chart-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-chart-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vip-chart-btn {
    border: 1px solid #343845;
    background: #12141c;
    color: #d9dbe3;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.vip-chart-btn:hover {
    border-color: #ee3543;
}

.vip-chart-btn.active {
    background: #ee3543;
    border-color: #ee3543;
    color: #fff;
}

.vip-chart-card {
    background: #171922;
    border: 1px solid #2b2f3d;
    border-radius: 16px;
    padding: 20px;
}

.vip-chart-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.vip-chart-card-top h3 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.vip-chart-summary {
    color: #ee3543;
    font-size: 18px;
    font-weight: 700;
}

.vip-bar-chart {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
}

.vip-bars {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    min-height: 380px;
    min-width: 900px;
    padding: 20px 8px 10px;
}

.vip-bar-item {
    flex: 1 1 0;
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.vip-bar-value {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
    min-height: 18px;
}

.vip-bar-track {
    width: 100%;
    max-width: 58px;
    height: 260px;
    border-radius: 12px 12px 0 0;
    background: #252937;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}

.vip-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #ff5c67 0%, #ee3543 100%);
    border-radius: 12px 12px 0 0;
    min-height: 2px;
    transition: height .25s ease;
}

.vip-bar-label {
    margin-top: 10px;
    font-size: 12px;
    color: #b3b6c3;
    text-align: center;
    word-break: break-word;
}

.vip-chart-empty {
    color: #aaa;
    padding: 24px 0;
}

@media (max-width: 900px) {
    .vip-bars {
        min-width: 760px;
    }
}


/* UANNOI VIP V2 - Member Hub */

.vip-member-title {
    padding-top: 32px;
}

.vip-member-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.vip-member-summary h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.vip-member-section {
    margin: 32px 0;
}

.vip-member-section h2 {
    margin-bottom: 20px;
}

.vip-member-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.vip-member-shortcut {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 64px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #3b313d;
    background: linear-gradient(135deg, #1b141b 0%, #13131a 100%);
    transition: .2s ease;
}

.vip-member-shortcut span {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.vip-member-shortcut .shortcut-text,
.vip-member-shortcut div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vip-member-shortcut strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    color: #fff;
}

.vip-member-shortcut small {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #b6adbb;
}

.vip-member-shortcut:hover {
    transform: translateY(-2px);
    border-color: #ff425c;
    background: linear-gradient(135deg, #241720 0%, #15131a 100%);
}


/* UANNOI VIP V2 - Premium Member Hub */

/* Cinematic VIP banner */
main > section.vip-member-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    padding: 45px 50px;
    margin-top: 22px;
    margin-bottom: 22px;
    border: 1px solid #38303a;
    border-radius: 16px;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 12, .97) 0%,
            rgba(12, 8, 15, .87) 38%,
            rgba(15, 8, 14, .25) 100%
        ),
        url('/?page=homepage-image') center / cover no-repeat;

    box-shadow: 0 14px 44px rgba(0,0,0,.28);
}

.vip-member-title .eyebrow {
    color: #ff4255;
    letter-spacing: 2px;
}

.vip-member-title h1 {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 10px 0 22px;
    color: #fff;
}

.vip-member-title h1 span {
    display: inline;
    color: #ff3549;
}

.vip-member-title > p:last-child {
    max-width: 550px;
    color: #e3dce0;
    font-size: 17px;
    line-height: 1.8;
}

/* VIP membership card */
.vip-member-summary {
    background: linear-gradient(
        120deg, #22151c, #141419 65%
    );
    border: 1px solid #45303a;
    border-radius: 14px;
    padding: 30px;
}

.vip-member-summary h2 {
    color: #fff;
    font-size: 25px;
}

.vip-member-summary .membership-state {
    color: #ff5365;
    font-weight: 700;
}

/* Quick navigation cards */
.vip-member-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vip-member-shortcut {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 170px;
    padding: 24px;
    overflow: hidden;

    background: linear-gradient(
        145deg, #29151d, #15151d 75%
    );

    border: 1px solid #42303c;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;

    transition: transform .2s, border-color .2s;
}

.vip-member-shortcut:hover {
    transform: translateY(-4px);
    border-color: #ff4054;
}

.vip-member-shortcut span {
    font-size: 34px;
    color: #ff3549;
}

.vip-member-shortcut strong {
    font-size: 19px;
    font-weight: 800;
}

.vip-member-shortcut small {
    color: #b9b4bd;
    font-size: 13px;
    line-height: 1.6;
}

/* Section spacing */
.vip-member-section {
    margin-top: 38px;
}

.vip-member-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

/* Tablet */
@media (max-width: 950px) {
    .vip-member-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    main > section.vip-member-title {
        min-height: 250px;
        padding: 30px 20px;
        background-position: 62% center;
    }

    .vip-member-title h1 {
        font-size: 42px;
    }

    .vip-member-title > p:last-child {
        font-size: 14px;
    }

    .vip-member-summary {
        padding: 22px;
    }

    .vip-member-shortcut {
        padding: 16px;
        min-height: 145px;
    }

    .vip-member-shortcut strong {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vip-member-shortcut {
        transition: none;
    }

    .vip-member-shortcut:hover {
        transform: none;
    }
}


/* UANNOI VIP - Compact Streaming Hub */

.vip-stream-hub {
    position: relative;
    background: #141319;
    border: 1px solid #35303d;
    border-radius: 16px;
    padding: 24px;
}

.vip-hub-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vip-hub-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
    border-bottom: 1px solid #34303b;
    padding-bottom: 14px;
}

.vip-hub-tabs label {
    display: inline-block;
    cursor: pointer;
    padding: 11px 18px;
    border: 1px solid #49404d;
    border-radius: 8px;
    background: #1b1921;
    color: #ddd;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

#vip-hub-continue:checked ~ .vip-hub-tabs
label[for="vip-hub-continue"],
#vip-hub-latest:checked ~ .vip-hub-tabs
label[for="vip-hub-latest"] {
    background: #ee3046;
    border-color: #ee3046;
    color: white;
}

.vip-hub-radio:focus-visible ~ .vip-hub-tabs
label {
    outline-offset: 3px;
}

#vip-hub-continue:focus-visible ~ .vip-hub-tabs
label[for="vip-hub-continue"],
#vip-hub-latest:focus-visible ~ .vip-hub-tabs
label[for="vip-hub-latest"] {
    outline: 2px solid white;
}

.vip-hub-pane {
    display: none;
}

#vip-hub-continue:checked ~ .vip-hub-panes
.vip-hub-pane-continue {
    display: block;
}

#vip-hub-latest:checked ~ .vip-hub-panes
.vip-hub-pane-latest {
    display: block;
}

.vip-hub-pane-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.vip-hub-pane-heading h3 {
    margin: 0;
    font-size: 18px;
}

.vip-hub-pane-heading a {
    font-size: 13px;
    color: #aaa4af;
}

/* ปกขนาดกะทัดรัด เลื่อนแนวนอนได้ */
.vip-stream-hub .video-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 14px;
}

.vip-stream-hub .video-card {
    min-width: 0;
    width: 100%;
    scroll-snap-align: start;
}

.vip-stream-hub .poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
}

.vip-stream-hub .video-card h3 {
    font-size: 14px;
}

.vip-stream-hub .video-card p,
.vip-stream-hub .card-meta {
    font-size: 11px;
}

/* Mobile */
@media (max-width: 600px) {
    .vip-stream-hub {
        padding: 16px;
    }

    .vip-hub-tabs label {
        font-size: 12px;
        padding: 10px 12px;
    }

    .vip-stream-hub .video-grid {
        grid-auto-columns: 125px;
        gap: 12px;
    }

    .vip-hub-pane-heading h3 {
        font-size: 16px;
    }
}


/* =====================================
   UANNOI VIP V2
   COMPACT PREMIUM MEMBER HUB
   ===================================== */

/* 1. กล่องต้อนรับสมาชิก VIP */

.vip-member-summary {
    padding: 16px 22px;
    min-height: 0;
    border-radius: 12px;
}

.vip-member-summary h2 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 6px;
}

.vip-member-summary p {
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0;
}

.vip-member-summary .membership-state {
    font-size: 14px;
    font-weight: 700;
}

.vip-member-summary .button {
    padding: 10px 14px;
    font-size: 12px;
}


/* 2. เมนูทางลัดทั้ง 4 ช่อง */

.vip-member-shortcuts {
    gap: 12px;
}

.vip-member-shortcut {
    min-height: 108px;
    padding: 14px 16px;
    gap: 6px;
    border-radius: 12px;
}

.vip-member-shortcut span {
    font-size: 25px;
    line-height: 1.1;
}

.vip-member-shortcut strong {
    font-size: 16px;
    line-height: 1.35;
}

.vip-member-shortcut small {
    font-size: 11px;
    line-height: 1.4;
}


/* 3. ลดระยะห่างระหว่างส่วน */

.vip-member-section {
    margin-top: 24px;
}


/* 4. รองรับหน้าจอมือถือ */

@media (max-width: 600px) {

    .vip-member-summary {
        padding: 15px;
    }

    .vip-member-summary h2 {
        font-size: 18px;
    }

    .vip-member-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vip-member-shortcut {
        min-height: 100px;
        padding: 12px;
    }

    .vip-member-shortcut span {
        font-size: 23px;
    }

    .vip-member-shortcut strong {
        font-size: 14px;
    }

    .vip-member-shortcut small {
        font-size: 11px;
    }

}

@media (max-width: 768px) {
    .vip-member-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vip-member-shortcut {
        min-height: 60px;
        padding: 10px 12px;
    }

    .vip-member-shortcut strong {
        font-size: 14px;
    }

    .vip-member-shortcut small {
        font-size: 10px;
    }
}


/* UANNOI VIP - Compact Homepage Hero */

main > .hero {
    min-height: 380px;
}

main > .hero .hero-content {
    padding: 30px 5%;
    width: 58%;
}

main > .hero h1 {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.2;
    margin-bottom: 14px;
}

main > .hero .eyebrow {
    margin-bottom: 10px;
}

main > .hero .hero-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

main > .hero .actions .button {
    padding: 9px 18px;
    font-size: 14px;
}

main > .hero .hero-caption {
    bottom: 25px;
}

/* Mobile */
@media (max-width: 760px) {
    main > .hero {
        min-height: 0;
    }

    main > .hero .hero-content {
        width: 100%;
        padding: 28px 5%;
    }

    main > .hero h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    main > .hero .hero-description {
        font-size: 14px;
    }

    main > .hero .hero-caption {
        display: none;
    }
}


/* Compact Homepage - 8 Covers */

@media (min-width: 1360px) {
    main > .collection .video-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 16px;
    }
}


/* UANNOI VIP - Homepage Split Layout */

.home-feature-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 30px;
    margin: 40px 5% 45px;
    align-items: start;
}

.home-feature-split .collection {
    margin: 0;
    min-width: 0;
}

.home-feature-split .section-heading {
    margin-bottom: 18px;
    gap: 12px;
}

.home-feature-split .section-heading h2 {
    font-size: 21px;
}

.home-feature-split .video-grid {
    gap: 12px;
}

.home-feature-split .latest-column .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-split .series-column .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-split .video-card {
    min-width: 0;
}

.home-feature-split .video-card h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 9px 0 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-feature-split .video-card p {
    font-size: 12px;
    line-height: 1.4;
}

/* ซ่อนข้อมูลรองที่ไม่จำเป็น */
.home-feature-split .card-meta {
    display: none;
}

.home-feature-split .series-column .video-card > a > p:first-of-type {
    display: none;
}

/* Tablet / Mobile */
@media (max-width: 1100px) {
    .home-feature-split {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .home-feature-split .latest-column .video-grid,
    .home-feature-split .series-column .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature-split {
        margin-top: 30px;
        gap: 30px;
    }
}


/* VIP - Small Manga Volume Covers */

.volume-grid .volume-mini-card {
    padding: 14px !important;
    min-width: 0;
    overflow: hidden;
}

.volume-grid .volume-mini-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.volume-grid .volume-mini-cover {
    display: block !important;
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 105px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    overflow: hidden !important;
    border-radius: 6px;
    border: 1px solid #ffffff25;
}

.volume-grid .volume-mini-cover img {
    display: block !important;
    width: 70px !important;
    height: 105px !important;
    max-width: 70px !important;
    object-fit: contain !important;
}

.volume-grid .volume-mini-content {
    flex: 1;
    min-width: 0;
}

.volume-grid .volume-mini-content h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.volume-grid .volume-mini-content ul {
    padding-left: 15px;
    margin: 0;
}

.volume-grid .volume-mini-content li {
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.volume-grid .volume-mini-content p {
    font-size: 12px;
}


/* UANNOI VIP - Premium Package Layout */

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.package-grid .package {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 20px;
    border-radius: 12px;
    transition: border-color .2s, transform .2s;
}

.package-grid .package:hover {
    border-color: #ed3548;
    transform: translateY(-3px);
}

.package-grid .package.featured {
    border-color: #ed3548;
    background: linear-gradient(160deg, #28171e, #151519);
}

.package-grid .package h2 {
    font-size: 21px;
    line-height: 1.4;
    margin: 10px 0;
}

.package-grid .package .price {
    font-size: clamp(27px, 2.3vw, 36px) !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 17px 0 14px;
}

.package-grid .package .price small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    margin: 5px 0 0;
}

.package-grid .package ul {
    flex: 1;
    padding: 0;
    margin: 12px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}

.package-grid .package li {
    margin: 10px 0;
}

.package-grid .package form,
.package-grid .package > a.button {
    margin-top: auto;
}

.package-grid .package .button.full {
    width: 100%;
    min-height: 46px;
}

.package-grid .package > small {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 12px;
}

/* Tablet */
@media (max-width: 1200px) {
    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 760px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .package-grid .package {
        padding: 22px;
    }
}


/* UANNOI VIP - Compact Homepage */

/* ลดความสูงแบนเนอร์หน้าแรก */
main > .hero {
    min-height: 250px;
    height: auto;
}

/* ลดพื้นที่รอบข้อความ */
main > .hero .hero-content {
    padding: 22px 5%;
}

/* ลดขนาดหัวข้อใหญ่ */
main > .hero h1 {
    font-size: clamp(29px, 3.1vw, 42px);
    line-height: 1.15;
    margin-bottom: 10px;
}

/* จัดช่องไฟภายในแบนเนอร์ */
main > .hero .eyebrow {
    margin-bottom: 8px;
}

main > .hero .hero-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ปุ่มบนแบนเนอร์ */
main > .hero .button {
    padding: 9px 15px;
    font-size: 13px;
}

/* ลดช่องว่างระหว่างหมวด */
main > .hero ~ section.collection {
    margin-top: 22px;
    margin-bottom: 26px;
}

main > .hero ~ section.collection .section-heading {
    margin-bottom: 16px;
}

/* ปรับให้เหมาะสมกับมือถือ */
@media (max-width: 760px) {
    main > .hero {
        min-height: 360px;
        height: auto;
    }

    main > .hero .hero-content {
        width: 100%;
        padding: 24px 5% 100px;
    }

    main > .hero h1 {
        font-size: 32px;
    }
}


/* UANNOI VIP - Homepage Manga Downloads */

.home-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-download-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px;
    min-width: 0;
    background: #15151a;
    border: 1px solid #303039;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.home-download-card:hover {
    border-color: #ed3048;
    background: #1c1a20;
}

.home-download-cover {
    width: 94px;
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.home-download-info {
    flex: 1;
    min-width: 0;
}

.home-download-tag {
    color: #f04459;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-download-info h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 7px 0;
}

.home-download-info p {
    color: #a9a9b3;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-download-link {
    color: #ff5268;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .home-download-grid {
        grid-template-columns: 1fr;
    }

    .home-download-card {
        gap: 12px;
        padding: 12px;
    }

    .home-download-cover {
        width: 80px;
    }
}


/* UANNOI VIP - Compact Quick Navigation */

main > section.collection.home-quick-links {
    margin-top: 12px;
    margin-bottom: 8px;
}

.home-quick-links .actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 0 6px;
    scrollbar-width: thin;
}

.home-quick-links .button.small.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 14px;
    background: #15151a;
    border: 1px solid #303039;
    border-radius: 7px;
    color: #d8d8df;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.home-quick-links .button.small.secondary:hover {
    background: #251920;
    border-color: #ef3048;
    color: #fff;
}

/* มือถือ: เลื่อนแถบหมวดในแนวนอน */
@media (max-width: 760px) {
    main > section.collection.home-quick-links {
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .home-quick-links .actions {
        gap: 7px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .home-quick-links .button.small.secondary {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 12px;
    }
}


/* UANNOI VIP - Compact Payment Page */

/* ลดพื้นที่หัวข้อหน้าชำระเงิน */
main > .page-heading:has(+ .payment-panel) {
    padding-top: 18px;
    margin-bottom: 14px;
}

main > .page-heading:has(+ .payment-panel) h1 {
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 6px;
}

main > .page-heading:has(+ .payment-panel) p {
    margin-bottom: 0;
}

/* กล่องรายละเอียดกว้างขึ้นและเตี้ยลง */
main > .payment-panel {
    max-width: 1060px;
    padding: 20px 24px;
    margin-top: 0;
    margin-bottom: 20px;
}

.payment-panel h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

/* เปลี่ยนข้อมูลจากแนวตั้งเป็นสองคอลัมน์ */
.payment-panel .payment-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
    margin: 10px 0 16px;
}

.payment-panel .payment-details > div {
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid #303039;
}

.payment-panel .payment-details dt {
    font-size: 12px;
    margin-bottom: 5px;
}

.payment-panel .payment-details dd {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ปุ่มคัดลอก */
.payment-panel .payment-details .button {
    padding: 6px 10px;
    font-size: 12px;
    margin: 3px 0 3px 8px;
}

/* ข้อความประกอบ */
.payment-panel p {
    font-size: 12px;
    line-height: 1.6;
    margin: 8px 0;
}

.payment-reference-note {
    display: block;
    font-size: 11px;
    color: #92929e;
    margin-top: 4px;
}

.payment-panel .copy-status {
    min-height: 0;
}

/* ปุ่มด้านล่าง */
.payment-panel > .actions {
    gap: 8px;
    margin-top: 10px;
}

.payment-panel > .actions .button,
.payment-panel > .line-button {
    padding: 9px 14px;
    font-size: 13px;
}

/* มือถือยังอ่านง่าย ไม่บีบข้อมูล */
@media (max-width: 700px) {
    main > .payment-panel {
        padding: 16px;
    }

    .payment-panel .payment-details {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .payment-panel .payment-details .button {
        margin-left: 0;
    }
}


/* UANNOI VIP - Final Compact Payment Adjustment */

@media (min-width: 900px) {

    /* ลดช่องว่างใต้ข้อความแจ้งเตือน */
    main > .notice:has(+ .page-heading + .payment-panel) {
        margin-bottom: 8px;
    }

    /* ลดพื้นที่หัวข้อชำระเงิน */
    main > .page-heading:has(+ .payment-panel) {
        padding-top: 8px;
        margin-bottom: 8px;
    }

    main > .page-heading:has(+ .payment-panel) h1 {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    /* ย่อกล่องรายละเอียด */
    main > .payment-panel {
        padding: 16px 22px;
        margin-bottom: 12px;
    }

    .payment-panel h2 {
        font-size: 19px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    /* ลดระยะห่างของแต่ละรายการ */
    .payment-panel .payment-details {
        margin: 6px 0 10px;
        gap: 0 18px;
    }

    .payment-panel .payment-details > div {
        padding: 4px 0;
    }

    .payment-panel .payment-details dt {
        margin-bottom: 3px;
    }

    /* ลดช่องไฟข้อความด้านล่าง */
    .payment-panel p {
        margin: 5px 0;
        line-height: 1.45;
    }

    .payment-panel .copy-status:empty {
        display: none;
    }

    .payment-panel > .actions {
        margin-top: 6px;
    }
}


/* UANNOI VIP - Centered Admin Navigation */

.admin-nav.admin-nav-main,
.admin-nav.admin-nav-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    width: 90%;
    max-width: 1440px;
    margin: 0 auto 12px;

    gap: 10px;
}

/* ปุ่มเมนูหลัก */
.admin-nav-main .button {
    padding: 10px 15px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 7px;
}

/* เมนูรองเล็กลง */
.admin-nav-secondary .button {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 7px;
}

/* เว้นช่องว่างก่อนส่วนจัดการ */
.admin-nav-secondary {
    margin-bottom: 22px !important;
}

/* มือถือและแท็บเล็ต */
@media (max-width: 760px) {
    .admin-nav.admin-nav-main,
    .admin-nav.admin-nav-secondary {
        width: 94%;
        gap: 7px;
    }

    .admin-nav-main .button,
    .admin-nav-secondary .button {
        white-space: normal;
        text-align: center;
    }
}
