/* Video Site Template - Firebase Dark Style: Near-black bg, amber/orange accent, white text */

:root {
    --blk:         #1a1a1a;
    --blk-deep:    #111111;
    --blk-card:    #242424;
    --blk-panel:   #2c2c2c;
    --blk-border:  #3a3a3a;
    --blk-hover:   #333333;
    --amber:       #f5a623;
    --amber-dark:  #e09010;
    --amber-dim:   #3d2b00;
    --orange:      #ff6820;
    --orange-dark: #e05510;
    --fire:        linear-gradient(135deg, #f5a623 0%, #ff6820 100%);
    --fire-soft:   linear-gradient(135deg, #3d2b00 0%, #3d1800 100%);
    --white:       #ffffff;
    --white-90:    rgba(255,255,255,0.90);
    --white-60:    rgba(255,255,255,0.60);
    --white-30:    rgba(255,255,255,0.30);
    --white-10:    rgba(255,255,255,0.10);
    --white-06:    rgba(255,255,255,0.06);
    --txt:         #ffffff;
    --txt-sub:     rgba(255,255,255,0.75);
    --txt-muted:   rgba(255,255,255,0.45);
    --line:        rgba(255,255,255,0.10);
    --line-strong: rgba(255,255,255,0.18);
    --radius-sm:   4px;
    --radius:      6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-pill: 50px;
    --ease:        all 0.22s ease;
    --shadow-xs:   0 1px 4px rgba(0,0,0,0.40);
    --shadow-sm:   0 2px 10px rgba(0,0,0,0.50);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.60);
    --shadow-amber:0 4px 18px rgba(245,166,35,0.30);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Google Sans', 'Helvetica Neue', Arial, sans-serif;
    background: var(--blk-deep);
    color: var(--txt);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== SITE TOPBAR (non-sticky) ===== */
.site-topbar {
    background: var(--blk);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.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.6px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
    background: var(--fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sep {
    width: 1px;
    height: 22px;
    background: var(--line-strong);
    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: var(--txt-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-badge .badge-url {
    font-size: 19px;
    font-weight: 800;
    color: var(--amber);
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: var(--amber-dim);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(245,166,35,0.35);
}

/* ===== 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(--blk-card);
    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(--blk-panel);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

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

.nav-row .nav-links a {
    display: inline-block;
    color: var(--white-90);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--blk-panel);
    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(--amber-dim);
    color: var(--amber);
    border-color: var(--amber);
}

.nav-row .nav-links a.active {
    background: var(--amber-dim);
    color: var(--amber);
    border-color: var(--amber);
    font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.seach {
    background: var(--blk-card);
    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: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--blk-panel);
    color: var(--txt);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.seach input[type="text"]:focus {
    border-color: var(--amber);
    background: var(--blk-hover);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.18);
}

.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(--fire);
    color: var(--blk-deep);
    letter-spacing: 0.3px;
}

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

/* ===== TAG CLOUD ===== */
.tag-cloud-wrap {
    background: var(--blk-card);
    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(--blk-panel);
    border-bottom: 1px solid var(--line);
}

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

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 14px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 14px;
    background: var(--blk-card);
    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(--white-90);
    background: var(--blk-panel);
    border: 1px solid var(--line);
    transition: var(--ease);
    font-weight: 500;
}

.grid-item:hover {
    background: var(--amber-dim);
    color: var(--amber);
    border-color: var(--amber);
}

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

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

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

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

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

/* ===== 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(--blk-panel);
    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(--amber);
    box-shadow: var(--shadow-amber);
}

.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(0,0,0,0.55);
    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(--white-90);
    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(--amber); }

/* ===== 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;
    border: 1px solid var(--line);
}

.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);
    border: 1px solid var(--line);
}

/* ===== 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(--blk-card);
    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(--fire);
    color: var(--blk-deep);
    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-amber);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--blk-card);
    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(--blk-panel);
    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(--amber); 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(--blk-panel);
    color: var(--amber);
    border: 1px solid var(--amber);
    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 {
    background: var(--amber-dim);
    box-shadow: var(--shadow-amber);
}

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

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--blk-card);
    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(--amber); text-decoration: none; transition: var(--ease); font-size: 13px; font-weight: 500; }
.txtguanggao2 a:hover { color: var(--orange); }

/* ===== 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(--blk-card); color: var(--white-90); border: 1px solid var(--line);
}

.a_page_info:hover { background: var(--amber-dim); border-color: var(--amber); color: var(--amber); }

.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(--fire); color: var(--blk-deep); border: none; cursor: default;
}

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

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

/* ===== 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(--blk-panel); }

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

/* ===== 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 (8 items = 2 rows) */
    .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: 18px; }
    .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; }
}
