/* Film & Media Website - Restaurant Guru Inspired Theme */
/* Dark charcoal bg + red accent + clean white cards */

:root {
    --red: #c0392b;
    --red-dk: #96281b;
    --red-lt: #e74c3c;
    --green: #27ae60;
    --green-dk: #1e8449;
    --text: #1a1a1a;
    --text-lt: #444444;
    --text-muted: #888888;
    --bd: #e0e0e0;
    --bd-lt: #f0f0f0;
    --shad-sm: rgba(0,0,0,0.07);
    --shad-md: rgba(0,0,0,0.13);
    --shad-lg: rgba(0,0,0,0.22);
    --bg: #f4f4f4;
    --card: #ffffff;
    --dark-bg: #1a1a1a;
    --dark-mid: #2c2c2c;
    --rd: 8px;
    --rd-sm: 5px;
    --tr: all 0.22s ease;
    --grad-red: linear-gradient(135deg, var(--red-dk) 0%, var(--red-lt) 100%);
    --grad-green: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 100%);
    --primary: var(--red);
}

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

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

/* ===== HEADER ===== */
.rg-header {
    background: var(--card);
    border-bottom: 3px solid var(--red);
    padding: 7px 0;
    box-shadow: 0 2px 8px var(--shad-sm);
}

.rg-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.rg-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.rg-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--grad-red);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    flex-shrink: 0;
}

.rg-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: 0.5px;
}

.rg-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff5f5;
    border: 1.5px solid var(--red);
    border-radius: 30px;
    padding: 4px 14px 4px 8px;
}

.rg-domain-tag {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: var(--red);
    border-radius: 20px;
    padding: 2px 7px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.rg-domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: var(--red-dk);
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', monospace;
}

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

/* alias */
.container { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.content { padding: 8px 0; }

.rg-block { padding: 8px 0; }

/* ===== CATEGORY NAV ===== */
.nav-container {
    background: var(--card);
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--bd);
    box-shadow: 0 1px 5px var(--shad-sm);
    margin-bottom: 8px;
}

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

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

.nav-row .nav-label {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    background: var(--dark-bg);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    border-right: 2px solid var(--red);
}

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

.nav-row .nav-links a {
    display: inline-block;
    color: var(--text-lt);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rd-sm);
    transition: var(--tr);
    background: var(--bg);
    border: 1px solid var(--bd);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 2px 8px rgba(192,57,43,0.25);
}

.nav-row .nav-links a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red-dk);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.seach {
    background: var(--card);
    border-radius: var(--rd);
    padding: 10px;
    border: 1px solid var(--bd);
    box-shadow: 0 1px 5px var(--shad-sm);
    margin-bottom: 8px;
}

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

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

.seach input[type="text"]:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

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

.seach button {
    padding: 9px 13px;
    border: none;
    border-radius: 30px;
    background: var(--grad-red);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:hover { opacity: 0.86; box-shadow: 0 4px 12px rgba(192,57,43,0.35); }

/* ===== HOT TAGS ===== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--card);
    border-radius: var(--rd);
    border: 1px solid var(--bd);
    box-shadow: 0 1px 4px var(--shad-sm);
    margin-bottom: 8px;
}

.grid-item {
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 20px;
    color: var(--text-lt);
    text-decoration: none;
    font-size: 12px;
    transition: var(--tr);
    border: 1px solid var(--bd);
}

.grid-item:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== SECTION CARDS ===== */
.mhlleset { margin-bottom: 10px; }

.mhlleset-main {
    background: var(--card);
    border-radius: var(--rd);
    padding: 14px 16px;
    border: 1px solid var(--bd);
    box-shadow: 0 1px 5px var(--shad-sm);
}

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

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

.mhlleset-title { font-size: 17px; font-weight: 800; margin: 0; color: var(--text); }
.mhlleset-title a { color: var(--text); text-decoration: none; transition: var(--tr); }
.mhlleset-title a:hover { color: var(--red); }

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

.thumbnail2-group li {
    position: relative;
    animation: rgFadeUp 0.45s ease backwards;
}

.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

@keyframes rgFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--bg);
    border: 1px solid var(--bd);
    box-shadow: 0 1px 4px var(--shad-sm);
    transition: var(--tr);
}

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

.thumbnail2:hover {
    box-shadow: 0 5px 16px var(--shad-md);
    border-color: var(--red);
}

.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(150,40,27,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail2:hover::after { opacity: 1; }

.video-info { padding: 6px 0 2px; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.video-info h5 a { color: var(--text); 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(--red); }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid { width: 100%; }
.torrent-capture-grid picture { display: block; width: 100%; }
.torrent-capture-grid img,
.torrent-capture-grid .img_item img { width: 100%; height: auto; border-radius: var(--rd-sm); border: 1px solid var(--bd); display: block; }
.torrent-capture-grid .img_item { width: 100%; }

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

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--dark-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    border: 2px solid var(--dark-bg);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(192,57,43,0.35);
    transform: translateY(-1px);
}

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

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

.share-label {
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    background: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 10px;
}

.share-url {
    font-size: 12px;
    color: var(--text-lt);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--dark-bg);
    color: #fff;
    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;
}

.share-copy-btn:hover { background: var(--red); box-shadow: 0 4px 12px rgba(192,57,43,0.35); }
.share-icon { font-size: 15px; }

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

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

.a_page_info { background: var(--card); color: var(--text); border: 1px solid var(--bd); }
.a_page_info:hover { background: var(--red); border-color: var(--red); color: #fff; }
.page_info_focus { background: var(--dark-bg); color: #fff; border: none; cursor: default; }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 { padding: 10px; background: var(--card); border-radius: var(--rd); border: 1px solid var(--bd); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 4px; }
.txtguanggao2 a { color: var(--text-lt); text-decoration: none; transition: var(--tr); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--red); }

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

.footer p { margin: 5px 0; color: #aaa; font-size: 12px; }
.footer a { color: #aaa; text-decoration: none; transition: var(--tr); }
.footer a:hover { color: var(--red-lt); }
.copyright p { color: #aaa; font-size: 12px; }

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

/* ===== MISC ===== */
.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--bg); }
.share-box { background: var(--card); border-radius: var(--rd); padding: 10px; margin: 10px 0; border: 1px solid var(--bd); }
.share-box span { color: var(--text-muted); font-size: 12px; word-break: break-all; }
.share-box a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rg-wrap { padding: 0 8px; }
    .container { padding: 0 8px; }
    .content { padding: 6px 0; }
    .rg-block { padding: 6px 0; }

    .rg-header { padding: 5px 0; }
    .rg-brand-row { gap: 10px; }
    .rg-site-name { font-size: 19px; }
    .rg-logo-icon { width: 25px; height: 25px; font-size: 13px; }
    .rg-domain-pill { padding: 3px 10px 3px 6px; gap: 5px; }
    .rg-domain-tag { font-size: 9px; padding: 1px 5px; }
    .rg-domain-addr { font-size: 14px; }

    /* Mobile nav: label 15%, links 85%, 4 per row */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
        letter-spacing: 0;
    }

    .nav-row .nav-links {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 6px 4px;
    }

    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Film grid: MUST be 2 per row on mobile */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    /* Search: all on one line, no wrap */
    .seach { padding: 8px; margin-bottom: 6px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 50px; padding: 8px 10px; font-size: 12px; }
    .seach button { padding: 8px 9px; font-size: 11px; }

    .mhlleset { margin-bottom: 8px; }
    .mhlleset-title { font-size: 15px; }
    .mhlleset-main { padding: 10px 12px; }

    .grid-container { padding: 8px 10px; gap: 5px; margin-bottom: 6px; }
    .grid-item { padding: 3px 10px; font-size: 11px; }

    .nav-container { margin-bottom: 6px; }

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

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

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

    .video-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }
    .footer { padding: 14px 0; margin-top: 10px; }

    .hide_mobile { display: none !important; }
}

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

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

    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
    }

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

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

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

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

    .video-container { height: 56.25vw; max-height: 260px; }
}

/* Large mobile: slightly bigger nav text */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-row .nav-links a { font-size: 13px; }
}
