/* Video Site Template - Dark Navy & Electric Blue Premium Style */

:root {
    --navy:        #1a1f5e;
    --navy-deep:   #0d1040;
    --navy-mid:    #2b3280;
    --blue:        #3333cc;
    --blue-bright: #4444ee;
    --blue-light:  #eeeeff;
    --blue-border: #b3b3f5;
    --white:       #ffffff;
    --off-white:   #f8f9fc;
    --silver:      #f2f3f8;
    --txt:         #1a1f5e;
    --txt-body:    #2c2c54;
    --txt-sub:     #555580;
    --txt-muted:   #8888aa;
    --line:        #ddddf0;
    --line-strong: #bbbbdd;
    --bg:          #f4f5fb;
    --surface:     #ffffff;
    --radius-sm:   3px;
    --radius:      5px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-pill: 50px;
    --ease:        all 0.22s ease;
    --shadow-xs:   0 1px 4px rgba(26,31,94,0.08);
    --shadow-sm:   0 2px 8px rgba(26,31,94,0.12);
    --shadow-md:   0 4px 16px rgba(26,31,94,0.16);
    --grad-navy:   linear-gradient(135deg, #1a1f5e 0%, #2b3280 100%);
    --grad-blue:   linear-gradient(135deg, #3333cc 0%, #4444ee 100%);
}

* { 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(--bg);
    color: var(--txt-body);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== SITE TOPBAR (non-sticky) ===== */
.site-topbar {
    background: var(--grad-navy);
    padding: 10px 0;
    border-bottom: 3px solid var(--blue);
}

.topbar-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

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

.brand-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.8px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
    text-transform: uppercase;
}

.brand-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.domain-badge .badge-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-badge .badge-url {
    font-size: 19px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.4px;
    white-space: nowrap;
    background: var(--grad-blue);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(180,180,255,0.4);
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 18px;
}

.row-section {
    padding: 6px 0;
}

.promo-zone { margin-bottom: 0; }

/* ===== NAV PANEL ===== */
.nav-container {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 8px;
}

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

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

.nav-row .nav-label {
    width: 10%;
    min-width: 52px;
    background: var(--navy);
    border-right: 2px solid var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    line-height: 1.2;
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    align-items: center;
    background: var(--off-white);
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--navy);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius);
    border: 1px solid var(--blue-border);
    background: var(--white);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    transition: var(--ease);
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.nav-row .nav-links a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.nav-row .nav-links a.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* ===== SEARCH BAR ===== */
.seach {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    padding: 10px 14px;
    margin-bottom: 8px;
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 40px;
    padding: 9px 14px;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--off-white);
    color: var(--txt);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.seach input[type="text"]:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(51,51,204,0.12);
}

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

.seach button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    line-height: 1;
    background: var(--grad-blue);
    color: var(--white);
    letter-spacing: 0.3px;
}

.seach button:hover {
    opacity: 0.88;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ===== TAG CLOUD ===== */
.tag-cloud-wrap {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    margin-bottom: 8px;
    overflow: hidden;
}

.tag-cloud-head {
    padding: 7px 14px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-mid);
}

.tag-cloud-head strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 14px;
    background: var(--off-white);
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 14px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

.grid-item {
    padding: 4px 13px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    text-decoration: none;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--blue-border);
    transition: var(--ease);
    font-weight: 500;
}

.grid-item:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

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

.mhlleset-heading {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
    position: relative;
}

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: -0.2px;
}

.mhlleset-title a { color: inherit; text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--blue); }

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

.thumbnail2-group li { animation: fadeUp 0.45s ease backwards; }
.thumbnail2-group li:nth-child(1) { animation-delay: 0.03s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.07s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.11s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.15s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.19s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.23s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.27s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.31s; }

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 600 / 350;
    background: var(--silver);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

.thumbnail2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.38s ease; display: block; }
.thumbnail2:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.thumbnail2:hover img { transform: scale(1.07); }

.thumbnail2::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    background: rgba(26,31,94,0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 1;
}

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

.video-info { padding: 7px 2px 0; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.video-info h5 a {
    color: var(--txt-body);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}
.video-info h5 a:hover { color: var(--blue); }

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

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

.MacPlayer {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

/* ===== DETAIL TITLE CARD ===== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 18px;
    font-size: 17px;
    margin: 12px 0;
    word-break: break-all;
    background: var(--navy);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.detail-title-bar a {
    color: #9999ff;
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== META INFO CARD ===== */
.detail-meta-card {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    box-shadow: var(--shadow-xs);
    margin: 12px 0;
}

/* ===== TORRENT CAPTURE ===== */
.torrent-capture-grid { margin-top: 12px; width: 100%; }
.torrent-capture-grid picture { display: block; width: 100%; }
.torrent-capture-grid picture img,
.torrent-capture-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    margin: 12px 0;
    text-align: center;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    opacity: 0.88;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.share-url-display {
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 9px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label { font-weight: 700; font-size: 13px; color: var(--blue); white-space: nowrap; flex-shrink: 0; }
.share-url { font-size: 12px; color: var(--txt-sub); word-break: break-all; flex: 1; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }

.share-copy-btn {
    padding: 9px 20px;
    background: var(--grad-navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover { opacity: 0.88; box-shadow: var(--shadow-sm); }
.share-icon { font-size: 15px; }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--blue); text-decoration: none; transition: var(--ease); font-size: 13px; font-weight: 500; }
.txtguanggao2 a:hover { color: var(--navy); text-decoration: underline; }

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

.a_page_info {
    display: inline-block; padding: 6px 13px; border-radius: var(--radius-pill);
    text-decoration: none; font-weight: 600; font-size: 13px; transition: var(--ease);
    min-width: 36px; text-align: center;
    background: var(--white); color: var(--navy); border: 1px solid var(--blue-border);
}

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

.page_info_focus {
    display: inline-block; padding: 6px 13px; border-radius: var(--radius-pill);
    font-weight: 700; font-size: 13px; min-width: 36px; text-align: center;
    background: var(--grad-blue); color: var(--white); border: 1px solid var(--blue); cursor: default;
}

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

.footer p { margin: 5px 0; color: var(--txt-muted); font-size: 13px; }
.footer a { color: var(--blue); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--navy); text-decoration: underline; }

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }
.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; } }
img[data-original] { background: var(--silver); }

/* ===== PC: 4 col fixed ===== */
@media (min-width: 769px) {
    .thumbnail2-group { grid-template-columns: repeat(4, 1fr); }
    .nav-row .nav-links a { width: calc((100% - 42px) / 8); }
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .thumbnail2-group { gap: 10px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 9px; }
    .row-section { padding: 4px 0; }

    .topbar-inner { gap: 10px; padding: 0 10px; }
    .brand-name { font-size: 20px; }
    .domain-badge .badge-label { font-size: 10px; }
    .domain-badge .badge-url  { font-size: 15px; padding: 2px 9px; }

    /* Nav: zone 15%, links 85%, 4 per row = 2 rows of 8 */
    .nav-row .nav-label {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 6px 2px;
        word-break: keep-all;
        line-height: 1.2;
    }

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

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

    /* Search: single line, no wrap */
    .seach { padding: 8px 10px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 40px; padding: 7px 10px; font-size: 13px; }
    .seach button { padding: 7px 10px; font-size: 12px; }

    /* Cards: 2 per row */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-title { font-size: 16px; }

    .video-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }

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

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

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

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

@media (max-width: 480px) {
    .brand-name { font-size: 17px; }
    .domain-badge .badge-url { font-size: 14px; padding: 2px 7px; }

    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 4px; font-size: 12px; }
    .nav-row .nav-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }
    .video-container { height: 56.25vw; max-height: 260px; }
    .down_btn { padding: 7px 10px; font-size: 11px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
}
