/* Forest & Lime — Video Site Template */

:root {
    --g-dark:   #0f3028;
    --g-mid:    #1a4a3a;
    --g-light:  #245c49;
    --lime:     #c8f135;
    --lime-dk:  #a8d120;
    --navy:     #132640;
    --white:    #ffffff;
    --off-wh:   #f4f6f3;
    --panel:    #eef1ec;
    --border:   #cfd9ce;
    --border2:  #b5c8b5;
    --txt-dark: #132640;
    --txt-body: #2a3d2a;
    --txt-mute: #567060;
    --txt-dim:  #88a090;
    --grd-main: linear-gradient(135deg, var(--g-mid) 0%, var(--g-dark) 100%);
    --shadow-sm: 0 1px 5px rgba(15,48,40,0.09);
    --shadow-md: 0 3px 12px rgba(15,48,40,0.14);
    --rd:    8px;
    --rd-sm: 5px;
    --tr: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--off-wh);
    color: var(--txt-body);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== SITE HEADER ===== */
.site-hd {
    background: var(--grd-main);
    padding: 10px 0;
}

.site-hd-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.site-logo-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.site-title-txt {
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.site-logo-lnk:hover .site-title-txt {
    color: var(--lime);
}

.newest-addr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(200,241,53,0.15);
    border: 1.5px solid rgba(200,241,53,0.45);
    border-radius: 30px;
}

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

.addr-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.2px;
    font-style: normal;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content {
    padding: 7px 0;
}

/* ===== NAV ===== */
.nav-wrap {
    background: var(--white);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

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

.nav-zone-lbl {
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--g-mid);
}

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

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

.nav-zone-links a:hover {
    background: var(--g-mid);
    color: var(--white);
    border-color: var(--g-mid);
}

.nav-zone-links a.active {
    background: var(--g-mid);
    color: var(--white);
    border-color: var(--g-mid);
    font-weight: 600;
}

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

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

.srch-bar input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1.5px solid var(--border2);
    border-radius: var(--rd-sm);
    background: var(--off-wh);
    color: var(--txt-dark);
    font-size: 14px;
    transition: var(--tr);
    outline: none;
}

.srch-bar input[type="text"]:focus {
    border-color: var(--g-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,74,58,0.12);
}

.srch-bar input[type="text"]::placeholder {
    color: var(--txt-dim);
}

.srch-bar button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grd-main);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
}

.srch-bar button:hover {
    background: var(--g-dark);
    box-shadow: var(--shadow-md);
}

/* ===== HOT TAGS ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 10px;
    background: var(--white);
    border-radius: var(--rd);
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tag-item {
    padding: 4px 12px;
    background: var(--panel);
    border-radius: 20px;
    color: var(--txt-mute);
    text-decoration: none;
    font-size: 12px;
    transition: var(--tr);
    border: 1px solid var(--border);
}

.tag-item:hover {
    background: var(--g-mid);
    color: var(--white);
    border-color: var(--g-mid);
}

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

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

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

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

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

.mhlleset-title a:hover {
    color: var(--g-mid);
}

.mhlleset-main {
    background: var(--white);
    border-radius: var(--rd);
    padding: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.thumbnail2-group li {
    animation: fiu 0.42s 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; }
.thumbnail2-group li:nth-child(9)  { animation-delay: 0.36s; }
.thumbnail2-group li:nth-child(10) { animation-delay: 0.40s; }
.thumbnail2-group li:nth-child(11) { animation-delay: 0.44s; }
.thumbnail2-group li:nth-child(12) { animation-delay: 0.48s; }

@keyframes fiu {
    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(--panel);
    border: 1px solid var(--border);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,48,40,0.72) 0%, transparent 52%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.thumbnail2:hover {
    box-shadow: 0 5px 18px rgba(15,48,40,0.22);
    border-color: var(--g-light);
}

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

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

.film-meta {
    padding: 6px 0 2px;
}

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

.film-meta h5 a {
    color: var(--txt-mute);
    text-decoration: none;
    transition: var(--tr);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover {
    color: var(--g-mid);
}

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 13px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
}

.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: 11px;
    box-shadow: var(--shadow-md);
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid {
    width: 100%;
    margin-top: 10px;
}

.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(--border);
    display: block;
}

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

/* ===== DOWNLOAD BTNS ===== */
.download {
    text-align: center;
    padding: 13px;
    background: var(--white);
    border-radius: var(--rd);
    margin: 11px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--grd-main);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.down_btn:hover {
    background: var(--g-dark);
    box-shadow: var(--shadow-md);
}

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

.share-url-display {
    background: var(--off-wh);
    border: 1px solid var(--border2);
    border-radius: var(--rd-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--txt-dim);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--grd-main);
    color: var(--white);
    border: none;
    border-radius: var(--rd-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(--g-dark);
    box-shadow: var(--shadow-md);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

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

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 13px 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(--white);
    color: var(--txt-body);
    border: 1px solid var(--border);
}

.a_page_info:hover {
    background: var(--g-mid);
    border-color: var(--g-mid);
    color: var(--white);
}

.page_info_focus {
    background: var(--grd-main);
    color: var(--white);
    border: 1px solid var(--g-dark);
    cursor: default;
}

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

.ft-wrap p {
    margin: 5px 0;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.ft-wrap a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--tr);
}

.ft-wrap a:hover {
    color: var(--lime);
}

/* ===== FRIEND LINKS ===== */
.flink-box {
    padding: 10px 12px;
    background: var(--white);
    border-radius: var(--rd);
    border: 1px solid var(--border);
}

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

.flink-box a {
    color: var(--txt-mute);
    text-decoration: none;
    transition: var(--tr);
    font-size: 13px;
}

.flink-box a:hover { color: var(--g-mid); }

/* ===== MHLLESET HEADING INSIDE MAIN ===== */
.mhlleset-main h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt-dark);
    margin-bottom: 7px;
}

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

.hide_mobile { display: block; }
.hide_pc     { display: block; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .content   { padding: 5px 0; }

    .site-title-txt { font-size: 20px; }
    .addr-val { font-size: 15px; }
    .addr-tag { font-size: 10px; }

    .nav-strip { display: flex; align-items: stretch; }

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

    .nav-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 4px;
        font-size: 14px;
    }

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

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

    .film-meta h5  { font-size: 12px; }
    .mhlleset      { margin-bottom: 9px; }
    .mhlleset-title { font-size: 16px; }
    .mhlleset-main { padding: 10px; }

    .srch-bar { padding: 9px; }
    .srch-bar input[type="text"] { min-width: 100px; font-size: 13px; }
    .srch-bar button { padding: 8px 10px; font-size: 12px; }

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

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

    .share-section  { padding: 9px 10px; gap: 7px; }
    .share-url-display { padding: 8px 10px; }
    .share-copy-btn { padding: 9px 12px; font-size: 12px; }

    .a_page_info,
    .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .site-title-txt { font-size: 18px; }
    .addr-val { font-size: 14px; }

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

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

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

    .thumbnail2-group { gap: 8px; }
    .film-meta h5  { font-size: 11px; }
    .mhlleset-title { font-size: 15px; }
    .mhlleset-main { padding: 8px; }

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

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

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

    .share-section  { padding: 8px; gap: 6px; }
    .share-url-display { padding: 7px 8px; }
    .share-label { font-size: 10px; }
    .share-url   { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
    .share-icon  { font-size: 13px; }

    .tag-item { padding: 4px 10px; font-size: 11px; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .thumbnail2-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

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