/* Video Portal Template - Dark Nav + Light Content Style */

:root {
    --clr-accent: #2563eb;
    --clr-accent-hover: #1d4ed8;
    --clr-accent2: #0ea5e9;
    --clr-nav-bg: #1e293b;
    --clr-nav-text: #e2e8f0;
    --clr-nav-border: #334155;
    --clr-nav-hover: #2563eb;
    --clr-body-bg: #f1f5f9;
    --clr-surface: #ffffff;
    --clr-surface2: #f8fafc;
    --clr-border: #e2e8f0;
    --clr-text: #1e293b;
    --clr-text-muted: #64748b;
    --clr-text-light: #94a3b8;
    --clr-danger: #ef4444;
    --clr-shadow: rgba(30, 41, 59, 0.08);
    --clr-shadow-md: rgba(30, 41, 59, 0.16);
    --r-base: 6px;
    --r-sm: 4px;
    --r-lg: 10px;
    --ease: all 0.25s ease;
    --ease-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== TOP HEADER (site brand + domain) ===== */
.site-topbar {
    background: var(--clr-nav-bg);
    padding: 0.55rem 0;
    border-bottom: 2px solid var(--clr-accent);
}

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

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.brand-link:hover .brand-name {
    color: var(--clr-accent2);
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 14px;
}

.domain-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--clr-accent2);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-badge-url {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: 'Courier New', 'Consolas', monospace;
}

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

.sect {
    padding: 10px 0;
}

/* ===== NAVIGATION BAR ===== */
.navblock {
    background: var(--clr-nav-bg);
    border-radius: 0 0 var(--r-base) var(--r-base);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-nav-border);
}

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

.navrow:last-child {
    border-bottom: none;
}

.navrow-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--clr-accent2);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}

.navrow-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.navrow-links a {
    display: inline-block;
    color: var(--clr-nav-text);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-sm);
    transition: var(--ease-fast);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-nav-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.navrow-links a:hover {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
}

.navrow-links a.active {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
    font-weight: 700;
}

/* ===== BANNER AREA ===== */
.banner-wrap {
    margin-bottom: 10px;
}

/* ===== SEARCH BOX ===== */
.searchbar-wrap {
    background: var(--clr-surface);
    border-radius: var(--r-base);
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

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

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

.searchbar-wrap input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.searchbar-wrap button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--clr-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease-fast);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.searchbar-wrap button:hover {
    background: var(--clr-accent-hover);
    box-shadow: 0 3px 10px var(--clr-shadow-md);
}

.searchbar-wrap button:active {
    transform: scale(0.97);
}

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

.tag-entry {
    padding: 4px 12px;
    background: var(--clr-body-bg);
    border-radius: 14px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease-fast);
    border: 1px solid var(--clr-border);
}

.tag-entry:hover {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

/* ===== SECTION HEADERS ===== */
.block-group {
    margin-bottom: 14px;
}

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

.block-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--clr-accent);
}

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

.block-title a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--ease-fast);
}

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

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

.filmgrid li {
    animation: fadeup 0.5s ease backwards;
}

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

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

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-base);
    aspect-ratio: 600 / 350;
    background: var(--clr-body-bg);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    transition: box-shadow 0.25s ease;
}

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

.film-thumb:hover {
    box-shadow: 0 6px 20px var(--clr-shadow-md);
}

.film-thumb:hover img {
    transform: scale(1.07);
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

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

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

.film-meta h5 a:hover {
    color: var(--clr-accent);
}

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

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

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

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

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

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

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    text-align: center;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--r-base);
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.action-btn:hover {
    background: var(--clr-accent-hover);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--clr-surface);
    border-radius: var(--r-base);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

.share-copy-btn {
    padding: 10px 18px;
    background: var(--clr-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--clr-accent-hover);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

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

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

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

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

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

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

.page_info_focus {
    background: var(--clr-accent);
    color: #ffffff;
    border: 1px solid var(--clr-accent);
    cursor: default;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 20px;
    background: var(--clr-surface);
}

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

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

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

/* ===== FRIEND LINKS ===== */
.friendlinks-box {
    padding: 10px;
    background: var(--clr-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--clr-border);
}

.friendlinks-box dl {
    margin: 0;
}

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

.friendlinks-box a {
    color: var(--clr-accent);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease-fast);
}

.friendlinks-box a:hover {
    color: var(--clr-accent-hover);
    text-decoration: underline;
}

.pd5 {
    padding: 2px 5px;
}

/* ===== DETAIL INFO BOX ===== */
.infobox-panel {
    font-size: 15px;
    line-height: 1.85;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--r-lg);
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 6px var(--clr-shadow);
}

.item-headline {
    line-height: 1.7;
    text-align: center;
    padding: 16px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}

.item-headline a {
    color: var(--clr-accent);
    text-decoration: none;
    font-weight: 600;
    margin-right: 6px;
}

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

.vis-pc {
    display: block;
}

.vis-mobile {
    display: block;
}

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

    .site-topbar {
        padding: 0.45rem 0;
    }

    .topbar-inner {
        gap: 10px;
    }

    .brand-name {
        font-size: 19px;
    }

    .domain-badge {
        padding: 3px 10px;
        gap: 5px;
    }

    .domain-badge-label {
        font-size: 10px;
    }

    .domain-badge-url {
        font-size: 14px;
    }

    .sect {
        padding: 7px 0;
    }

    /* Nav: label 15%, links 85%, 4 per row */
    .navrow {
        display: flex;
        align-items: stretch;
    }

    .navrow-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }

    .navrow-links {
        width: 85%;
        gap: 3px;
        padding: 7px 4px;
    }

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

    .searchbar-wrap {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .searchbar-wrap form {
        flex-wrap: nowrap;
        gap: 5px;
    }

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

    .searchbar-wrap button {
        padding: 8px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Film grid: 2 columns on mobile */
    .filmgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .block-group {
        margin-bottom: 10px;
    }

    .block-header {
        margin-bottom: 10px;
        padding-bottom: 7px;
    }

    .block-title {
        font-size: 16px;
    }

    .tag-cloud {
        padding: 8px 10px;
        gap: 5px;
        margin-bottom: 8px;
    }

    .tag-entry {
        padding: 3px 10px;
        font-size: 11px;
    }

    .dl-actions {
        padding: 10px 8px;
        margin: 10px 0;
        gap: 7px;
        flex-wrap: nowrap;
    }

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

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

    .share-url-display {
        padding: 8px 10px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

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

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

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

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

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

    .page_info_div {
        padding: 12px 0;
        gap: 4px;
    }

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

    .site-footer {
        padding: 16px 0;
        margin-top: 16px;
    }

    .infobox-panel {
        padding: 14px 14px;
        font-size: 14px;
    }

    .item-headline {
        padding: 12px;
        font-size: 15px;
    }

    .vis-pc {
        display: none !important;
    }
}

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

    /* PC: 8 links fill full row */
    .navrow-links a {
        width: calc((100% - 35px) / 8);
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 17px;
    }

    .domain-badge-url {
        font-size: 13px;
    }

    .navrow-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

    .navrow-links a {
        font-size: 13px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

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

    .film-meta h5 {
        font-size: 11px;
    }

    .searchbar-wrap input[type="text"] {
        min-width: 0;
        padding: 7px 8px;
        font-size: 12px;
    }

    .searchbar-wrap button {
        padding: 7px 8px;
        font-size: 11px;
    }

    .dl-actions {
        padding: 8px 6px;
        gap: 5px;
    }

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

    .share-section {
        padding: 8px;
        gap: 5px;
    }

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

/* ===== LEGACY ALIAS (for system-generated class refs) ===== */
.mhlleset { margin-bottom: 14px; }
.mhlleset-main { }
.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
}
.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--clr-accent);
}
.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-text);
}
.mhlleset-title a {
    color: var(--clr-text);
    text-decoration: none;
}
.mhlleset-title a:hover { color: var(--clr-accent); }

/* thumbnail2-group aliased to filmgrid */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}
.thumbnail2-group li { animation: fadeup 0.5s 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 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-base);
    aspect-ratio: 600 / 350;
    background: var(--clr-body-bg);
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    transition: box-shadow 0.25s ease;
}
.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.thumbnail2:hover { box-shadow: 0 6px 20px var(--clr-shadow-md); }
.thumbnail2:hover img { transform: scale(1.07); }
.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.thumbnail2:hover::after { opacity: 1; }

.video-info { padding: 8px 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(--ease-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-info h5 a:hover { color: var(--clr-accent); }

/* seach (legacy) */
.seach {
    background: var(--clr-surface);
    border-radius: var(--r-base);
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}
.seach form { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.seach input[type="text"] {
    flex: 1; min-width: 0;
    padding: 9px 13px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-sm);
    background: var(--clr-body-bg);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--ease-fast);
    outline: none;
    font-family: inherit;
}
.seach input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.seach input[type="text"]::placeholder { color: var(--clr-text-light); }
.seach button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--clr-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease-fast);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}
.seach button:hover { background: var(--clr-accent-hover); }

/* grid-container / grid-item (legacy) */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--r-base);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}
.grid-item {
    padding: 4px 12px;
    background: var(--clr-body-bg);
    border-radius: 14px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease-fast);
    border: 1px solid var(--clr-border);
}
.grid-item:hover {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
}

/* download / down_btn (legacy) */
.download {
    text-align: center;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--r-base);
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}
.down_btn:hover {
    background: var(--clr-accent-hover);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

/* share-box (legacy) */
.share-box {
    background: var(--clr-surface);
    border-radius: var(--r-base);
    padding: 10px;
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 4px var(--clr-shadow);
}
.share-box span { color: var(--clr-text-muted); font-size: 13px; word-break: break-all; }
.share-box a { color: var(--clr-accent); text-decoration: none; font-weight: 600; }
.share-box a:hover { color: var(--clr-accent-hover); }

/* txtguanggao2 (legacy) */
.txtguanggao2 {
    padding: 10px;
    background: var(--clr-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--clr-border);
}
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--clr-accent); text-decoration: none; font-size: 13px; }
.txtguanggao2 a:hover { color: var(--clr-accent-hover); text-decoration: underline; }

/* nav-container / nav-row (legacy) */
.nav-container {
    background: var(--clr-nav-bg);
    border-radius: 0 0 var(--r-base) var(--r-base);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-nav-border);
}
.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-nav-border);
}
.nav-row:last-child { border-bottom: none; }
.nav-row .nav-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--clr-accent2);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}
.nav-row .nav-links {
    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-nav-text);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-sm);
    transition: var(--ease-fast);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-nav-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}
.nav-row .nav-links a:hover {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
}
.nav-row .nav-links a.active {
    background: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
    font-weight: 700;
}

/* footer (legacy) */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 20px;
    background: var(--clr-surface);
}
.footer p { margin: 6px 0; color: var(--clr-text-muted); font-size: 12px; }
.footer a { color: var(--clr-text-muted); text-decoration: none; }
.footer a:hover { color: var(--clr-accent); }

/* hide_mobile / hide_pc (legacy) */
.hide_mobile { display: block; }
.hide_pc { display: block; }
@media (max-width: 768px) {
    .hide_mobile { display: none !important; }
    /* nav-row mobile */
    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }
    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 7px 4px;
    }
    .nav-row .nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 9px) / 4);
    }
    /* thumbnail2-group mobile: 2 columns */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* seach mobile */
    .seach { padding: 8px 10px; margin-bottom: 8px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 0; padding: 8px 10px; font-size: 13px; }
    .seach button { padding: 8px 10px; font-size: 12px; flex-shrink: 0; }
    /* download mobile */
    .download { padding: 10px 8px; margin: 10px 0; gap: 7px; flex-wrap: nowrap; }
    .down_btn { padding: 9px 14px; font-size: 13px; }
    /* share mobile */
    .share-section { padding: 10px; margin: 12px 0; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 8px 10px; gap: 6px; flex: 1; min-width: 0; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 11px; font-size: 12px; flex-shrink: 0; }
    .share-icon { font-size: 14px; }
    /* page */
    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
    /* block-group etc */
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 10px; padding-bottom: 7px; }
    .mhlleset-title { font-size: 16px; }
    .grid-container { padding: 8px 10px; gap: 5px; margin-bottom: 8px; }
    .grid-item { padding: 3px 10px; font-size: 11px; }
}
@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .thumbnail2-group { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .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: 13px; padding: 4px 1px; width: calc((100% - 9px) / 4); }
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 11px; }
    .mhlleset-title { font-size: 15px; }
    .download { padding: 8px 6px; gap: 5px; }
    .down_btn { padding: 8px 10px; font-size: 12px; }
    .share-section { padding: 8px; gap: 5px; }
    .share-copy-btn { padding: 8px 9px; font-size: 11px; }
    .seach input[type="text"] { padding: 7px 8px; font-size: 12px; }
    .seach button { padding: 7px 8px; font-size: 11px; }
}

/* lazy load bg */
img[data-original] { background: var(--clr-body-bg); }

/* container (legacy — must match wrap) */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}
.content { padding: 10px 0; }
