/* G8Stream - Light Gray & Vivid Orange Gaming Theme */

:root {
    --og: #f97316;
    --og2: #ea580c;
    --og3: #fb923c;
    --og-light: rgba(249,115,22,0.10);
    --og-pale: rgba(249,115,22,0.06);
    --og-glow: rgba(249,115,22,0.25);
    --bg: #f2f2f2;
    --bg-body: #ebebeb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #f8f8f8;
    --bg-header: #ffffff;
    --bd: #e0e0e0;
    --bd2: #d5d5d5;
    --bd3: rgba(0,0,0,0.07);
    --txt: #1a1a1a;
    --txt2: #444444;
    --txt3: #888888;
    --txt4: #bbbbbb;
    --white: #ffffff;
    --grad: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --grad-btn: linear-gradient(135deg, #f97316 0%, #dc4e0a 100%);
    --grad-hover: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --radius: 8px;
    --radius-sm: 5px;
    --radius-lg: 12px;
    --radius-pill: 6px;
    --tr: all 0.22s cubic-bezier(0.4,0,0.2,1);
    --sh: 0 1px 4px rgba(0,0,0,0.08);
    --sh-og: 0 3px 12px rgba(249,115,22,0.25);
    --sh-card: 0 1px 4px rgba(0,0,0,0.06);
    --sh-hover: 0 4px 14px rgba(0,0,0,0.12);
}

* { 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);
    color: var(--txt);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.g8-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--bd);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

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

.g8-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.g8-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--grad);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--sh-og);
}

.g8-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--txt);
    letter-spacing: -0.5px;
}

.g8-logo-text span {
    color: var(--og);
}

.g8-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--og);
    background: var(--og-light);
}

.g8-domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--og2);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.g8-domain-url {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: 0.2px;
}

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

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

/* ===== NAV PANEL ===== */
.g8-nav {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--bd);
    box-shadow: var(--sh-card);
}

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

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

.g8-zone-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: var(--grad);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.g8-nav-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 8px;
    align-items: center;
    background: var(--bg-white);
}

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

.g8-nav-links a:hover {
    background: var(--og);
    color: var(--white);
    border-color: var(--og2);
    box-shadow: var(--sh-og);
}

.g8-nav-links a.active {
    background: var(--grad-btn);
    color: var(--white);
    border-color: var(--og2);
    font-weight: 700;
    box-shadow: var(--sh-og);
}

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

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

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

.g8-search input[type="text"]:focus {
    border-color: var(--og);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--og-light);
}

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

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

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

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

.grid-item {
    padding: 4px 11px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    color: var(--txt2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--tr);
    border: 1px solid var(--bd);
    font-weight: 600;
}

.grid-item:hover {
    background: var(--og);
    color: var(--white);
    border-color: var(--og2);
}

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

.mhlleset-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bd);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.mhlleset-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--txt);
    letter-spacing: -0.2px;
}

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

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

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

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

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

.thumbnail2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--og);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

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

.thumbnail2:hover::before { transform: scaleX(1); }
.thumbnail2:hover::after { opacity: 1; }
.thumbnail2:hover img { transform: scale(1.06); }
.thumbnail2:hover {
    border-color: var(--og);
    box-shadow: var(--sh-hover);
}

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

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    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(--og2); }

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

.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--radius);
    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(--radius-sm);
    border: 1px solid var(--bd);
    display: block;
}

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

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

.g8-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--bd);
    border-top: 3px solid var(--og);
    box-shadow: var(--sh-card);
    font-weight: 600;
}

.g8-title-bar a {
    color: var(--og2);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
}

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

.down_btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--grad-btn);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

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

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

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

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--og2);
    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 16px;
    background: var(--grad-btn);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    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(--bd);
}

.a_page_info:hover {
    background: var(--og);
    border-color: var(--og2);
    color: var(--white);
}

.page_info_focus {
    background: var(--grad-btn);
    color: var(--white);
    border: 1px solid var(--og2);
    cursor: default;
}

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

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

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

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

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--bd);
    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(--og); }

/* ===== 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) {
    .g8-wrap { padding: 0 8px; }
    .g8-row { padding: 4px 0; }

    .g8-header { padding: 8px 0; }
    .g8-hd-inner { gap: 10px; }
    .g8-logo-icon { width: 27px; height: 27px; font-size: 15px; }
    .g8-logo-text { font-size: 17px; }
    .g8-domain-wrap { padding: 4px 11px; gap: 6px; }
    .g8-domain-label { font-size: 10px; }
    .g8-domain-url { font-size: 15px; }

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

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

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

    /* 8 items → 2 rows of 4 */
    .g8-nav-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: 8px; }
    .mhlleset-title { font-size: 15px; }

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

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

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

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

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

    .g8-info-box { padding: 13px; font-size: 14px; }
    .g8-title-bar { padding: 10px 12px; font-size: 14px; }
    .footer { padding: 14px 0; margin-top: 8px; }
}

/* ===== RESPONSIVE <=480px ===== */
@media (max-width: 480px) {
    .g8-logo-text { font-size: 15px; }
    .g8-logo-icon { width: 24px; height: 24px; font-size: 13px; }
    .g8-domain-label { font-size: 10px; }
    .g8-domain-url { font-size: 14px; }

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

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

    .g8-nav-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; }

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

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

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

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

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