/* Video CMS Template - Green Forest Theme */

:root {
    --clr-primary: #2d7a2d;
    --clr-primary-dark: #1e5c1e;
    --clr-primary-light: #3a9c3a;
    --clr-accent: #ff6b35;
    --clr-accent2: #ffc107;
    --clr-text: #1a1a1a;
    --clr-text-soft: #555;
    --clr-text-muted: #888;
    --clr-bg: #f4f6f4;
    --clr-bg-card: #ffffff;
    --clr-bg-nav: #2d7a2d;
    --clr-border: #dde8dd;
    --clr-shadow: rgba(45, 122, 45, 0.10);
    --clr-shadow-md: rgba(0,0,0,0.13);
    --clr-radius: 6px;
    --clr-radius-sm: 4px;
    --fx-transition: all 0.25s ease;
    --fx-gradient: linear-gradient(135deg, var(--clr-primary) 0%, #4caf50 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== TOP BRANDING ===================== */
.site-topbar {
    background: var(--clr-bg-card);
    border-bottom: 3px solid var(--clr-primary);
    padding: 10px 0;
}

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

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

.site-logo-link:hover .site-title-text {
    color: var(--clr-primary-dark);
}

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

.site-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf5ea;
    border: 1.5px solid var(--clr-primary);
    border-radius: 20px;
    padding: 5px 14px;
}

.site-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-primary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: var(--clr-text);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===================== MAIN NAV BAR ===================== */
.main-navbar {
    background: var(--clr-bg-nav);
}

/* ===================== WRAPPER ===================== */
.wrap-outer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.wrap-inner {
    padding: 10px 0;
}

/* ===================== CATEGORY NAV ROWS ===================== */
.catbar-block {
    background: var(--clr-bg-card);
    border-radius: var(--clr-radius);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

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

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

.catbar-zone-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--clr-bg-card);
    background: var(--clr-primary);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid #1e5c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
}

.catbar-links-area {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.catbar-links-area a {
    display: inline-block;
    color: var(--clr-text-soft);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--clr-radius-sm);
    transition: var(--fx-transition);
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.catbar-links-area a:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.catbar-links-area a.active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    font-weight: 600;
}

/* ===================== SEARCH ===================== */
.search-wrap {
    background: var(--clr-bg-card);
    border-radius: var(--clr-radius);
    padding: 11px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

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

.search-wrap input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 9px 13px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--clr-radius-sm);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--fx-transition);
    outline: none;
    font-family: inherit;
}

.search-wrap input[type="text"]:focus {
    border-color: var(--clr-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 122, 45, 0.12);
}

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

.search-wrap button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--clr-radius-sm);
    background: var(--fx-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--fx-transition);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.search-wrap button:hover {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    box-shadow: 0 3px 10px var(--clr-shadow);
}

/* ===================== HOT TAGS ===================== */
.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--clr-bg-card);
    border-radius: var(--clr-radius);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.tag-cloud-item {
    padding: 5px 12px;
    background: #eaf5ea;
    border-radius: 14px;
    color: var(--clr-primary-dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--fx-transition);
    border: 1px solid #c5e0c5;
}

.tag-cloud-item:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

/* ===================== SECTION BLOCKS ===================== */
.media-section {
    margin-bottom: 16px;
}

.media-section-body {
    /* intentional wrapper */
}

.media-sec-header {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
}

.media-sec-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--fx-gradient);
}

.media-sec-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--clr-text);
    letter-spacing: -0.2px;
}

.media-sec-title a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--fx-transition);
}

.media-sec-title a:hover {
    color: var(--clr-primary);
}

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

.card-grid li {
    position: relative;
}

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--clr-radius);
    /* 600:350 ratio */
    aspect-ratio: 600 / 350;
    background: #e8ede8;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

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

.card-thumb:hover {
    box-shadow: 0 5px 14px var(--clr-shadow-md);
}

.card-thumb:hover img {
    transform: scale(1.08);
}

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

.card-thumb:hover::after {
    opacity: 1;
}

/* Play icon overlay */
.card-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 38px;
    height: 38px;
    background: rgba(45, 122, 45, 0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 38px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.card-thumb:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-meta {
    padding: 7px 0 2px;
}

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

.card-meta h5 a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--fx-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta h5 a:hover {
    color: var(--clr-primary);
}

/* ===================== VIDEO PLAYER ===================== */
.player-box {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--clr-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--clr-shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--clr-radius);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 5px 20px var(--clr-shadow-md);
}

/* ===================== TORRENT CAPTURE GRID ===================== */
.capture-preview-wrap {
    /* single image container */
}

.capture-preview-wrap img,
.capture-preview-wrap .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--clr-radius-sm);
    border: 1px solid var(--clr-border);
    display: block;
}

.capture-preview-wrap .img_item {
    width: 100%;
}

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

.btn-dl {
    display: inline-block;
    padding: 10px 22px;
    background: var(--fx-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--clr-radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--fx-transition);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-dl:hover {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    box-shadow: 0 5px 14px var(--clr-shadow-md);
}

/* ===================== SHARE SECTION ===================== */
.share-section {
    background: var(--clr-bg-card);
    border-radius: var(--clr-radius);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 11px;
}

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

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

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

.share-copy-btn {
    padding: 10px 20px;
    background: var(--fx-gradient);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--clr-radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--fx-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    box-shadow: 0 5px 14px var(--clr-shadow-md);
}

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

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

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

.pg-link,
.pg-current {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--clr-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--fx-transition);
    min-width: 36px;
    text-align: center;
}

.pg-link {
    background: var(--clr-bg-card);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.pg-link:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
}

.pg-current {
    background: var(--fx-gradient);
    color: #fff;
    border: 1px solid var(--clr-primary);
    cursor: default;
}

/* Alias classes used in templates */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.a_page_info {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--clr-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--fx-transition);
    min-width: 36px;
    text-align: center;
    background: var(--clr-bg-card);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
}

.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--clr-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    background: var(--fx-gradient);
    color: #fff;
    border: 1px solid var(--clr-primary);
    cursor: default;
}

/* ===================== FRIENDLY LINKS / FOOTER ===================== */
.flink-block {
    padding: 11px 14px;
    background: var(--clr-bg-card);
    border-radius: var(--clr-radius);
    border: 1px solid var(--clr-border);
}

.flink-block dl {
    margin: 0;
}

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

.flink-block a {
    color: var(--clr-primary-dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--fx-transition);
}

.flink-block a:hover {
    color: var(--clr-accent);
}

.flink-block a.pd5 {
    padding: 2px 4px;
}

.site-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 8px;
    background: var(--clr-bg-card);
}

.site-footer p {
    margin: 6px 0;
    color: var(--clr-text-muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--fx-transition);
}

.site-footer a:hover {
    color: var(--clr-primary);
}

/* ===================== HIDE UTILITIES ===================== */
.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;
    }
}

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

/* ===================== LOADING IMAGE ===================== */
img[data-original] {
    background: #e8ede8;
}

/* ===================== RESPONSIVE - TABLET ===================== */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 11px;
    }
}

/* ===================== RESPONSIVE - MOBILE ===================== */
@media (max-width: 768px) {
    .wrap-outer {
        padding: 0 8px;
    }

    .wrap-inner {
        padding: 8px 0;
    }

    .site-topbar {
        padding: 8px 0;
    }

    .site-title-text {
        font-size: 20px;
    }

    .site-domain-badge {
        padding: 4px 11px;
    }

    .site-domain-tag {
        font-size: 9px;
    }

    .site-domain-addr {
        font-size: 15px;
    }

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

    .catbar-zone-name {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
        text-align: center;
        line-height: 1.3;
    }

    .catbar-links-area {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 7px 5px;
    }

    /* Mobile: 4 per row (2 rows for 8 items) */
    .catbar-links-area a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        text-align: center;
    }

    /* Mobile: 2 columns */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-meta h5 {
        font-size: 12px;
    }

    .player-box {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .search-wrap {
        padding: 9px 10px;
    }

    .search-wrap input[type="text"] {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-wrap button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .media-sec-title {
        font-size: 16px;
    }

    .media-section {
        margin-bottom: 12px;
    }

    .tag-cloud-list {
        padding: 9px 10px;
        gap: 6px;
    }

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

    .btn-action-group {
        padding: 10px 8px;
        gap: 7px;
        flex-wrap: nowrap;
    }

    .btn-dl {
        padding: 9px 14px;
        font-size: 13px;
    }

    .share-section {
        padding: 10px;
        margin: 12px 0;
        gap: 7px;
    }

    .share-url-display {
        padding: 8px 10px;
        gap: 7px;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 11px;
    }

    .share-copy-btn {
        padding: 9px 11px;
        font-size: 12px;
    }

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

/* ===================== RESPONSIVE - SMALL MOBILE ===================== */
@media (max-width: 480px) {
    .site-title-text {
        font-size: 18px;
    }

    .site-domain-tag {
        font-size: 8px;
    }

    .site-domain-addr {
        font-size: 14px;
    }

    /* Extra small: label stays 15%, links 85% */
    .catbar-zone-name {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

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

    .player-box {
        height: 56.25vw;
        max-height: 280px;
        margin-bottom: 10px;
    }

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

    .card-meta h5 {
        font-size: 12px;
    }

    .btn-dl {
        padding: 8px 10px;
        font-size: 12px;
    }

    .share-section {
        padding: 8px;
        margin: 10px 0;
    }

    .share-copy-btn {
        padding: 8px 9px;
        font-size: 11px;
    }

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

/* Legacy class aliases for backward compat */
.mhlleset { margin-bottom: 16px; }
.mhlleset-main { }
.mhlleset-heading { margin-bottom: 12px; padding-bottom: 9px; border-bottom: 2px solid var(--clr-border); position: relative; }
.mhlleset-heading::before { content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--fx-gradient); }
.mhlleset-title { font-size: 18px; font-weight: 800; margin: 0; color: var(--clr-text); }
.mhlleset-title a { color: var(--clr-text); text-decoration: none; transition: var(--fx-transition); }
.mhlleset-title a:hover { color: var(--clr-primary); }
.thumbnail2-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; }
.thumbnail2 { display: block; position: relative; overflow: hidden; border-radius: var(--clr-radius); aspect-ratio: 600 / 350; background: #e8ede8; border: 1px solid var(--clr-border); box-shadow: 0 1px 4px var(--clr-shadow); }
.thumbnail2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.thumbnail2:hover { box-shadow: 0 5px 14px var(--clr-shadow-md); }
.thumbnail2:hover img { transform: scale(1.08); }
.thumbnail2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.thumbnail2:hover::after { opacity: 1; }
.video-info { padding: 7px 0 2px; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.video-info h5 a { color: var(--clr-text); text-decoration: none; transition: var(--fx-transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-info h5 a:hover { color: var(--clr-primary); }
.container { max-width: 1060px; margin: 0 auto; padding: 0 14px; }
.content { padding: 10px 0; }
.nav-container { background: var(--clr-bg-card); border-radius: var(--clr-radius); overflow: hidden; margin-bottom: 10px; border: 1px solid var(--clr-border); box-shadow: 0 1px 4px var(--clr-shadow); }
.nav-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--clr-border); }
.nav-row:last-child { border-bottom: none; }
.nav-row .nav-label { font-weight: 700; font-size: 13px; color: #fff; background: var(--clr-primary); white-space: nowrap; width: 10%; text-align: center; border-right: 1px solid #1e5c1e; display: flex; align-items: center; justify-content: center; padding: 10px 6px; flex-shrink: 0; }
.nav-row .nav-links { font-size: 13px; width: 90%; display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 8px; align-items: center; }
.nav-row .nav-links a { display: inline-block; color: var(--clr-text-soft); text-decoration: none; padding: 5px 4px; border-radius: var(--clr-radius-sm); transition: var(--fx-transition); background: var(--clr-bg); border: 1px solid var(--clr-border); white-space: nowrap; text-align: center; width: calc((100% - 35px) / 8); flex-shrink: 0; flex-grow: 0; }
.nav-row .nav-links a:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.nav-row .nav-links a.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); font-weight: 600; }
.seach { background: var(--clr-bg-card); border-radius: var(--clr-radius); padding: 11px 14px; margin-bottom: 10px; border: 1px solid var(--clr-border); }
.seach form { display: flex; gap: 7px; flex-wrap: nowrap; align-items: center; }
.seach input[type="text"] { flex: 1; min-width: 180px; padding: 9px 13px; border: 1.5px solid var(--clr-border); border-radius: var(--clr-radius-sm); background: var(--clr-bg); color: var(--clr-text); font-size: 14px; transition: var(--fx-transition); outline: none; font-family: inherit; }
.seach input[type="text"]:focus { border-color: var(--clr-primary); background: #fff; box-shadow: 0 0 0 3px rgba(45,122,45,0.12); }
.seach input[type="text"]::placeholder { color: var(--clr-text-muted); }
.seach button { padding: 9px 15px; border: none; border-radius: var(--clr-radius-sm); background: var(--fx-gradient); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--fx-transition); white-space: nowrap; flex-shrink: 0; font-family: inherit; }
.seach button:hover { background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%); }
.grid-container { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 11px 12px; background: var(--clr-bg-card); border-radius: var(--clr-radius); margin-bottom: 10px; border: 1px solid var(--clr-border); }
.grid-item { padding: 5px 12px; background: #eaf5ea; border-radius: 14px; color: var(--clr-primary-dark); text-decoration: none; font-size: 13px; transition: var(--fx-transition); border: 1px solid #c5e0c5; }
.grid-item:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.download { text-align: center; padding: 14px; background: var(--clr-bg-card); border-radius: var(--clr-radius); margin: 14px 0; border: 1px solid var(--clr-border); display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; gap: 10px; }
.down_btn { display: inline-block; padding: 10px 22px; background: var(--fx-gradient); color: #fff; text-decoration: none; border-radius: var(--clr-radius-sm); font-weight: 700; font-size: 14px; transition: var(--fx-transition); margin: 0; border: 2px solid transparent; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
.down_btn:hover { background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%); box-shadow: 0 5px 14px var(--clr-shadow-md); }
.torrent-capture-grid { }
.torrent-capture-grid img, .torrent-capture-grid .img_item img { width: 100%; height: auto; border-radius: var(--clr-radius-sm); border: 1px solid var(--clr-border); display: block; }
.torrent-capture-grid .img_item { width: 100%; }
.txtguanggao2 { padding: 11px 14px; background: var(--clr-bg-card); border-radius: var(--clr-radius); border: 1px solid var(--clr-border); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--clr-primary-dark); text-decoration: none; font-size: 13px; transition: var(--fx-transition); }
.txtguanggao2 a:hover { color: var(--clr-accent); }
.footer { padding: 22px 0; text-align: center; border-top: 1px solid var(--clr-border); margin-top: 8px; background: var(--clr-bg-card); }
.footer p { margin: 6px 0; color: var(--clr-text-muted); font-size: 13px; }
.footer a { color: var(--clr-text-muted); text-decoration: none; transition: var(--fx-transition); }
.footer a:hover { color: var(--clr-primary); }

@media (max-width: 768px) {
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 7px 3px; line-height: 1.3; }
    .nav-row .nav-links { width: 85%; font-size: 12px; gap: 4px; padding: 7px 5px; }
    .nav-row .nav-links a { font-size: 12px; padding: 4px 2px; width: calc((100% - 12px) / 4); }
}

@media (max-width: 480px) {
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 6px 3px; }
    .nav-row .nav-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .video-info h5 { font-size: 12px; }
}
