@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Noto+Sans+SC:wght@400;600;700&display=swap');
:root {
    --bg: #0a0b0d;
    --surface: #14161a;
    --surface-2: #1b1e24;
    --text: #f8fafc;
    --muted: #9aa4b2;
    --accent: #ff4d5a;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 16px;
    --space-4: 24px;
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-lg: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    background: radial-gradient(circle at 20% 20%, rgba(255,77,90,0.08), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(255,199,93,0.06), transparent 45%),
                linear-gradient(180deg, rgba(8,10,12,0.96), rgba(8,10,12,1));
    color: var(--text);
    font-family: 'Space Grotesk','Noto Sans SC',sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0, transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255,255,255,0.04) 0, transparent 30%),
        linear-gradient(120deg, rgba(255,255,255,0.04) 0%, transparent 40%, rgba(255,255,255,0.02) 100%);
    mix-blend-mode: screen;
    z-index: 0;
}
h1, h2, h3 { letter-spacing: 0.2px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.page { padding: 96px 5px 40px; max-width: 1700px; margin: 0 auto; }
.top-ads {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin-bottom: 16px;
}
.top-ads:empty { display: none; margin: 0; }
body.module-list .page,
body.module-search .page,
body.module-actors .page,
body.module-play .page { padding-top: 86px; }

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 68px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 6%; background: rgba(8, 10, 12, 0.82); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.logo span { color: var(--accent); }
.brand-highlight { color: var(--text); font-weight: 700; }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-link { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; transition: 0.2s ease; }
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; background: rgba(255,77,90,0.18); border-color: rgba(255,77,90,0.35); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-search {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(160deg, rgba(20,22,26,0.95), rgba(12,14,18,0.95));
    border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 12px;
}
.nav-search input { border: none; background: transparent; color: inherit; outline: none; font-size: 12px; width: 140px; }
.nav-search button { border: none; background: var(--accent); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.nav-flag { width: 18px; height: 12px; background: #d11; border-radius: 2px; }
.nav-search.desktop { display: flex; }
.mobile-actions { display: none; gap: 10px; align-items: center; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-search {
    display: none; margin: 72px 6% 0; padding: 8px 10px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
}
.mobile-search.is-open { display: block; }
.mobile-search input {
    width: 100%; border: none; background: transparent; color: inherit; outline: none; font-size: 13px;
}
.mobile-panel {
    position: fixed; top: 68px; right: 12px; left: 12px; z-index: 999;
    background: rgba(20,22,26,0.92); border: 1px solid var(--border); border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 12px; display: none;
}
.mobile-panel h4 { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.mobile-panel .panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-panel .panel-links a {
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); font-size: 12px; padding: 6px 10px; border-radius: 999px;
    white-space: nowrap;
}
.mobile-panel .panel-links a.active {
    background: rgba(255,77,90,0.18); border-color: rgba(255,77,90,0.4); color: #fff;
}

.hero { text-align: center; padding: 72px 0 46px; }
.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; }
.hero h1 span { color: var(--accent); }
.hero-search {
    display: flex; align-items: center; gap: 10px; max-width: 700px;
    margin: 0 auto 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,0.96); color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.hero-search input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.hero-search button { border: none; background: #111; color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.hero-tags a { font-size: 12px; color: var(--muted); }
.hero-tags a strong { color: #ffd166; font-weight: 600; }

.section-title { font-size: 16px; margin: 22px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before {
    content: ""; display: inline-block; width: 6px; height: 16px; border-radius: 999px; background: var(--accent);
}
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; align-items: center; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
.chip-row::-webkit-scrollbar { height: 6px; }
.chip-row::-webkit-scrollbar-track { background: transparent; }
.chip-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 999px; }
.chip-row::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.chip {
    background: linear-gradient(145deg, rgba(24,26,32,0.96), rgba(12,14,18,0.96));
    border: 1px solid var(--border); color: var(--muted);
    padding: 0 14px; border-radius: 999px; font-size: 12px;
    white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
    height: 34px; line-height: 34px; word-break: keep-all;
}
.chip.active { background: rgba(255,77,90,0.16); color: #fff; border-color: transparent; }

.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.video-card {
    background: linear-gradient(160deg, rgba(20,22,26,0.98), rgba(12,14,18,0.98));
    border-radius: 14px; overflow: hidden; border: 1px solid transparent; transition: 0.2s ease; box-shadow: var(--shadow);
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.v-thumb { width: 100%; aspect-ratio: 16/9; background: #2a2d33; position: relative; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-badge {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0,0,0,0.75); padding: 2px 6px; border-radius: 6px; font-size: 11px;
}
.img-loading {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.img-loaded {
    opacity: 1;
}
.thumb-error {
    position: relative;
    background: linear-gradient(145deg, rgba(20,22,26,0.95), rgba(12,14,18,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.thumb-error::after {
    content: "加载失败";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
}
.v-meta { padding: 12px 14px 14px; }
.v-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-sub { font-size: 11px; color: var(--muted); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pg-btn { min-width: 42px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; display:flex; align-items:center; justify-content:center; white-space: nowrap; }
.pg-btn.active { background: var(--accent); color: #fff; border-color: transparent; }

.player-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 22px; }
.video-view { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.meta-tags { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-tag { background: var(--surface-2); color: var(--muted); font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.detail-item { background: linear-gradient(160deg, rgba(20,22,26,0.95), rgba(12,14,18,0.95)); border: 1px solid var(--border); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--muted); }
.detail-item b { display: block; color: var(--text); font-size: 12px; margin-bottom: 6px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.action-btn { background: linear-gradient(160deg, rgba(27,30,36,0.95), rgba(15,17,22,0.95)); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-size: 12px; color: var(--text); white-space: nowrap; }
.action-btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.side-item { display: flex; gap: 10px; padding: 10px; background: var(--surface); border-radius: 12px; margin-bottom: 10px; }
.side-thumb { width: 110px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
.side-title { font-size: 12px; font-weight: 600; line-height: 1.3; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.site-footer { padding: 32px 5px 42px; margin-top: 40px; position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at top, rgba(255,77,90,0.16), transparent 55%), linear-gradient(140deg, rgba(20,22,26,0.98), rgba(8,10,12,0.98)); border: 1px solid rgba(255,255,255,0.08); }
.site-footer::after {
    content: ""; position: absolute; inset: 0; opacity: 0.12;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 25%, transparent 50%, rgba(255,255,255,0.03) 75%, rgba(255,255,255,0.01) 100%);
    pointer-events: none;
}
.footer-inner { position: relative; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.footer-brand h4 { font-size: 18px; letter-spacing: 0.6px; color: var(--muted); }
.footer-brand h4 span { color: var(--accent); }
.footer-meta { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.footer-links h5 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { font-size: 13px; color: #cbd5f5; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "✦"; color: var(--accent); font-size: 10px; }
.footer-icons { display: flex; gap: 10px; margin-top: 6px; }
.footer-icon { width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); font-size: 14px; }
.footer-bottom { margin-top: 20px; font-size: 11px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.notice-mask {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(5, 7, 10, 0.72);
}
.notice-card {
    width: min(92vw, 520px);
    background: radial-gradient(circle at top, rgba(255,77,90,0.16), transparent 55%),
                linear-gradient(160deg, rgba(26,30,38,0.98), rgba(12,14,18,0.98));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    padding: 18px 18px 16px;
}
.notice-title {
    font-size: 15px; font-weight: 700; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.notice-title::before {
    content: ""; width: 6px; height: 16px; border-radius: 999px; background: var(--accent);
}
.notice-body { font-size: 13px; color: var(--muted); line-height: 1.65; }
.notice-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.notice-close {
    border: 1px solid rgba(255,255,255,0.12);
    background: var(--surface-2);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
}

.detail-lines { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.detail-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 6px 10px; border-radius: 999px; color: var(--text);
    font-size: 12px; white-space: nowrap;
}
.magnet-tip { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.magnet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.magnet-table tbody tr { border-bottom: 1px dashed rgba(255,255,255,0.15); }
.magnet-table th { text-align: left; padding: 6px; color: var(--muted); }
.video-grid.gallery-grid { gap: 12px; }
.gallery-item { border: none; cursor: zoom-in; background: transparent; padding: 0; text-align: left; display: block; width: 100%; }
.gallery-item.video-card { box-shadow: none; border: 1px solid var(--border); }
.gallery-grid .v-thumb { aspect-ratio: unset !important; height: auto; overflow: hidden; border-radius: 10px; }
.gallery-grid img { width: 100% !important; height: auto !important; object-fit: contain; }
.gallery-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.88);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.gallery-overlay.is-open { display: flex; }
.gallery-frame { max-width: 92vw; max-height: 80vh; }
.gallery-frame img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20,22,26,0.8); color: #fff; font-size: 26px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-close {
    position: absolute; top: 20px; right: 20px; width: 38px; height: 38px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20,22,26,0.8); color: #fff; font-size: 20px; cursor: pointer;
}
.gallery-counter {
    position: absolute; bottom: 16px; color: #cbd5f5; font-size: 12px;
    background: rgba(20,22,26,0.7); padding: 6px 10px; border-radius: 999px;
}

@media (min-width: 1024px) {
    .video-grid.gallery-grid { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .video-grid.gallery-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
    .video-grid.gallery-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .video-grid.gallery-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 1280px) {
    .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    nav { flex-direction: row; align-items: center; height: 60px; padding: 0 6%; gap: 10px; }
    .page { padding-top: 110px; }
    body.module-list .page,
    body.module-search .page,
    body.module-actors .page,
    body.module-play .page { padding-top: 86px; }
    .player-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-flag { display: none; }
    .nav-search.desktop { display: none; }
    .mobile-actions { display: inline-flex; }
    .page { padding: 120px 5px 40px; }
    body.module-list .page,
    body.module-search .page,
    body.module-actors .page,
    body.module-play .page { padding-top: 84px; }
    .video-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero { padding-top: 40px; }
    .hero h1 { font-size: 22px; }
    body.module-play .video-view { aspect-ratio: auto; }
    body.module-play .video-view .player-iframe { height: calc(56vw + 220px) !important; min-height: 380px; }
    .gallery-nav { width: 36px; height: 36px; font-size: 20px; }
    .gallery-close { width: 34px; height: 34px; }
}
