/* Modern Portal Theme — Dark Nav / Orange Accent */

:root {
    --orange: #ff6a00;
    --orange-dk: #e55e00;
    --orange-lt: #ff8c38;
    --orange-pale: #fff3eb;
    --nav-bg: #1f1f1f;
    --nav-text: #d0d0d0;
    --nav-active: #ff6a00;
    --white: #ffffff;
    --bg: #f4f5f7;
    --card: #ffffff;
    --border: #e8eaed;
    --border-lt: #f0f2f5;
    --text: #2c2c2c;
    --text-mid: #555555;
    --text-light: #999999;
    --text-faint: #cccccc;
    --blue: #1677ff;
    --grad: linear-gradient(135deg, #ff6a00 0%, #ff8c38 100%);
    --sh-sm: 0 1px 6px rgba(0,0,0,0.07);
    --sh-md: 0 4px 16px rgba(0,0,0,0.11);
    --sh-card: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-sm: 5px;
    --trans: all 0.2s ease;
    --max-w: 1060px;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.hd-bar {
    background: var(--nav-bg);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hd-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    padding: 12px 0;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    font-weight: 900;
    line-height: 1;
}

.brand-txt {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1;
    font-style: normal;
}

.dm-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,106,0,0.15);
    border: 1px solid rgba(255,106,0,0.4);
    border-radius: 20px;
    padding: 5px 14px;
    flex-shrink: 0;
}

.dm-pill-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange-lt);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dm-pill-url {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.pg-outer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 15px;
}

.pg-row { padding: 6px 0; }

/* ===== CATEGORY NAV ===== */
.nav-block {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--sh-card);
    border: 1px solid var(--border);
}

.nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-lt);
}

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

.nav-zone {
    font-weight: 700;
    font-size: 12px;
    color: var(--white);
    background: var(--nav-bg);
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 4px;
    flex-shrink: 0;
    white-space: normal;
    word-break: break-all;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.nav-cats {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    align-items: center;
}

.nav-cats a {
    display: inline-block;
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: var(--trans);
    text-align: center;
    white-space: nowrap;
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-cats a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.nav-cats a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.srch-block {
    background: var(--card);
    border-radius: var(--radius);
    padding: 11px 14px;
    margin-bottom: 8px;
    box-shadow: var(--sh-card);
    border: 1px solid var(--border);
}

.srch-block form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.srch-block input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--trans);
}

.srch-block input[type="text"]:focus {
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}

.srch-block input[type="text"]::placeholder { color: var(--text-faint); }

.srch-block button {
    padding: 9px 20px;
    background: var(--grad);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,106,0,0.3);
}

.srch-block button:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(255,106,0,0.4); }

/* ===== HOT TAGS ===== */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 14px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    box-shadow: var(--sh-card);
}

.tag-row a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--orange-pale);
    border: 1px solid rgba(255,106,0,0.25);
    border-radius: 14px;
    color: var(--orange);
    text-decoration: none;
    font-size: 12px;
    transition: var(--trans);
}

.tag-row a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ===== SECTION BLOCKS ===== */
.sec-wrap { margin-bottom: 12px; }

.sec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border-lt);
    position: relative;
}

.sec-top::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
}

.sec-top h3,
.sec-top h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.sec-top h3 a,
.sec-top h4 a { color: var(--text); text-decoration: none; transition: var(--trans); }
.sec-top h3 a:hover,
.sec-top h4 a:hover { color: var(--orange); }

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

.card-list li { position: relative; }

.vid-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--border-lt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--sh-card);
}

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

.vid-thumb:hover { box-shadow: var(--sh-md); }
.vid-thumb:hover img { transform: scale(1.06); }

.vid-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 28px;
    z-index: 2;
    transition: transform 0.22s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.vid-thumb:hover::before { transform: translate(-50%, -50%) scale(1); }

.vid-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.28s ease;
    border-radius: var(--radius);
}

.vid-thumb:hover::after { opacity: 1; }

.vid-cap { padding: 7px 0 0; }

.vid-cap h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}

.vid-cap h5 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--trans);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vid-cap h5 a:hover { color: var(--orange); }

/* ===== PAGINATION ===== */
.pg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.pg-btn, .pg-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    transition: var(--trans);
    border: 1px solid var(--border);
}

.pg-btn { background: var(--white); color: var(--text); }
.pg-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); box-shadow: 0 2px 8px rgba(255,106,0,0.25); }

.pg-cur {
    background: var(--grad);
    border-color: var(--orange-dk);
    color: var(--white);
    font-weight: 700;
    cursor: default;
    box-shadow: 0 2px 8px rgba(255,106,0,0.3);
}

/* ===== DETAIL TITLE ===== */
.dtl-strip {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    margin: 10px 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--sh-card);
}

.dtl-strip a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
}

/* ===== TORRENT INFO ===== */
.info-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 10px 0;
    color: var(--text);
    box-shadow: var(--sh-card);
}

.preview-holder {
    width: 100%;
    margin-top: 12px;
}

.preview-holder picture {
    display: block;
    width: 100%;
}

.preview-holder picture img,
.preview-holder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

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

.act-link {
    display: inline-block;
    padding: 11px 28px;
    background: var(--grad);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--trans);
    box-shadow: 0 2px 10px rgba(255,106,0,0.3);
    letter-spacing: 0.3px;
}

.act-link:hover { opacity: 0.9; box-shadow: 0 5px 16px rgba(255,106,0,0.4); }

/* ===== SHARE SECTION ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 10px 0;
    flex-wrap: nowrap;
    box-shadow: var(--sh-card);
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--bg);
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.share-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.share-url {
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--orange-pale);
    border: 1px solid rgba(255,106,0,0.3);
    border-radius: 20px;
    color: var(--orange);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.share-icon { font-size: 13px; }

/* ===== CLIENT DOWNLOAD ===== */
.client-note {
    text-align: center;
    padding: 12px;
}

.client-note a {
    color: var(--orange);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--trans);
}

.client-note a:hover { color: var(--orange-dk); }

/* ===== FRIEND LINKS ===== */
.flink-panel {
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--sh-card);
}

.flink-panel dl { margin: 0; }
.flink-panel dd { display: inline-block; margin: 3px 5px; }

.flink-panel a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
}

.flink-panel a:hover { color: var(--orange); }

/* ===== FOOTER ===== */
.pg-foot {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    background: var(--nav-bg);
}

.pg-foot p {
    margin: 5px 0;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    line-height: 1.7;
}

.pg-foot a { color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--trans); }
.pg-foot a:hover { color: var(--orange-lt); }

/* ===== UTILITY ===== */
.clearfix::after { content: ''; display: table; clear: both; }

.only-pc { display: block; }
.only-mb { display: block; }

img[data-original] { background: var(--border-lt); }

/* ===== RESPONSIVE max-width 768px ===== */
@media (max-width: 768px) {
    .pg-outer { padding: 0 8px; }
    .hd-bar { padding: 0; }
    .hd-inner { padding: 9px 0; gap: 12px; }
    .brand-icon-box { width: 26px; height: 26px; font-size: 14px; }
    .brand-txt { font-size: 18px; }
    .dm-pill { padding: 4px 11px; gap: 6px; }
    .dm-pill-tag { font-size: 10px; }
    .dm-pill-url { font-size: 15px; }
    .pg-row { padding: 4px 0; }

    /* Mobile nav: 15% zone + 85% links, 4 per row */
    .nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        word-break: keep-all;
        line-height: 1.2;
    }

    .nav-cats {
        width: 85%;
        gap: 3px;
        padding: 7px 5px;
    }

    .nav-cats a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        border-bottom-width: 2px;
    }

    .card-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .srch-block { padding: 8px 10px; }
    .srch-block input[type="text"] { font-size: 12px; padding: 7px 12px; min-width: 80px; }
    .srch-block button { padding: 7px 14px; font-size: 12px; }

    .sec-top h3, .sec-top h4 { font-size: 15px; }
    .vid-cap h5 { font-size: 12px; }

    .dtl-strip { font-size: 14px; padding: 12px 14px; }
    .info-box { padding: 13px 14px; font-size: 13px; }

    .action-row { gap: 8px; padding: 10px 6px; flex-wrap: nowrap; }
    .act-link { padding: 10px 16px; font-size: 13px; }

    .share-section { padding: 8px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }

    .pg-btn, .pg-cur { padding: 5px 10px; font-size: 12px; min-width: 32px; }

    .only-pc { display: none !important; }
}

/* ===== LARGE PHONE 481–768 ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-zone { font-size: 10px; }
    .nav-cats a { font-size: 14px; }
}

/* ===== SMALL PHONE max 480px ===== */
@media (max-width: 480px) {
    .brand-txt { font-size: 16px; }
    .dm-pill-url { font-size: 13px; }
    .nav-zone { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-cats { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-cats a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .card-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sec-top h3, .sec-top h4 { font-size: 14px; }
    .vid-cap h5 { font-size: 11px; }
    .act-link { padding: 9px 12px; font-size: 12px; }
}

@media (min-width: 769px) { .only-mb { display: none !important; } }
