/* SunStream - Warm Cream & Golden Yellow Theme */

:root {
    --ylw: #ffcc00;
    --ylw2: #f5a623;
    --ylw3: #ffe066;
    --ylw-glow: rgba(255,204,0,0.28);
    --bg-root: #f5f0e8;
    --bg-body: #ede8de;
    --bg-white: #ffffff;
    --bg-card: #fdfaf4;
    --bg-cream: #faf6ee;
    --bg-topbar: #ffffff;
    --bd: rgba(245,166,35,0.22);
    --bd2: rgba(0,0,0,0.08);
    --bd3: #e8e0d0;
    --txt: #2c2c2c;
    --txt2: #555555;
    --txt3: #999999;
    --txt4: #bbbbbb;
    --white: #ffffff;
    --grad: linear-gradient(135deg, #ffcc00 0%, #f5a623 100%);
    --grad-btn: linear-gradient(135deg, #ffcc00 0%, #f0a000 100%);
    --grad-hover: linear-gradient(135deg, #ffe066 0%, #ffcc00 100%);
    --rd: 10px;
    --rd-sm: 6px;
    --rd-lg: 16px;
    --tr: all 0.24s cubic-bezier(0.4,0,0.2,1);
    --sh: 0 2px 10px rgba(0,0,0,0.08);
    --sh-ylw: 0 4px 14px rgba(245,166,35,0.3);
    --sh-card: 0 2px 8px rgba(0,0,0,0.06);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: var(--bg-root);
    color: var(--txt);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.site-topbar {
    background: var(--bg-topbar);
    border-bottom: 3px solid var(--ylw);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--grad);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-wordmark {
    font-size: 24px;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: 0.3px;
}

.logo-wordmark em {
    color: var(--ylw2);
    font-style: normal;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 16px;
    border-radius: 30px;
    border: 1.5px solid var(--ylw2);
    background: rgba(255,204,0,0.08);
}

.dp-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--ylw2);
    white-space: nowrap;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.dp-addr {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.main-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.row-block { padding: 7px 0; }

/* ===== NAVIGATION ===== */
.nav-panel {
    background: var(--bg-white);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
}

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

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

.zone-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--ylw2);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--bd2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: rgba(255,204,0,0.06);
}

.zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 8px;
    align-items: center;
}

.zone-links a {
    display: inline-block;
    color: var(--txt2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rd-sm);
    transition: var(--tr);
    background: var(--bg-cream);
    border: 1px solid var(--bd3);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.zone-links a:hover {
    background: var(--ylw);
    color: var(--txt);
    border-color: var(--ylw2);
    box-shadow: var(--sh-ylw);
    font-weight: 600;
}

.zone-links a.active {
    background: var(--grad-btn);
    color: var(--txt);
    border-color: var(--ylw2);
    font-weight: 700;
    box-shadow: var(--sh-ylw);
}

/* ===== SEARCH ===== */
.search-bar {
    background: var(--bg-white);
    border-radius: var(--rd);
    padding: 11px;
    margin-bottom: 7px;
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
}

.search-bar form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1.5px solid var(--bd3);
    border-radius: var(--rd-sm);
    background: var(--bg-cream);
    color: var(--txt);
    font-size: 14px;
    transition: var(--tr);
    outline: none;
}

.search-bar input[type="text"]:focus {
    border-color: var(--ylw2);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,204,0,0.15);
}

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

.search-bar button {
    padding: 10px 13px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grad-btn);
    color: var(--txt);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-bar button:hover {
    background: var(--grad-hover);
    box-shadow: var(--sh-ylw);
}

/* ===== TAG CLOUDS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin-bottom: 7px;
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
}

.grid-item {
    padding: 5px 12px;
    background: var(--bg-cream);
    border-radius: 18px;
    color: var(--txt2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--tr);
    border: 1px solid var(--bd3);
}

.grid-item:hover {
    background: var(--ylw);
    color: var(--txt);
    border-color: var(--ylw2);
    font-weight: 600;
}

/* ===== SECTION HEADINGS ===== */
.mhlleset { margin-bottom: 14px; }

.mhlleset-heading {
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--bd3);
    position: relative;
}

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--txt);
}

.mhlleset-title a {
    color: var(--txt);
    text-decoration: none;
    transition: var(--tr);
}

.mhlleset-title a:hover { color: var(--ylw2); }
.mhlleset-main { width: 100%; }

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 60 / 35;
    background: var(--bg-cream);
    border: 1px solid var(--bd3);
    transition: var(--tr);
    box-shadow: var(--sh-card);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,44,44,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.26s;
    z-index: 1;
}

.thumbnail2:hover::after { opacity: 1; }
.thumbnail2:hover img { transform: scale(1.06); }
.thumbnail2:hover {
    border-color: var(--ylw2);
    box-shadow: 0 4px 16px var(--ylw-glow);
}

.video-info { padding: 7px 0 3px; }

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.video-info h5 a {
    color: var(--txt2);
    text-decoration: none;
    transition: var(--tr);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h5 a:hover { color: var(--ylw2); }

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--sh);
}

.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: var(--sh);
    position: relative;
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== TORRENT PREVIEW ===== */
.torrent-capture-grid { }

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--bd3);
    display: block;
}

.torrent-capture-grid .img_item { width: 100%; }

/* ===== INFO BLOCK ===== */
.entry-info-box {
    font-size: 15px;
    line-height: 1.95;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin: 10px 0;
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
    color: var(--txt);
}

.entry-header-bar {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--bd3);
    border-top: 3px solid var(--ylw);
    box-shadow: var(--sh-card);
}

.entry-header-bar a {
    color: var(--ylw2);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== ACTION BUTTONS ===== */
.download {
    text-align: center;
    padding: 14px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin: 12px 0;
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 11px 20px;
    background: var(--grad-btn);
    color: var(--txt);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(245,166,35,0.25);
}

.down_btn:hover {
    background: var(--grad-hover);
    box-shadow: var(--sh-ylw);
    transform: translateY(-1px);
}

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

.share-url-display {
    background: var(--bg-cream);
    border: 1px solid var(--bd3);
    border-radius: var(--rd-sm);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--ylw2);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--grad-btn);
    color: var(--txt);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245,166,35,0.2);
}

.share-copy-btn:hover {
    background: var(--grad-hover);
    box-shadow: var(--sh-ylw);
}

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--tr);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--bg-white);
    color: var(--txt2);
    border: 1px solid var(--bd3);
}

.a_page_info:hover {
    background: var(--ylw);
    border-color: var(--ylw2);
    color: var(--txt);
    font-weight: 700;
}

.page_info_focus {
    background: var(--grad-btn);
    color: var(--txt);
    border: 1px solid var(--ylw2);
    cursor: default;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--ylw);
    margin-top: 14px;
    background: var(--bg-white);
}

.footer p {
    margin: 6px 0;
    color: var(--txt3);
    font-size: 13px;
}

.footer a {
    color: var(--txt3);
    text-decoration: none;
    transition: var(--tr);
}

.footer a:hover { color: var(--ylw2); }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 11px;
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--bd3);
    box-shadow: var(--sh-card);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 4px; }

.txtguanggao2 a {
    color: var(--txt3);
    text-decoration: none;
    font-size: 13px;
    transition: var(--tr);
}

.txtguanggao2 a:hover { color: var(--ylw2); }

/* ===== HIDE UTILS ===== */
.hide_mobile { display: block; }
.hide_pc { display: block; }

@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }

/* ===== RESPONSIVE 481~768px ===== */
@media (max-width: 768px) {
    .main-wrap { padding: 0 8px; }
    .row-block { padding: 4px 0; }

    .site-topbar { padding: 8px 0; }
    .topbar-inner { gap: 10px; }
    .logo-wordmark { font-size: 18px; }
    .logo-icon { width: 26px; height: 26px; font-size: 15px; }
    .domain-pill { padding: 4px 12px; }
    .dp-tag { font-size: 10px; }
    .dp-addr { font-size: 15px; }

    /* nav: label 15%, links 85% */
    .nav-line { display: flex; align-items: stretch; }

    .zone-badge {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }

    .zone-links {
        width: 85%;
        font-size: 13px;
        gap: 4px;
        padding: 7px 4px;
        display: flex;
        flex-wrap: wrap;
    }

    /* 8 items → 2 rows of 4 */
    .zone-links a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        text-align: center;
    }

    /* film grid: 2 cols */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 9px; }
    .mhlleset-title { font-size: 15px; }

    .video-container {
        height: 56.25vw;
        max-height: 360px;
        margin-bottom: 10px;
    }

    /* search - single row no wrap */
    .search-bar { padding: 9px; }
    .search-bar form { flex-wrap: nowrap; gap: 5px; }
    .search-bar input[type="text"] {
        min-width: 0;
        padding: 9px 10px;
        font-size: 13px;
    }
    .search-bar button {
        padding: 9px 9px;
        font-size: 12px;
    }

    .grid-container { padding: 9px; gap: 5px; }
    .grid-item { padding: 4px 10px; font-size: 12px; }

    .download { gap: 7px; padding: 10px 8px; }
    .down_btn { padding: 9px 14px; font-size: 13px; }

    .share-section {
        padding: 9px;
        margin: 9px 0;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .share-url-display { padding: 8px 10px; min-width: 0; flex: 1; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 11px; font-size: 11px; }

    .page_info_div { padding: 10px 0; gap: 4px; }
    .a_page_info, .page_info_focus {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .entry-info-box { padding: 13px; font-size: 14px; }
    .entry-header-bar { padding: 11px 13px; font-size: 14px; }
    .footer { padding: 15px 0; margin-top: 10px; }
}

/* ===== RESPONSIVE <=480px ===== */
@media (max-width: 480px) {
    .logo-wordmark { font-size: 16px; }
    .logo-icon { width: 22px; height: 22px; font-size: 13px; }
    .dp-tag { font-size: 10px; }
    .dp-addr { font-size: 14px; }

    .zone-badge {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .zone-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .zone-links a {
        font-size: 12px;
        width: calc((100% - 9px) / 4);
        padding: 3px 1px;
    }

    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-info h5 { font-size: 12px; }

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

    .down_btn { padding: 8px 10px; font-size: 12px; }
    .download { gap: 5px; padding: 9px 5px; }

    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
    .share-icon { font-size: 13px; }
}

/* Loading placeholder */
img[data-original] { background: var(--bg-cream); }

/* Clearfix */
.clearfix::after { content: ""; display: table; clear: both; }
