/* Clean Sky-Blue Theme - Video Platform Stylesheet */
/* Inspired by nipic.com: white background, sky-blue accent, minimal borders */

:root {
    --sky-primary: #29aae1;
    --sky-primary2: #1b96ce;
    --sky-primary3: #0d7fb5;
    --sky-text-blue: #29aae1;
    --sky-bg: #ffffff;
    --sky-bg2: #f8f9fa;
    --sky-bg3: #f2f4f6;
    --sky-border: #e8ecf0;
    --sky-border2: #d4dce4;
    --sky-text: #333333;
    --sky-text2: #666666;
    --sky-text3: #999999;
    --sky-white: #ffffff;
    --sky-nav-active: #29aae1;
    --grd-sky: linear-gradient(90deg, #29aae1 0%, #1b96ce 100%);
    --grd-sky-v: linear-gradient(180deg, #29aae1 0%, #1b96ce 100%);
    --shd-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shd-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shd-md: 0 4px 16px rgba(0,0,0,0.10);
    --shd-lg: 0 6px 24px rgba(0,0,0,0.12);
    --rd: 2px;
    --rd-sm: 2px;
    --rd-btn: 2px;
    --ease: all 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ====== HEADER ====== */
.site-header {
    background: var(--sky-bg);
    border-bottom: 1px solid var(--sky-border);
    padding: 0.55rem 0;
    box-shadow: var(--shd-xs);
}

.hd-inner { display: flex; justify-content: center; align-items: center; }

.site-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}
.brand-link:hover { opacity: 0.82; }

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

.newest-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sky-bg2);
    border: 1px solid var(--sky-border2);
    border-radius: var(--rd);
    padding: 5px 14px;
}

.domain-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--sky-text3);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.domain-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--sky-primary);
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', monospace;
}

/* ====== LAYOUT ====== */
.container { max-width: 1060px; margin: 0 auto; padding: 0 14px; }
.content { padding: 8px 0; }

/* ====== NAV ====== */
.nav-container {
    background: var(--sky-bg);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--sky-border);
    box-shadow: var(--shd-xs);
}

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

.nav-row .nav-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--sky-text3);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--sky-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--sky-bg2);
}

.nav-row .nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--sky-bg);
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--sky-text2);
    text-decoration: none;
    padding: 4px 2px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--sky-bg2);
    border: 1px solid var(--sky-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(--sky-primary);
    color: var(--sky-white);
    border-color: var(--sky-primary);
    box-shadow: none;
}

.nav-row .nav-links a.active {
    background: var(--sky-primary);
    color: var(--sky-white);
    border-color: var(--sky-primary);
    font-weight: 600;
}

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

.seach form { display: flex; gap: 0; flex-wrap: nowrap; align-items: stretch; }

.seach input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 9px 16px;
    border: 1px solid var(--sky-border2);
    border-right: none;
    border-radius: var(--rd) 0 0 var(--rd);
    background: var(--sky-bg);
    color: var(--sky-text);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--sky-primary);
    box-shadow: 0 0 0 2px rgba(41,170,225,0.12);
}

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

/* nipic search button style - sky blue square button */
.seach button {
    padding: 9px 16px;
    border: 1px solid var(--sky-primary);
    border-radius: 0;
    background: var(--grd-sky);
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:first-of-type {
    border-radius: 0;
    border-left: none;
}

.seach button:last-of-type {
    border-radius: 0 var(--rd) var(--rd) 0;
}

.seach button:hover { background: var(--sky-primary3); border-color: var(--sky-primary3); }

/* fix input+button join */
.seach form > input[type="text"] + button { border-left: none; }

/* ====== TAG CLOUD ====== */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--sky-bg);
    border-radius: var(--rd);
    margin-bottom: 8px;
    border: 1px solid var(--sky-border);
    box-shadow: var(--shd-xs);
}

.grid-item {
    padding: 5px 14px;
    background: var(--sky-bg);
    border-radius: var(--rd);
    color: var(--sky-text2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--sky-border2);
}

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

/* ====== SECTION BLOCK ====== */
.mhlleset { margin-bottom: 14px; }

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

/* nipic-style: sky blue left accent bar */
.mhlleset-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 17px;
    background: var(--sky-primary);
    border-radius: 1px;
    margin-right: 8px;
    flex-shrink: 0;
}

.mhlleset-heading::after { display: none; }

.mhlleset-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--sky-text); }
.mhlleset-title a { color: var(--sky-text); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--sky-primary); }

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

.thumbnail2-group li { position: relative; animation: fadeUp 0.38s 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; }

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

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--sky-bg3);
    border: 1px solid var(--sky-border);
    box-shadow: var(--shd-xs);
}

.thumbnail2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.38s ease; display: block; }
.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(41,170,225,0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.thumbnail2:hover::after { opacity: 1; }
.thumbnail2:hover { border-color: var(--sky-primary); box-shadow: var(--shd-sm); }

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

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

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

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

/* ====== TORRENT CAPTURE ====== */
.torrent-capture-grid { width: 100%; }
.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--sky-border);
    display: block;
}
.torrent-capture-grid .img_item { width: 100%; }

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

.down_btn {
    display: inline-block;
    padding: 9px 24px;
    background: var(--grd-sky);
    color: white;
    text-decoration: none;
    border-radius: var(--rd-btn);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 1px solid var(--sky-primary);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.down_btn:hover { background: var(--sky-primary3); border-color: var(--sky-primary3); box-shadow: var(--shd-sm); }

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

.share-url-display {
    background: var(--sky-bg2);
    border: 1px solid var(--sky-border2);
    border-radius: var(--rd);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--grd-sky);
    color: white;
    border: 1px solid var(--sky-primary);
    border-radius: var(--rd-btn);
    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(--sky-primary3); border-color: var(--sky-primary3); }
.share-copy-btn:active { transform: scale(0.98); }
.share-icon { font-size: 14px; }

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rd);
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}

.a_page_info { background: var(--sky-bg); color: var(--sky-text2); border: 1px solid var(--sky-border2); }
.a_page_info:hover { background: var(--sky-primary); border-color: var(--sky-primary); color: white; }
.page_info_focus { background: var(--sky-primary); color: white; border: 1px solid var(--sky-primary); cursor: default; }

/* ====== FOOTER ====== */
.footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--sky-border);
    margin-top: 14px;
    background: var(--sky-bg);
}

.footer p { margin: 5px 0; color: var(--sky-text3); font-size: 12px; }
.footer a { color: var(--sky-text3); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--sky-primary); }

.txtguanggao2 { padding: 10px 12px; background: var(--sky-bg); border-radius: var(--rd); border: 1px solid var(--sky-border); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--sky-text2); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--sky-primary); }
.txtguanggao2 .pd5 { padding: 0 5px; }

/* ====== HIDE UTILS ====== */
.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::after { content: ""; display: table; clear: both; }

/* ====== RESPONSIVE: Mobile ====== */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .site-header { padding: 0.45rem 0; }
    .site-brand { gap: 10px; }
    .brand-title { font-size: 20px; }
    .domain-tag { font-size: 10px; }
    .domain-val { font-size: 15px; }
    .content { padding: 6px 0; }

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

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

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

    .mhlleset { margin-bottom: 10px; }
    .mhlleset-title { font-size: 15px; }

    /* search: keep joined style on mobile */
    .seach form { gap: 0; }

    .share-section { padding: 10px; margin: 10px 0; gap: 7px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 8px 12px; font-size: 12px; }
    .down_btn { padding: 9px 16px; font-size: 13px; }
    .download { padding: 10px 8px; gap: 7px; }

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

    .grid-container { padding: 8px 10px; gap: 5px; }
    .grid-item { font-size: 12px; padding: 4px 10px; }
    .footer { padding: 14px 0; margin-top: 10px; }
}

/* ====== RESPONSIVE: Small phone ====== */
@media (max-width: 480px) {
    .brand-title { font-size: 18px; }
    .domain-val { font-size: 14px; }
    .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 { width: calc((100% - 9px) / 4); font-size: 12px; padding: 3px 1px; }
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 14px; }
    .video-container { height: 56.25vw; max-height: 280px; }
    .down_btn { padding: 8px 12px; font-size: 12px; }
    .download { gap: 5px; padding: 8px 6px; }
    .share-section { padding: 8px; gap: 5px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
    .share-icon { font-size: 12px; }
}

img[data-original] { background: var(--sky-bg3); }
