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

:root {
    --void:        #000000;
    --void-mid:    #0d0d0d;
    --void-soft:   #161616;
    --void-raised: #1e1e1e;
    --void-card:   #242424;
    --void-rim:    #2e2e2e;
    --void-line:   #3a3a3a;
    --void-muted:  #4a4a4a;
    --white:       #ffffff;
    --white-dim:   rgba(255,255,255,.75);
    --white-soft:  rgba(255,255,255,.45);
    --white-faint: rgba(255,255,255,.22);
    --orange:      #e8470a;
    --orange-lt:   #f05a1a;
    --orange-bg:   rgba(232,71,10,.14);
    --orange-ring: rgba(232,71,10,.30);
    --sh1: 0 1px 6px rgba(0,0,0,.60);
    --sh2: 0 4px 16px rgba(0,0,0,.70);
    --sh3: 0 8px 32px rgba(0,0,0,.80);
    --rr:  6px;
    --rr2: 4px;
    --rr3: 10px;
    --pill: 999px;
}

html { font-size: 15px; }

body {
    background: var(--void);
    color: var(--white);
    font-family: 'PingFang SC','Noto Sans SC','Hiragino Sans GB','Microsoft YaHei',
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

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

/* ===== OUTER CONTAINER ===== */
.frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== TOP BAR ===== */
.global-nav {
    background: var(--void);
    border-bottom: 1px solid var(--void-rim);
    padding: 8px 0;
}

.global-nav .frame {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.nav-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.nav-logo-text {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
    text-transform: uppercase;
}

.addr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--void-raised);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    padding: 4px 14px;
}

.addr-badge .ab-hint {
    font-size: 0.67rem;
    color: var(--white-soft);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.addr-badge .ab-val {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.cat-panel {
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.cat-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--void-rim);
    min-height: 38px;
}

.cat-strip:last-child { border-bottom: none; }

.strip-label {
    background: var(--void-raised);
    color: var(--white-soft);
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--void-rim);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.strip-links a {
    font-size: .82rem;
    color: var(--white-dim);
    padding: 4px 6px;
    border-radius: var(--rr2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.strip-links a:hover {
    background: var(--orange-bg);
    color: var(--orange-lt);
    border-color: var(--orange-ring);
}

.strip-links a.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.query-bar {
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

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

.query-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--void-line);
    border-radius: var(--rr2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--white);
    background: var(--void-raised);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.query-bar input[type="text"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-ring);
}

.query-bar input[type="text"]::placeholder { color: var(--white-faint); }

.query-bar button {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--void-line);
    border-radius: var(--rr2);
    background: var(--void-raised);
    color: var(--white-dim);
    font-size: .80rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.query-bar button:hover {
    background: var(--void-card);
    border-color: var(--void-muted);
    color: var(--white);
}

.query-bar button[value="1"] {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.query-bar button[value="1"]:hover { background: var(--orange-lt); border-color: var(--orange-lt); }

.query-bar button[value="2"] {
    background: var(--void-card);
    color: var(--white);
    border-color: var(--void-muted);
}
.query-bar button[value="2"]:hover { background: var(--void-muted); }

/* ===== KEYWORD BLOCKS ===== */
.kw-panel {
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.kw-panel h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--white-soft);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.kw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kw-tags .kt {
    display: inline-block;
    background: var(--void-raised);
    color: var(--white-dim);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr2);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.kw-tags .kt:hover {
    background: var(--orange-bg);
    color: var(--orange-lt);
    border-color: var(--orange-ring);
}

/* ===== CONTENT SECTION ===== */
.module {
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.module-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.module-hd h3 {
    font-size: .98rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.module-hd h3 a { color: var(--white); }
.module-hd h3 a:hover { color: var(--orange-lt); }

.module-hd h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}

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

.clip-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1px solid var(--void-rim);
    background: var(--void-raised);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.clip-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--orange);
}

.clip-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--void-card);
}

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

.clip-cover:hover img { transform: scale(1.05); }

.clip-info {
    padding: 5px 7px 7px;
}

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

.clip-info h5 a { color: var(--white-dim); }
.clip-info h5 a:hover { color: var(--orange-lt); }

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

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

.pgn-set a.pp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--void-raised);
    border: 1px solid var(--void-line);
    border-radius: var(--rr2);
    font-size: .84rem;
    color: var(--white-dim);
    text-decoration: none;
    transition: all .15s;
}

.pgn-set a.pp:hover {
    background: var(--orange-bg);
    border-color: var(--orange-ring);
    color: var(--orange-lt);
}

.pgn-set a.pp-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 700;
    color: var(--white);
    cursor: default;
}

/* ===== FOOTER ===== */
.ext-links {
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

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

.ext-list dd { display: inline; }

.ext-list a {
    display: inline-block;
    font-size: .77rem;
    color: var(--white-soft);
    padding: 2px 9px;
    border-radius: var(--rr2);
    border: 1px solid var(--void-rim);
    background: var(--void-raised);
    text-decoration: none;
    transition: all .15s;
}

.ext-list a:hover { color: var(--orange-lt); border-color: var(--orange-ring); }

.base-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--white-faint);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.dtl-name-bar {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-left: 3px solid var(--orange);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
}

.dtl-name-bar a {
    color: var(--orange-lt);
    font-weight: 700;
    margin-right: 6px;
}

.dtl-specs {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--void-soft);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--white-dim);
}

.screen-grab {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.screen-grab picture,
.screen-grab img {
    width: 100%;
    height: auto;
    border-radius: var(--rr2);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.grab-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.grab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.grab-btn:hover {
    background: var(--orange-lt);
    color: var(--white);
    transform: translateY(-1px);
}

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

.client-tip a { color: var(--white-dim); font-weight: 600; }
.client-tip a:hover { color: var(--orange-lt); }

/* ===== SHARE BAR ===== */
.url-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--void-raised);
    border: 1px solid var(--void-rim);
    border-radius: var(--rr);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.url-bar .ub-lbl { font-size: .77rem; color: var(--white-soft); white-space: nowrap; }
.url-bar .ub-text { font-size: .79rem; color: var(--white-dim); flex: 1; min-width: 0; word-break: break-all; }

.url-bar .ub-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--void-card);
    color: var(--white);
    border: 1px solid var(--void-line);
    border-radius: var(--pill);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}

.url-bar .ub-copy:hover { background: var(--orange); border-color: var(--orange); }

/* ===== VISIBILITY ===== */
.only-pc { display: block; }
.only-sp { display: none; }

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

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

    .nav-logo-text { font-size: 1.06rem; }
    .addr-badge .ab-val { font-size: .92rem; }

    .cat-strip { align-items: stretch; }

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

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

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

    .query-bar form { flex-wrap: nowrap; gap: 4px; }

    .query-bar input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 9px;
    }

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

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

    .clip-cover { aspect-ratio: 600 / 350; }
    .clip-info h5 { font-size: .72rem; }
    .module { padding: 9px 9px 7px; }
    .grab-btn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .strip-label { font-size: 10px; }
    .strip-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .strip-label { font-size: 10px; }
    .strip-links a { font-size: 12px; }
    .query-bar button { padding: 0 5px; font-size: .68rem; }
}
