.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn[hidden],
#admin-open[hidden],
#admin-open-m[hidden],
.desktop-only[hidden] { display: none !important; }
.icon-btn:hover { color: var(--text-primary); background: var(--surface-3); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    background: var(--brand);
    color: var(--brand-on);
    font-weight: 700;
    font-size: var(--fs-sm);
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--brand-hover); }

.btn-login {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    background: var(--brand);
    color: var(--brand-on);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.user-info { display: none; }
@media (min-width: 900px) { .user-info { display: flex; align-items: center; } }
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface-1);
}
.user-badge.sub { border-color: var(--brand); color: var(--brand); }
.user-badge.free { color: var(--text-muted); }
.badge-sub {
    font-size: 0.65rem;
    background: var(--brand);
    color: var(--brand-on);
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    font-weight: 700;
}

.video-count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    background: var(--surface-1);
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
}
.video-count.new-count { color: var(--brand); border-color: var(--brand); }

.filter-controls { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.filter-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.filter-btn.active {
    color: var(--brand-on);
    background: var(--brand);
    border-color: var(--brand);
}

.active-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); width: 100%; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: var(--brand-subtle);
    border: 1px solid var(--brand);
    color: var(--text-primary);
    font-size: var(--fs-xs);
    font-weight: 600;
}
.filter-chip a { color: var(--text-muted); }
.filter-chip a:hover { color: var(--danger); }

.dropdown { position: relative; z-index: 30; }
.dropdown.open { z-index: 80; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.4rem;
    min-width: 180px;
    max-height: min(70vh, 420px);
    overflow: auto;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.4rem;
    z-index: 80;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.dropdown-item:hover { background: var(--surface-3); color: var(--text-primary); }
.dropdown-item.active { background: var(--brand); color: var(--brand-on); font-weight: 700; }
.dropdown-item .dim { color: var(--text-muted); font-size: 0.8em; }
.chevron { font-size: 0.65rem; }
.dropdown.open .chevron { transform: rotate(180deg); }

.video-card {
 display: flex;
 flex-direction: column;
 background: var(--surface-1);
 border: 1px solid var(--hairline);
 border-radius: 16px;
 overflow: hidden;
 transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.video-card:hover {
 transform: translateY(-3px);
 border-color: var(--border-strong);
 box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.video-card:active { transform: scale(0.985); }
.video-card, .gallery-card, .model-card {
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}
@media (max-width: 899px) {
    .video-card, .gallery-card { contain-intrinsic-size: 220px; }
}
.thumbnail-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
    }
.thumbnail, .card-clip { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out); background: #111; pointer-events: none; }
.video-card:hover .thumbnail { transform: scale(1.045); }
.duration {
    position: absolute;
    bottom: 6px; right: 6px;
    background: var(--brand);
    color: #111;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
}
.duration.small { font-size: 0.65rem; padding: 1px 4px; }
.card-info { padding: 0.75rem 0.85rem 0.85rem; flex-grow: 1; }
.card-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.3rem;
    min-height: 2.3em;
}
.card-channel {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta { font-size: 0.7rem; color: var(--text-muted); }

.video-card.locked { cursor: not-allowed; opacity: 0.78; }
.video-card.locked:hover { border-color: var(--border); }
.lock-overlay, .thumb-locked {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: color-mix(in srgb, var(--surface-0) 72%, transparent);
    color: var(--text-muted);
}
.thumb-locked i { font-size: 1.6rem; color: var(--brand); }
.thumb-locked span {
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.player-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
}
.video-player { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-info { padding: 1.1rem 0; }
.video-title { font-size: var(--fs-lg); font-weight: 750; line-height: 1.35; margin-bottom: 0.7rem; }
.video-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.meta-item { display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); color: var(--text-secondary); }
.meta-item a:hover { color: var(--brand); }

.related-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
}
.related-area { overflow: visible; min-width: 0; width: 100%; }
.related-scroller {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 0 0 0.55rem;
    touch-action: pan-x pan-y;
    cursor: grab;
}
.related-scroller.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.related-scroller::-webkit-scrollbar { height: 6px; }
.related-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
    overflow: visible;
    padding: 0;
}
.related-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 220px;
    min-width: 220px;
    max-width: none;
    gap: 0.45rem;
    padding: 0;
    border-radius: var(--r-sm);
    scroll-snap-align: start;
    content-visibility: visible;
    contain: none;
    pointer-events: auto;
}
.related-card:hover { background: transparent; }
.related-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.related-card-title {
    font-size: var(--fs-sm);
    font-weight: 550;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
}
.related-channel, .related-views { font-size: 0.7rem; color: var(--text-muted); }

.gallery-card {
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}
.gallery-card:hover { opacity: 0.92; }
.gallery-card.locked { cursor: not-allowed; opacity: 0.85; }
.gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: var(--surface-2);
    overflow: hidden;
    border-radius: 2px;
}
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; }
.gallery-info { padding: 0.4rem 0.05rem 0.1rem; }
.gallery-title {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.05rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.model-card:hover { border-color: var(--brand); background: var(--surface-3); }
.model-card.pin {
    border-color: var(--brand);
    background: var(--brand-subtle);
    order: -1;
}
.pin-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-on);
    background: var(--brand);
    vertical-align: middle;
}
.cat-strip {
 margin: 0.2rem 0 1rem;
 padding: 0.7rem 0.7rem 0.55rem;
 border: 1px solid var(--border);
 border-radius: var(--r-lg);
 background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.cat-strip-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 0.6rem;
 margin: 0 0.15rem 0.55rem;
}
.cat-strip-label {
 display: inline-flex;
 align-items: center;
 gap: 0.4rem;
 font-size: 0.68rem;
 font-weight: 800;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--text-muted);
}
.cat-strip-label i { color: var(--brand); font-size: 0.75rem; }
.cat-clear {
 font-size: var(--fs-xs);
 font-weight: 700;
 color: var(--brand);
 padding: 0.15rem 0.45rem;
 border-radius: 999px;
}
.cat-clear:hover { background: var(--brand-subtle); }
.hot-chips {
 display: flex;
 flex-wrap: nowrap;
 gap: 0.4rem;
 margin: 0;
 overflow-x: auto;
 padding-bottom: 0.35rem;
 scrollbar-width: thin;
 scrollbar-color: var(--brand) transparent;
}
.hot-chips::-webkit-scrollbar { height: 4px; }
.hot-chips::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.hot-chip {
 display: inline-flex;
 align-items: center;
 padding: 0.38rem 0.8rem;
 border-radius: 999px;
 border: 1px solid var(--border);
 background: var(--surface-0);
 color: var(--text-secondary);
 font-size: var(--fs-xs);
 font-weight: 700;
 white-space: nowrap;
 flex: 0 0 auto;
}
.hot-chip:hover {
 color: var(--text-primary);
 border-color: var(--brand);
 background: var(--brand-subtle);
}
.hot-chip.is-on {
 color: var(--brand-on);
 background: var(--brand);
 border-color: var(--brand);
}
.model-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-subtle);
    border: 1px solid var(--brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}
.model-name { font-weight: 700; font-size: 0.9rem; }
.model-count { font-size: var(--fs-xs); color: var(--text-muted); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: var(--sp-8);
    flex-wrap: wrap;
}
.page-btn {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--surface-1);
}
.page-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.page-btn.active { background: var(--brand); color: var(--brand-on); border-color: var(--brand); font-weight: 700; }
.page-dots { color: var(--text-muted); padding: 0 0.25rem; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-12) var(--sp-4);
    color: var(--text-muted);
    gap: var(--sp-4);
    text-align: center;
}
.empty-state i { font-size: 2.4rem; color: var(--brand); }
.empty-text { color: var(--text-muted); font-size: var(--fs-sm); padding: 1rem 0; }

.lock-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--brand-subtle);
    border: 1px solid var(--brand);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-6);
}
.lock-banner i { color: var(--brand); font-size: 1.3rem; flex-shrink: 0; }
.lock-banner strong { display: block; margin-bottom: 0.15rem; }
.lock-banner p { font-size: var(--fs-sm); color: var(--text-secondary); margin: 0; }

.no-access-card, .sub-gate-card {
    text-align: center;
    padding: var(--sp-12) var(--sp-4);
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.no-access-icon, .sub-gate-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--brand-subtle);
    border: 1px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--brand);
    font-size: 1.7rem;
}
.no-access-card h1, .sub-gate-title { font-size: var(--fs-xl); margin-bottom: 0.7rem; }
.no-access-card p, .sub-gate-text { color: var(--text-secondary); margin-bottom: 0.4rem; }
.no-access-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.5rem !important; }
.sub-gate-section {
    padding: 4rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-0);
}
#gate { width: 100%; display: none; }
#gate.on { display: flex; justify-content: center; }
#site-chrome {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    flex: 1 0 auto;
    width: 100%;
}
#site-chrome[hidden] { display: none !important; }
.auth-container { width: 100%; max-width: 420px; padding: 1rem; }
.auth-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.2rem 1.8rem;
}
.auth-logo {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    line-height: 0;
}
.auth-logo .logo-img {
    height: 52px;
    max-width: min(280px, 78vw);
}
.auth-title {
    text-align: center;
    font-size: var(--fs-lg);
    font-weight: 750;
    margin-bottom: 1.5rem;
}
.auth-error {
    background: var(--danger-subtle);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.auth-error[hidden] { display: none !important; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.input-wrap { position: relative; }
.input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.4rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface-0);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    outline: none;
}
.input-wrap.has-toggle input { padding-right: 2.7rem; }
.input-wrap input:focus { border-color: var(--brand); }
.pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
}
.pw-toggle i { position: static; transform: none; font-size: 0.95rem; pointer-events: none; }
.pw-toggle:hover,
.pw-toggle[aria-pressed="true"] { color: var(--brand); }
.auth-btn {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem;
    border-radius: 4px;
    border: none;
    background: var(--brand);
    color: var(--brand-on);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.auth-btn:hover { background: var(--brand-hover); }
.auth-switch {
    text-align: center;
    margin-top: 1.3rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.auth-switch a { color: var(--brand); font-weight: 650; }

.hcaptcha-box {
    min-height: 78px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.dash-page { padding: 1.1rem 0 3rem; }
.dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.dash-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.dash-tabs { display: flex; gap: 6px; background: var(--surface-1); padding: 4px; border-radius: 12px; border: 1px solid var(--hairline); }
.dash-tab {
    padding: 0.45rem 0.9rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}
.dash-tab.on, .dash-tab:hover { background: var(--brand); color: #111; }
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1.1rem;
}
.dash-stats.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-stat {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 14px 16px;
}
.dash-stat b { display: block; font-size: 1.35rem; font-weight: 850; letter-spacing: -0.04em; }
.dash-stat span { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-stat.ok b { color: var(--ok); }
.dash-stat.warn b { color: var(--warn); }
.dash-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    overflow: hidden;
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
}
.dash-card-head h2 { font-size: 0.95rem; }
.dash-card-head a { color: var(--brand); font-size: 0.8rem; font-weight: 700; }
.dash-table-wrap {
    overflow: visible;
    width: 100%;
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.dash-table th, .dash-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.dash-table th { color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-what { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; font-weight: 700; }
.dash-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.dash-toolbar.wrap { flex-wrap: wrap; }
.dash-toolbar .grow { flex: 1; min-width: 180px; }
.dash-select {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: var(--surface-0);
    color: var(--text-primary);
    padding: 0 12px;
}
.dash-loading { color: var(--text-muted); padding: 2rem; text-align: center; }
.dash-users { padding: 0; }
.dash-grant {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.dash-grant-block {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 14px 16px;
}
.dash-grant-block.danger { border-color: rgba(244, 63, 94, 0.45); }
.dash-grant-block h2 { font-size: 0.95rem; margin-bottom: 4px; }
.dash-grant-block p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.dash-grant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.dash-grant-row input[type="text"] {
    flex: 1;
    min-width: 140px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: var(--surface-0);
    color: var(--text-primary);
    padding: 0 12px;
}
.dash-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-presets .filter-btn { min-height: 36px; }
body.dash-mode .footer { display: none; }
body.dash-mode:not(.scroll-lock),
body.dash-mode:not(.scroll-lock) #site-chrome,
body.dash-mode:not(.scroll-lock) .main-content,
body.dash-mode .dash-page {
    height: auto;
    max-height: none;
    overflow: visible;
}
body.dash-mode:not(.shorts-mode):not(.scroll-lock) {
    display: block;
    touch-action: pan-y pinch-zoom;
}
body.dash-mode .admin-list {
    flex: none;
    overflow: visible;
    overscroll-behavior: auto;
}
@media (max-width: 900px) {
    .dash-grant { grid-template-columns: 1fr; }
    .dash-stats, .dash-stats.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-head { flex-direction: column; align-items: stretch; }
    .dash-tabs { flex-wrap: wrap; }
    .dash-what {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }
    .dash-table, .dash-table thead, .dash-table tbody, .dash-table th, .dash-table td, .dash-table tr {
        display: block;
        width: 100%;
    }
    .dash-table thead { display: none; }
    .dash-table tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--hairline);
    }
    .dash-table td {
        padding: 4px 0;
        border-bottom: 0;
    }
    .admin-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}

@keyframes sheet-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes sheet-up {
    from { transform: translateY(18%); }
    to { transform: translateY(0); }
}

#admin {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overscroll-behavior: contain;
}
#admin.on { display: flex; animation: sheet-fade 0.22s var(--ease-out); }
body.admin-open { overflow: hidden; }
.admin-sheet {
    width: min(720px, 100%);
    max-height: min(94dvh, 900px);
    background: color-mix(in srgb, var(--surface-1) 94%, transparent);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--hairline);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(0);
    animation: sheet-up 0.38s var(--ease-spring);
    will-change: transform;
}
.admin-sheet::before {
    content: "";
    display: block;
    width: 36px;
    height: 5px;
    border-radius: 99px;
    background: var(--surface-3);
    margin: 8px auto 0;
    flex-shrink: 0;
}
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--hairline);
    background: transparent;
}
.admin-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-mark {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--brand);
    color: #111;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.78rem;
    flex-shrink: 0;
}
.admin-head h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; }
.admin-head p { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px 0;
}
.admin-stat {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
}
.admin-stat b {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
}
.admin-stat span { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-tools { padding: 12px 16px 8px; }
.admin-search { position: relative; }
.admin-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.8rem; pointer-events: none;
}
.admin-search input {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 1rem 0.7rem 2.3rem;
    border-radius: 14px;
    border: 1px solid var(--hairline);
    background: var(--surface-0);
    color: var(--text-primary);
    outline: none;
}
.admin-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.admin-list {
    padding: 4px 0 8px;
}
.admin-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.4rem 1rem;
    font-size: 0.9rem;
}
.admin-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}
.admin-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem;
    flex-shrink: 0;
}
.admin-meta { flex: 1; min-width: 0; }
.admin-name {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-chip {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    color: var(--text-muted);
}
.admin-chip.admin { color: #111; background: var(--brand); border-color: var(--brand); }
.admin-chip.on { color: #111; background: #4ade80; border-color: #4ade80; }
.admin-chip.off { color: #f43f5e; border-color: #f43f5e; background: rgba(244, 63, 94, 0.12); }
.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.admin-actions .filter-btn {
    min-height: 36px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
}
.admin-actions .filter-btn[data-on="1"] {
    background: var(--brand);
    color: #111;
    border-color: var(--brand);
}
.admin-actions .filter-btn.danger {
    background: rgba(244, 63, 94, 0.14);
    color: #f43f5e;
    border-color: #f43f5e;
}
.admin-days {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-days input {
    width: 64px;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 0 8px;
    font: inherit;
    font-weight: 700;
}
@media (min-width: 900px) {
    #admin { align-items: center; padding: 24px; }
    .admin-sheet {
        border-radius: 18px;
        border-bottom: 1px solid var(--hairline);
        max-height: min(86vh, 780px);
        animation: none;
    }
    .admin-sheet::before { display: none; }
    .admin-actions { flex-direction: row; }
}

.search-page-header { margin-bottom: 1.5rem; }
.search-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
}
.search-section { margin-bottom: 2.5rem; }

.live-search-section {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem 0.4rem;
    margin-top: 0.7rem;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.live-search-count {
    background: var(--surface-2);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-primary);
}
.live-search-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.45rem;
    border-radius: var(--r-sm);
    margin-bottom: 0.4rem;
    border: 1px solid var(--border);
}
.live-search-item:hover { background: var(--surface-3); }
.live-search-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--surface-2);
}
.live-search-item.gallery .live-search-thumb { aspect-ratio: 1 / 1; width: 80px; }
.live-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-search-duration {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
}
.live-search-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.live-search-info h4 {
    font-size: 13px;
    font-weight: 550;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
}
.live-search-info p { font-size: 11px; color: var(--text-muted); margin: 0; }
.live-search-more {
    display: block;
    text-align: center;
    padding: 0.7rem;
    margin-top: 0.45rem;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    color: var(--brand);
    font-weight: 650;
    font-size: 0.88rem;
}

@media (max-width: 899px) {
    .filter-controls {
        width: 100%;
        overflow: visible;
        flex-wrap: wrap;
        padding-bottom: 2px;
    }
    .filter-controls::-webkit-scrollbar { display: none; }
    .filter-btn, .btn, .btn-login, .icon-btn, .auth-btn, .mobile-nav-link { min-height: 44px; }
    .filter-btn { border-radius: 999px; padding: 0.4rem 0.95rem; }
    .icon-btn { width: 44px; height: 44px; }
    .page-btn { min-width: 44px; height: 44px; border-radius: 12px; }
    .user-info { display: none; }
    .video-player, video { width: 100% !important; max-width: 100%; }
     .video-card {
 background: var(--surface-1);
 border: 1px solid var(--hairline);
 border-radius: 16px;
 }
 .gallery-card { background: transparent; border: 0; border-radius: 0; }
 .thumbnail-wrap { border-radius: 16px 16px 0 0; }
 .gallery-thumb-wrap { border-radius: 12px; }
 .card-info { padding: 0.8rem 0.9rem 0.95rem; }
 .card-title { font-size: 1rem; font-weight: 650; min-height: 0; -webkit-line-clamp: 2; line-height: 1.35; }
 .card-channel, .card-meta { font-size: 0.82rem; }
 .gallery-info { padding: 0.45rem 0.05rem 0.1rem; }
 .gallery-title { font-size: 0.86rem; }
 .duration { border-radius: 4px; font-size: 0.75rem; padding: 2px 6px; }
 .auth-page {
        align-items: flex-end;
        padding-bottom: var(--kb);
    }
    .auth-card {
        margin: 0;
        padding: 1.35rem 1.15rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
        width: 100%;
        border-radius: 22px 22px 0 0;
        border-bottom: none;
    }
    .auth-container {
        padding: 0;
        max-width: 100%;
        min-height: 100dvh;
        display: flex;
        align-items: flex-end;
    }
    .auth-btn { border-radius: 14px; min-height: 50px; }
    .input-wrap input { min-height: 48px; border-radius: 12px; }
    .dropdown.open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1290;
    }
    .dropdown-menu {
        position: fixed;
        left: 12px; right: 12px; top: auto; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
        min-width: 0;
        max-height: 52dvh;
        overflow: auto;
        border-radius: 16px;
        padding: 0.55rem;
        box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.5);
        z-index: 1300;
    }
    .related-card { padding: 0; gap: 0.65rem; }
    .related-card-title { font-size: 0.82rem; }
    .live-search-item {
        border: 0;
        background: var(--surface-1);
        padding: 0.55rem;
        border-radius: 12px;
    }
    .live-search-thumb { width: 104px; border-radius: 8px; }
    .admin-sheet { width: 100%; border-radius: 22px 22px 0 0; }
    .admin-actions { width: auto; }
    .admin-actions .filter-btn { min-height: 40px; border-radius: 10px; }
    .model-card { padding: 0.85rem 0.9rem; border-radius: 14px; }
    .lock-banner { padding: 0.85rem 1rem; border-radius: 14px; }
    .sub-gate-card, .no-access-card { border-radius: 18px; padding: 2.2rem 1.1rem; }
    .pagination { gap: 0.35rem; margin-top: 1.4rem; }
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    padding: calc(52px + env(safe-area-inset-top, 0px)) 12px calc(24px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
}
#lightbox.on { display: flex; animation: sheet-fade 0.2s var(--ease-out); }
#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
#lightboxCap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.lightbox-close {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cmt-panel {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cmt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.cmt-head h3 { font-size: 1rem; font-weight: 750; }
.cmt-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}
.cmt-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 64px;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text-primary);
    font: inherit;
    outline: none;
}
.cmt-form textarea:focus { border-color: var(--brand); }
.cmt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.55rem;
}
.cmt-anon-lab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.cmt-anon-lab input { accent-color: var(--brand); width: 16px; height: 16px; }
.cmt-list { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cmt-empty { color: var(--text-muted); font-size: 0.85rem; padding: 0.6rem 0; }
.cmt-row { display: flex; gap: 0.7rem; }
.cmt-av {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-on);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem; flex-shrink: 0;
}
.cmt-body { min-width: 0; flex: 1; }
.cmt-meta { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--text-muted); }
.cmt-meta b { color: var(--text-primary); font-size: 0.82rem; }
.cmt-anon {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
}
.cmt-body p { font-size: 0.9rem; line-height: 1.4; margin-top: 0.2rem; word-break: break-word; }

.cmt-sheet {
    position: fixed;
    inset: 0;
    z-index: 2400;
}
.cmt-sheet-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.cmt-sheet-card {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: min(78dvh, 680px);
    background: var(--surface-1);
    border-radius: 18px 18px 0 0;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px) + var(--kb));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
}
.cmt-sheet-grab {
    width: 42px; height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    margin: 10px auto 8px;
}
.cmt-sheet .cmt-panel { border-top: 0; margin-top: 0; padding-top: 0.2rem; }
@media (min-width: 900px) {
    .cmt-sheet-card {
        left: 50%;
        right: auto;
        bottom: 24px;
        transform: translateX(-50%);
        width: min(420px, calc(100% - 32px));
        border-radius: 18px;
        max-height: min(72dvh, 640px);
        padding-bottom: 1rem;
    }
}
@media (max-width: 899px) {
    .cmt-form textarea { min-height: 52px; font-size: 16px !important; }
 .hcaptcha-box { transform: scale(0.9); transform-origin: top center; }
 .hcaptcha-box iframe { max-width: 100%; }
 .dash-tabs { width: 100%; }
 .dash-tab { flex: 1 1 auto; text-align: center; min-height: 40px; }
 .dash-stat { padding: 12px; }
 .dash-stat b { font-size: 1.15rem; }
 .lock-banner { align-items: flex-start; }
 .footer-links { gap: 0.7rem 1rem; }
 .search-jump { flex-wrap: wrap; }
 .search-jump .filter-btn { flex: 1 1 auto; justify-content: center; }
 .tabbar-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .section-title, .video-title, .model-name, .gallery-title, .card-title { overflow-wrap: anywhere; }
 img, video, iframe { max-width: 100%; }
}
@media (max-width: 899px) {
 .video-grid, .video-masonry { grid-template-columns: minmax(0, 1fr); }
 .gallery-grid, .gallery-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .related-card { flex-basis: 82vw; width: 82vw; min-width: 82vw; }
 .dash-stats, .dash-stats.mini, .admin-stats { grid-template-columns: 1fr 1fr; }
}
