/* Video Site Template - Clean Green & Blue Authority Style */

:root {
    --grn: #2e7d32;
    --grn-mid: #388e3c;
    --grn-light: #e8f5e9;
    --grn-border: #a5d6a7;
    --blu: #1565c0;
    --blu-mid: #1976d2;
    --blu-light: #e3f2fd;
    --blu-border: #90caf9;
    --txt: #212121;
    --txt-sub: #424242;
    --txt-muted: #757575;
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface2: #fafafa;
    --line: #e0e0e0;
    --line-strong: #bdbdbd;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --ease: all 0.2s ease;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.10);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.13);
    --grad-grn: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    --grad-blu: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.site-topbar {
    background: var(--grad-blu);
    padding: 9px 0;
    border-bottom: 3px solid var(--grn);
}

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

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

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

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

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

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

.domain-badge .badge-url {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: rgba(46,125,50,0.55);
    padding: 2px 10px;
    border-radius: 3px;
    border: 1px solid rgba(165,214,167,0.5);
}

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

.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(--grn-light);
    border-right: 2px solid var(--grn-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--grn);
    text-align: center;
    line-height: 1.2;
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
}

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

.nav-row .nav-links a:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
}

.nav-row .nav-links a.active {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    font-weight: 600;
}

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

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

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

.seach input[type="text"]:focus {
    border-color: var(--blu-mid);
    box-shadow: 0 0 0 2px rgba(25,118,210,0.12);
}

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

.seach button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
    line-height: 1;
    background: var(--grn);
    color: #fff;
}

.seach button:hover { background: var(--grn-mid); box-shadow: var(--shadow-sm); }

/* ===== 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 13px;
    background: var(--grn-light);
    border-bottom: 1px solid var(--grn-border);
}

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

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 13px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 13px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

.grid-item {
    padding: 3px 11px;
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
    color: var(--blu);
    background: var(--blu-light);
    border: 1px solid var(--blu-border);
    transition: var(--ease);
}

.grid-item:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
}

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

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--blu);
    margin: 0;
}

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

/* ===== VIDEO CARD GRID ===== */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    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(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 600 / 350;
    background: var(--bg);
    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.35s ease; display: block; }
.thumbnail2:hover { border-color: var(--grn); 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: 26px;
    color: #fff;
    background: rgba(21,101,192,0.32);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

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

.video-info { padding: 6px 2px 0; }
.video-info h5 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; }
.video-info h5 a {
    color: var(--blu);
    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(--grn); text-decoration: underline; }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    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);
}

/* ===== 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: 9px 20px;
    background: var(--grn);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 1px solid var(--grn-mid);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.down_btn:hover { background: var(--grn-mid); box-shadow: var(--shadow-sm); }

/* ===== 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(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label { font-weight: 700; font-size: 13px; color: var(--grn); 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 18px;
    background: var(--blu);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    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(--blu-mid); box-shadow: var(--shadow-sm); }
.share-icon { font-size: 15px; }

/* ===== FRIEND LINKS ===== */
.txtguanggao2 { padding: 10px 13px; 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(--blu); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--grn); text-decoration: underline; }

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

.a_page_info {
    display: inline-block; padding: 6px 12px; border-radius: var(--radius); text-decoration: none;
    font-weight: 600; font-size: 13px; transition: var(--ease); min-width: 34px; text-align: center;
    background: var(--surface); color: var(--blu); border: 1px solid var(--blu-border);
}
.a_page_info:hover { background: var(--grn); border-color: var(--grn); color: #fff; }

.page_info_focus {
    display: inline-block; padding: 6px 12px; border-radius: var(--radius); text-decoration: none;
    font-weight: 700; font-size: 13px; min-width: 34px; text-align: center;
    background: var(--grn); color: #fff; border: 1px solid var(--grn); cursor: default;
}

/* ===== FOOTER ===== */
.footer { padding: 18px 0; text-align: center; border-top: 2px solid var(--grn); margin-top: 16px; background: var(--surface); }
.footer p { margin: 5px 0; color: var(--txt-muted); font-size: 13px; }
.footer a { color: var(--blu); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--grn); 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(--bg); }

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

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .row-section { padding: 4px 0; }
    .topbar-inner { gap: 9px; padding: 0 10px; }
    .brand-name { font-size: 19px; }
    .domain-badge .badge-label { font-size: 10px; }
    .domain-badge .badge-url  { font-size: 15px; padding: 1px 7px; }

    .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 5px; }
    .nav-row .nav-links a { font-size: 13px; padding: 4px 2px; width: calc((100% - 12px) / 4); flex-shrink: 0; flex-grow: 0; }

    .seach { padding: 8px 9px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 40px; padding: 7px 9px; font-size: 13px; }
    .seach button { padding: 7px 9px; font-size: 12px; }

    .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 12px; font-size: 12px; }
    .share-section { padding: 10px 12px; margin: 10px 0; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 8px 10px; flex: 1; min-width: 0; }
    .share-label { font-size: 12px; }
    .share-url   { font-size: 11px; }
    .share-copy-btn { padding: 8px 11px; font-size: 12px; flex-shrink: 0; }
    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 17px; }
    .domain-badge .badge-url { font-size: 14px; }
    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 3px; 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 9px; font-size: 11px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}
