/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0e0b1a;
    --bg-soft: #130f24;
    --bg-card: #1a1530;
    --bg-card2: #201b3a;
    --violet: #6c3fc5;
    --violet-dk: #5530a8;
    --violet-lt: #8a5fe8;
    --neon: #00e5c8;
    --neon-dk: #00bfa5;
    --neon-bg: rgba(0,229,200,.08);
    --pink: #ff3c7e;
    --pink-dk: #d42d68;
    --txt: #e8e4f8;
    --txt2: #b0a8d8;
    --txt3: #6a6090;
    --line: rgba(108,63,197,.25);
    --line2: rgba(108,63,197,.4);
    --s1: 0 1px 6px rgba(0,0,0,.35);
    --s2: 0 3px 16px rgba(0,0,0,.45);
    --s3: 0 6px 28px rgba(0,229,200,.12);
    --r: 8px;
    --r2: 5px;
    --r3: 12px;
}

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(108,63,197,.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0,229,200,.08) 0%, transparent 55%);
    min-height: 100vh;
}

a { color: var(--neon); text-decoration: none; transition: color .18s; }
a:hover { color: var(--neon-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: rgba(14,11,26,.92);
    border-bottom: 1px solid var(--line2);
    padding: 10px 0;
    backdrop-filter: blur(8px);
}

.site-header .main-container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-name {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--neon);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    text-shadow: 0 0 18px rgba(0,229,200,.5);
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(108,63,197,.4), rgba(0,229,200,.15));
    border: 1px solid var(--line2);
    border-radius: 24px;
    padding: 5px 16px;
}

.domain-badge .db-label {
    font-size: 0.68rem;
    color: var(--txt3);
    white-space: nowrap;
}

.domain-badge .db-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .3px;
}

/* ===== BANNER ===== */
.banner-zone {
    margin: 4px 0 3px;
}
.banner-zone img { border-radius: var(--r); width: 100%; }

/* ===== CATEGORY NAV ===== */
.nav-module {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    min-height: 38px;
}

.nav-row:last-child { border-bottom: none; }

.nav-zone-tag {
    background: linear-gradient(180deg, var(--violet), var(--violet-dk));
    color: rgba(255,255,255,.75);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 66px;
    min-width: 66px;
    border-right: 1px solid var(--line);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.nav-items-zone {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.nav-items-zone a {
    font-size: .82rem;
    color: var(--txt2);
    padding: 3px 6px;
    border-radius: var(--r2);
    transition: all .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-items-zone a:hover {
    background: var(--neon-bg);
    color: var(--neon);
    border-color: rgba(0,229,200,.3);
}

.nav-items-zone a.active {
    background: linear-gradient(135deg, var(--violet), var(--violet-lt));
    color: #fff;
    border-color: var(--violet-lt);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(108,63,197,.4);
}

/* ===== SEARCH ===== */
.search-module {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.search-module form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.search-module input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--line2);
    border-radius: var(--r2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-module input[type="text"]:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 2px rgba(0,229,200,.15);
}

.search-module input[type="text"]::placeholder {
    color: var(--txt3);
}

.search-module button {
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: var(--r2);
    background: var(--violet);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, box-shadow .18s;
    flex-shrink: 0;
}

.search-module button:hover { background: var(--violet-lt); box-shadow: 0 0 12px rgba(108,63,197,.4); }

.search-module button[value="1"] { background: var(--neon-dk); color: #0e0b1a; }
.search-module button[value="1"]:hover { background: var(--neon); box-shadow: 0 0 12px rgba(0,229,200,.4); }

.search-module button[value="2"] { background: var(--pink); }
.search-module button[value="2"]:hover { background: var(--pink-dk); box-shadow: 0 0 12px rgba(255,60,126,.4); }

/* ===== HOT TAGS ===== */
.tag-module {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--s1);
}

.tag-module h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 6px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-list .tg {
    display: inline-block;
    background: rgba(108,63,197,.15);
    color: var(--txt2);
    border: 1px solid var(--line2);
    border-radius: 20px;
    padding: 2px 11px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .18s;
}

.tag-list .tg:hover {
    background: var(--neon-bg);
    color: var(--neon);
    border-color: rgba(0,229,200,.4);
    box-shadow: 0 0 8px rgba(0,229,200,.2);
}

/* ===== CONTENT SECTION ===== */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r3);
    padding: 13px 13px 11px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.block-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon), transparent);
    border-radius: 2px;
}

.block-header h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--txt);
}

.block-header h3 a { color: var(--txt); }
.block-header h3 a:hover { color: var(--neon); }

.block-header h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--txt);
}

/* ===== FILM GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.media-grid li {
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    transition: box-shadow .22s, transform .22s, border-color .22s;
}

.media-grid li:hover {
    box-shadow: var(--s3);
    transform: translateY(-2px);
    border-color: rgba(0,229,200,.35);
}

.thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-card2);
}

.thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.thumb-link:hover img { transform: scale(1.05); }

.media-caption {
    padding: 5px 7px 7px;
}

.media-caption h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.media-caption h5 a { color: var(--txt2); }
.media-caption h5 a:hover { color: var(--neon); }

/* ===== PAGINATION ===== */
.pg-section {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

.pg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.pg-row a.pgi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r2);
    font-size: .84rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .18s;
}

.pg-row a.pgi:hover {
    background: var(--neon-bg);
    border-color: rgba(0,229,200,.45);
    color: var(--neon);
}

.pg-row a.pgi-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--violet), var(--violet-lt));
    border: 1px solid var(--violet-lt);
    border-radius: var(--r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 12px rgba(108,63,197,.4);
}

/* ===== FOOTER ===== */
.friend-links-block {
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--s1);
}

.fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fl-list dd { display: inline; }

.fl-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt3);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: rgba(108,63,197,.08);
    text-decoration: none;
    transition: all .18s;
}

.fl-list a:hover { color: var(--neon); border-color: rgba(0,229,200,.4); }

.copyright-bar {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.detail-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 15px;
    font-size: .98rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-left: 3px solid var(--neon);
    border-radius: var(--r);
    box-shadow: var(--s1);
}

.detail-title a {
    color: var(--neon);
    font-weight: 700;
    margin-right: 6px;
}

.detail-info {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    box-shadow: var(--s1);
    margin: 5px 0;
    color: var(--txt2);
}

.capture-wrap {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.capture-wrap picture,
.capture-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--r2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.action-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--violet), var(--violet-lt));
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(108,63,197,.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--neon-dk), var(--neon));
    color: #0e0b1a;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0,229,200,.45);
}

.client-tip {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.client-tip a { color: var(--neon); font-weight: 600; }
.client-tip a:hover { color: var(--txt); }

/* ===== SHARE ===== */
.share-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card2);
    border: 1px solid var(--line2);
    border-radius: var(--r);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.share-strip .ss-label { font-size: .77rem; color: var(--txt3); white-space: nowrap; }
.share-strip .ss-url { font-size: .79rem; color: var(--txt2); flex: 1; min-width: 0; word-break: break-all; }

.share-strip .ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--violet);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}

.share-strip .ss-btn:hover { background: var(--neon-dk); color: #0e0b1a; }

/* ===== VIS HELPERS ===== */
.only-pc { display: block; }
.only-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .only-pc { display: none; }
    .only-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .brand-name { font-size: 1.06rem; }
    .domain-badge .db-val { font-size: .9rem; }

    .nav-row { align-items: stretch; }

    .nav-zone-tag {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-items-zone {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .nav-items-zone a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .search-module form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .search-module input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .search-module button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .thumb-link { aspect-ratio: 600 / 350; }
    .media-caption h5 { font-size: .72rem; }
    .content-block { padding: 9px 9px 7px; }
    .action-btn { padding: 9px 14px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-zone-tag { font-size: 10px; }
    .nav-items-zone a { font-size: 13px; }
}

@media (max-width: 380px) {
    .nav-zone-tag { font-size: 10px; }
    .nav-items-zone a { font-size: 12px; }
    .search-module button { padding: 0 5px; font-size: .68rem; }
}
