/* Modern Platform Template — Lavender & Dark Navy & Amber */

:root {
    --ss-lavender:  #e8e4f5;
    --ss-lavender2: #d4cef0;
    --ss-navy:      #1e1b2e;
    --ss-navy2:     #2d2844;
    --ss-amber:     #f5a623;
    --ss-amber2:    #e8960f;
    --ss-white:     #ffffff;
    --ss-bg:        #ede9f8;
    --ss-surface:   #ffffff;
    --ss-border:    #d8d2ee;
    --ss-text:      #1e1b2e;
    --ss-body:      #3d3660;
    --ss-muted:     #7a70a0;
    --ss-link:      #6c5ce7;
    --ss-grad:      linear-gradient(135deg, #1e1b2e 0%, #2d2844 100%);
    --ss-grad-am:   linear-gradient(135deg, #f5a623 0%, #e8960f 100%);
    --sd-xs: 0 1px 4px rgba(30,27,46,0.07);
    --sd-sm: 0 3px 10px rgba(30,27,46,0.10);
    --sd-md: 0 6px 20px rgba(30,27,46,0.14);
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --ease: all 0.22s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--ss-bg);
    color: var(--ss-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── TOPBAR ─────────────────────────────── */
.sitetop {
    background: var(--ss-white);
    border-bottom: 2px solid var(--ss-border);
    padding: 9px 0;
    box-shadow: var(--sd-xs);
}

.sitetop-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

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

.sitetop-name {
    font-size: 25px;
    font-weight: 900;
    color: var(--ss-navy);
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    line-height: 1;
}

.sitetop-domain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ss-grad);
    border-radius: var(--r-lg);
    padding: 5px 16px;
}

.sitetop-domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sitetop-domain-url {
    font-size: 17px;
    font-weight: 800;
    color: var(--ss-amber);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── CONTAINER ───────────────────────────── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content { padding: 8px 0; }

/* ── NAVIGATION ──────────────────────────── */
.catpanel {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--sd-xs);
}

.catpanel-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--ss-border);
}

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

.catpanel-zone {
    width: 10%;
    background: var(--ss-grad);
    color: var(--ss-amber);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 3px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.3;
}

.catpanel-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
}

.catpanel-links a {
    display: inline-block;
    color: var(--ss-body);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--r-xs);
    border: 1px solid var(--ss-border);
    background: var(--ss-lavender);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    transition: var(--ease);
}

.catpanel-links a:hover {
    background: var(--ss-navy);
    color: var(--ss-amber);
    border-color: var(--ss-navy);
}

.catpanel-links a.active {
    background: var(--ss-amber);
    color: var(--ss-navy);
    border-color: var(--ss-amber);
    font-weight: 700;
}

/* ── SEARCH ──────────────────────────────── */
.qbar {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 8px;
    box-shadow: var(--sd-xs);
}

.qbar form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.qbar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--ss-border);
    border-radius: var(--r-lg);
    background: var(--ss-lavender);
    color: var(--ss-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.qbar input[type="text"]:focus {
    border-color: var(--ss-link);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

.qbar input[type="text"]::placeholder { color: var(--ss-muted); }

.qbar button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--r-lg);
    background: var(--ss-grad);
    color: var(--ss-amber);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.qbar button:hover {
    background: var(--ss-amber);
    color: var(--ss-navy);
    box-shadow: var(--sd-sm);
}

/* ── HOT TAGS ────────────────────────────── */
.kwblock {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 8px;
    box-shadow: var(--sd-xs);
}

.kwblock h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--ss-navy);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--ss-amber);
    display: inline-block;
}

.kwlist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kwlist-tag {
    padding: 3px 12px;
    background: transparent;
    border-radius: 20px;
    color: var(--ss-body);
    text-decoration: none;
    font-size: 12px;
    border: 1.5px solid var(--ss-border);
    font-weight: 500;
    transition: var(--ease);
}

.kwlist-tag:hover {
    background: var(--ss-navy);
    color: var(--ss-amber);
    border-color: var(--ss-navy);
}

/* ── SECTION HEADING ─────────────────────── */
.pblock { margin-bottom: 14px; }

.pblock-hd {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--ss-border);
    position: relative;
}

.pblock-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--ss-amber);
}

.pblock-hd h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--ss-navy);
    margin: 0;
}

.pblock-hd h3 a { color: var(--ss-navy); text-decoration: none; transition: var(--ease); }
.pblock-hd h3 a:hover { color: var(--ss-link); }

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

.pgrid li { position: relative; }

.pgrid-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--ss-lavender2);
    border: 1px solid var(--ss-border);
    box-shadow: var(--sd-xs);
    transition: var(--ease);
}

.pgrid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.pgrid-cover:hover { border-color: var(--ss-amber); box-shadow: var(--sd-md); transform: translateY(-2px); }
.pgrid-cover:hover img { transform: scale(1.05); }

.pgrid-cover::after {
    content: '▶';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: var(--ss-amber);
    color: var(--ss-navy);
    border-radius: 50%;
    font-size: 10px;
    line-height: 30px;
    text-align: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
    font-weight: 700;
}

.pgrid-cover:hover::after { opacity: 1; }

.pgrid-caption { padding: 5px 1px 0; }

.pgrid-caption h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pgrid-caption h5 a { color: var(--ss-body); text-decoration: none; transition: var(--ease); }
.pgrid-caption h5 a:hover { color: var(--ss-link); }

/* ── DETAIL TITLE ────────────────────────── */
.itm-headline {
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--ss-surface);
    border-radius: var(--r-md);
    border-left: 4px solid var(--ss-amber);
    box-shadow: var(--sd-xs);
    line-height: 1.7;
}

.itm-headline a { color: var(--ss-link); text-decoration: none; font-weight: 700; margin-right: 6px; }

.itm-metabox {
    font-size: 14px;
    line-height: 2;
    padding: 18px 22px;
    background: var(--ss-surface);
    border-radius: var(--r-md);
    margin: 8px 0;
    box-shadow: var(--sd-xs);
    border: 1px solid var(--ss-border);
}

.snapbox { margin-top: 8px; }
.snapbox picture { display: block; width: 100%; }
.snapbox picture img, .snapbox img { width: 100%; height: auto; display: block; border-radius: var(--r-xs); }

/* ── DOWNLOAD BUTTONS ────────────────────── */
.btnrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin: 8px 0;
    flex-wrap: wrap;
}

.actbtn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--ss-grad);
    color: var(--ss-amber);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ease);
    box-shadow: var(--sd-sm);
}

.actbtn:hover { background: var(--ss-amber); color: var(--ss-navy); box-shadow: var(--sd-md); transform: translateY(-1px); }

.clnt-pc, .clnt-mob { text-align: center; padding: 9px 0; }
.clnt-pc a, .clnt-mob a { color: var(--ss-link); text-decoration: none; font-weight: 600; font-size: 13px; }

/* ── SHARE BOX ───────────────────────────── */
.urlshare {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin: 10px 0;
    box-shadow: var(--sd-xs);
    flex-wrap: nowrap;
}

.urlshare-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    background: var(--ss-lavender);
    border: 1px solid var(--ss-border);
    border-radius: var(--r-xs);
    padding: 7px 10px;
}

.urlshare-lbl { font-size: 11px; font-weight: 800; color: var(--ss-link); white-space: nowrap; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.urlshare-val { font-family: 'Courier New', monospace; font-size: 11px; color: var(--ss-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.urlshare-copybtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--ss-grad);
    color: var(--ss-amber);
    border: none;
    border-radius: var(--r-lg);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.urlshare-copybtn:hover { background: var(--ss-amber); color: var(--ss-navy); }
.urlshare-ico { font-size: 14px; }

/* ── PAGINATION ──────────────────────────── */
.pgnav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 0;
}

.pgitem { display: inline-block; padding: 6px 12px; border-radius: var(--r-lg); font-size: 13px; text-decoration: none; transition: var(--ease); min-width: 34px; text-align: center; }
.a_page_info { background: var(--ss-surface); color: var(--ss-body); border: 1.5px solid var(--ss-border); }
.a_page_info:hover { background: var(--ss-navy); border-color: var(--ss-navy); color: var(--ss-amber); }
.page_info_focus { background: var(--ss-grad); color: var(--ss-amber); border: 1.5px solid var(--ss-navy); cursor: default; font-weight: 700; }

/* ── FRIEND LINKS ────────────────────────── */
.flink-wrap { margin-bottom: 8px; }
.flink-hd { font-size: 14px; font-weight: 800; color: var(--ss-navy); margin-bottom: 6px; padding-bottom: 5px; border-bottom: 2px solid var(--ss-amber); display: inline-block; }
.flink-body { padding: 9px 12px; background: var(--ss-surface); border-radius: var(--r-sm); border: 1px solid var(--ss-border); box-shadow: var(--sd-xs); }
.flink-body dl { margin: 0; }
.flink-body dd { display: inline-block; margin: 3px 4px; }
.flink-body a { color: var(--ss-link); text-decoration: none; font-size: 13px; transition: var(--ease); }
.flink-body a:hover { color: var(--ss-navy); }

/* ── FOOTER ──────────────────────────────── */
.pgfooter { text-align: center; padding: 18px 0; border-top: 2px solid var(--ss-border); margin-top: 8px; background: var(--ss-surface); }
.pgfooter p { color: var(--ss-muted); font-size: 12px; margin: 4px 0; }
.pgfooter a { color: var(--ss-link); text-decoration: none; }
.pgfooter a:hover { color: var(--ss-navy); }

/* ── UTILITIES ───────────────────────────── */
.clearfix::after { content:""; display:table; clear:both; }
.hide_mobile { display: block; }
.hide_pc     { display: block; }
img[data-original] { background: var(--ss-lavender); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .content   { padding: 5px 0; }
    .hide_mobile { display: none !important; }

    .sitetop-name { font-size: 19px; }
    .sitetop-domain-url { font-size: 14px; }
    .sitetop-domain-tag { font-size: 9px; }

    /* Nav — zone 15%, links 85%, 4 per row */
    .catpanel-zone { width: 15%; font-size: 10px; padding: 6px 2px; }
    .catpanel-links { width: 85%; gap: 4px; padding: 6px 5px; }
    .catpanel-links a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search — nowrap */
    .qbar form { flex-wrap: nowrap; gap: 5px; }
    .qbar input[type="text"] { min-width: 0; padding: 7px 9px; font-size: 13px; }
    .qbar button { padding: 7px 9px; font-size: 12px; flex-shrink: 0; }

    /* Film — 2 per row */
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pgrid-caption h5 { font-size: 12px; }

    .pblock-hd h3 { font-size: 15px; }
    .pblock { margin-bottom: 10px; }
    .kwlist-tag { font-size: 12px; padding: 3px 9px; }
    .actbtn { padding: 9px 14px; font-size: 13px; }

    .urlshare { flex-wrap: nowrap; padding: 7px 9px; gap: 6px; }
    .urlshare-lbl { font-size: 10px; }
    .urlshare-val { font-size: 10px; }
    .urlshare-copybtn { padding: 7px 10px; font-size: 11px; }

    .pgitem, .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }
}

@media (max-width: 480px) {
    .sitetop-name { font-size: 17px; }
    .sitetop-domain-url { font-size: 13px; }

    .catpanel-zone { width: 15%; font-size: 10px; padding: 5px 2px; }
    .catpanel-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .catpanel-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .qbar input[type="text"] { padding: 6px 8px; font-size: 12px; }
    .qbar button { padding: 6px 7px; font-size: 11px; }

    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .pgrid-caption h5 { font-size: 12px; }
    .actbtn { padding: 8px 11px; font-size: 12px; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .pgrid { grid-template-columns: repeat(4, 1fr); }
    .catpanel-links a { width: calc((100% - 35px) / 8); }
}
