/* Film Media Website - CleanBrowsing Inspired Theme */
/* Light mint-gray bg · Orange accent · White cards · Bold dark headings */

:root {
    --or: #c2540a;
    --or-lt: #e06420;
    --or-dk: #9a3e06;
    --or-pale: #fdf0e8;
    --or-soft: #fef6f0;
    --text: #1a1a1a;
    --text-lt: #2d2d2d;
    --text-md: #555555;
    --text-muted: #999999;
    --bd: #e4e8ea;
    --bd-lt: #f0f3f4;
    --bg: #f0f4f5;
    --card: #ffffff;
    --card-alt: #f8fafb;
    --shad-sm: rgba(0,0,0,0.06);
    --shad-md: rgba(0,0,0,0.11);
    --shad-lg: rgba(0,0,0,0.18);
    --rd: 8px;
    --rd-sm: 5px;
    --tr: all 0.2s ease;
    --grad-or: linear-gradient(135deg, var(--or-dk) 0%, var(--or-lt) 100%);
    --grad-or2: linear-gradient(90deg, var(--or) 0%, var(--or-lt) 100%);
    --primary: var(--or);
}

* { 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 ===== */
.cb-header {
    background: var(--card);
    border-bottom: 1px solid var(--bd);
    padding: 8px 0;
    box-shadow: 0 1px 6px var(--shad-sm);
}

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

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

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

.cb-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--grad-or);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}

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

.cb-domain-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--or-soft);
    border: 1.5px solid #f0c8a0;
    border-radius: var(--rd);
    padding: 5px 14px 5px 10px;
}

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

.cb-domain-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--or-dk);
    letter-spacing: 0.3px;
    font-family: 'Courier New', 'Consolas', monospace;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.content { padding: 7px 0; }
.cb-blk { padding: 7px 0; }

/* ===== CATEGORY NAV ===== */
.nav-container {
    background: var(--card);
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--bd);
    box-shadow: 0 2px 8px 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: 12px;
    color: #fff;
    background: var(--grad-or);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

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

.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(--card-alt);
    border: 1px solid var(--bd);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--grad-or);
    color: #fff;
    border-color: var(--or);
    box-shadow: 0 2px 8px rgba(194,84,10,0.25);
}

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

/* ===== SEARCH ===== */
.seach {
    background: var(--card);
    border-radius: var(--rd);
    padding: 10px;
    border: 1px solid var(--bd);
    box-shadow: 0 2px 8px 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 16px;
    border: 1.5px solid var(--bd);
    border-radius: var(--rd);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: var(--tr);
}

.seach input[type="text"]:focus {
    border-color: var(--or);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(194,84,10,0.1);
}

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

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

.seach button:hover {
    opacity: 0.88;
    box-shadow: 0 4px 12px rgba(194,84,10,0.3);
    transform: translateY(-1px);
}

/* ===== 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 2px 8px var(--shad-sm);
    margin-bottom: 8px;
}

.grid-item {
    padding: 4px 13px;
    background: var(--or-soft);
    border-radius: var(--rd-sm);
    color: var(--or-dk);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--tr);
    border: 1px solid #f0c8a0;
}

.grid-item:hover {
    background: var(--grad-or);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(194,84,10,0.2);
}

/* ===== 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 2px 10px 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: 48px;
    height: 2px;
    background: var(--grad-or);
    border-radius: 2px;
}

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

/* ===== 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: cbFadeUp 0.4s 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 cbFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--card-alt);
    border: 1px solid var(--bd);
    box-shadow: 0 2px 8px 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 6px 20px var(--shad-md);
    border-color: var(--or);
    transform: translateY(-2px);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(194,84,10,0.55) 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-lt); 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(--or); }

/* ===== 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 6px 24px var(--shad-lg);
    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-alt);
    border-radius: var(--rd);
    margin: 10px 0;
    border: 1px solid var(--bd);
    box-shadow: 0 2px 8px var(--shad-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--grad-or);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rd);
    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 3px 10px rgba(194,84,10,0.25);
}

.down_btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(194,84,10,0.35);
}

/* ===== 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 2px 8px var(--shad-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--rd-sm);
    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(--grad-or);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: var(--rd-sm);
}

.share-url {
    font-size: 12px;
    color: var(--text-md);
    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(--grad-or);
    color: #fff;
    border: none;
    border-radius: var(--rd);
    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 3px 10px rgba(194,84,10,0.2);
}

.share-copy-btn:hover { opacity: 0.86; transform: translateY(-1px); }
.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: var(--rd-sm);
    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(--grad-or); color: #fff; border-color: transparent; }
.page_info_focus { background: var(--grad-or); 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(--or-dk); text-decoration: none; transition: var(--tr); font-size: 13px; font-weight: 500; }
.txtguanggao2 a:hover { color: var(--or-lt); }

/* ===== FOOTER ===== */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--or);
    margin-top: 14px;
    background: var(--card);
}

.footer p { margin: 5px 0; color: var(--text-muted); font-size: 12px; }
.footer a { color: var(--text-muted); text-decoration: none; transition: var(--tr); }
.footer a:hover { color: var(--or); }
.copyright p { color: var(--text-muted); 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(--card-alt); }

.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(--or); text-decoration: none; font-weight: 600; }

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

    .cb-header { padding: 6px 0; }
    .cb-brand-row { gap: 10px; }
    .cb-logo-icon { width: 27px; height: 27px; font-size: 13px; }
    .cb-site-name { font-size: 18px; }
    .cb-domain-strip { padding: 3px 10px 3px 7px; gap: 6px; }
    .cb-domain-tag { font-size: 9px; padding: 1px 5px; }
    .cb-domain-val { font-size: 14px; }

    /* Mobile nav: label 15%, links 85%, 4 per row in 2 rows */
    .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 columns on mobile */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    /* Search: all on one line, no wrapping */
    .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 16px; 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) {
    .cb-site-name { font-size: 16px; }
    .cb-domain-val { 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 link font */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-row .nav-links a { font-size: 13px; }
}
