/* Dark Amber Media Theme - Video Platform Stylesheet v2 */
/* Direction: Dark charcoal bg + amber/gold accent — cinematic media platform */

:root {
    /* Amber / Gold accent */
    --amb-accent:       #f5a623;
    --amb-accent2:      #e8960f;
    --amb-accent3:      #d47d00;
    --amb-accent-dim:   rgba(245,166,35,0.18);
    --amb-accent-glow:  rgba(245,166,35,0.35);

    /* Dark backgrounds */
    --amb-bg:           #1c1e22;
    --amb-bg2:          #23262d;
    --amb-bg3:          #2a2d35;
    --amb-bg4:          #31353f;
    --amb-header-bg:    #16181d;

    /* Borders */
    --amb-border:       #35393f;
    --amb-border2:      #42464e;

    /* Text */
    --amb-text:         #e8e9ea;
    --amb-text2:        #b0b4bc;
    --amb-text3:        #6e737d;
    --amb-white:        #ffffff;

    /* Gradients */
    --grd-amber:        linear-gradient(135deg, #f5a623 0%, #e0880a 100%);
    --grd-amber-h:      linear-gradient(90deg, #f5a623 0%, #e0880a 100%);
    --grd-dark-card:    linear-gradient(to top, rgba(20,22,26,0.92) 0%, transparent 60%);

    /* Shadows */
    --shd-xs:   0 1px 4px rgba(0,0,0,0.30);
    --shd-sm:   0 3px 10px rgba(0,0,0,0.40);
    --shd-md:   0 6px 20px rgba(0,0,0,0.50);
    --shd-lg:   0 10px 36px rgba(0,0,0,0.60);
    --shd-amb:  0 2px 12px rgba(245,166,35,0.28);

    /* Shape */
    --rd:       4px;
    --rd-sm:    3px;
    --rd-lg:    6px;
    --ease:     all 0.22s 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(--amb-bg);
    color: var(--amb-text);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--amb-header-bg);
    border-bottom: 2px solid var(--amb-accent);
    padding: 0.55rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    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.85; }

/* Bold white title with amber accent word — like quanjing's QUANJING+全景 split */
.brand-title {
    font-size: 27px;
    font-weight: 900;
    color: var(--amb-white);
    letter-spacing: 1.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    /* amber underline bar */
    padding-bottom: 4px;
    border-bottom: 3px solid var(--amb-accent);
    line-height: 1;
}

.newest-domain {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--amb-bg3);
    border: 1px solid var(--amb-border2);
    border-radius: var(--rd);
    padding: 6px 14px;
}

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

.domain-val {
    font-size: 19px;
    font-weight: 700;
    color: var(--amb-accent);
    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(--amb-bg2);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--amb-border);
    box-shadow: var(--shd-xs);
}

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

/* Dark label col with amber left border accent */
.nav-row .nav-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--amb-accent);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 2px solid var(--amb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--amb-bg3);
    letter-spacing: 0.3px;
}

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

.nav-row .nav-links a {
    display: inline-block;
    color: var(--amb-text2);
    text-decoration: none;
    padding: 4px 2px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--amb-bg3);
    border: 1px solid var(--amb-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(--amb-accent);
    color: #1a1a1a;
    border-color: var(--amb-accent);
    font-weight: 600;
    box-shadow: var(--shd-amb);
}

.nav-row .nav-links a.active {
    background: var(--amb-accent);
    color: #1a1a1a;
    border-color: var(--amb-accent);
    font-weight: 700;
    box-shadow: var(--shd-amb);
}

/* ===== SEARCH ===== */
.seach {
    background: var(--amb-bg2);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--amb-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(--amb-border2);
    border-right: none;
    border-radius: var(--rd) 0 0 var(--rd);
    background: var(--amb-bg3);
    color: var(--amb-text);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

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

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

/* Amber square buttons joined to input */
.seach button {
    padding: 9px 15px;
    border: 1px solid var(--amb-accent2);
    border-left: none;
    border-radius: 0;
    background: var(--grd-amber);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.seach button:last-of-type { border-radius: 0 var(--rd) var(--rd) 0; }
.seach button:hover { background: var(--amb-accent3); border-color: var(--amb-accent3); color: #fff; }

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

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

.grid-item:hover {
    background: var(--amb-accent);
    color: #1a1a1a;
    border-color: var(--amb-accent);
    font-weight: 600;
    box-shadow: var(--shd-amb);
}

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

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

/* Amber left bar */
.mhlleset-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--grd-amber);
    border-radius: 2px;
    margin-right: 9px;
    flex-shrink: 0;
}
.mhlleset-heading::after { display: none; }

.mhlleset-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--amb-text);
    letter-spacing: 0.3px;
}

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

/* ===== 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: darkFadeUp 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 darkFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

/* Dark gradient overlay — cinematic */
.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grd-dark-card);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.thumbnail2:hover::after { opacity: 1; }

/* Amber glow border on hover */
.thumbnail2:hover {
    border-color: var(--amb-accent);
    box-shadow: 0 0 0 1px var(--amb-accent), var(--shd-amb);
}

.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(--amb-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(--amb-accent); }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--rd-lg);
    overflow: hidden;
    box-shadow: var(--shd-lg);
    border: 1px solid var(--amb-border2);
    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-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shd-lg);
    border: 1px solid var(--amb-border2);
}

/* ===== 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(--amb-border);
    display: block;
}
.torrent-capture-grid .img_item { width: 100%; }

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

.down_btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--grd-amber);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: var(--rd);
    font-weight: 800;
    font-size: 14px;
    transition: var(--ease);
    border: 1px solid var(--amb-accent2);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.4px;
}

.down_btn:hover {
    background: var(--amb-accent3);
    border-color: var(--amb-accent3);
    color: #fff;
    box-shadow: var(--shd-amb);
}

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

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

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--grd-amber);
    color: #1a1a1a;
    border: 1px solid var(--amb-accent2);
    border-radius: var(--rd);
    font-weight: 800;
    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(--amb-accent3);
    border-color: var(--amb-accent3);
    color: #fff;
}
.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(--amb-bg2);
    color: var(--amb-text2);
    border: 1px solid var(--amb-border2);
}
.a_page_info:hover {
    background: var(--amb-accent);
    border-color: var(--amb-accent);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: var(--shd-amb);
}
.page_info_focus {
    background: var(--grd-amber);
    color: #1a1a1a;
    border: 1px solid var(--amb-accent2);
    cursor: default;
    font-weight: 700;
    box-shadow: var(--shd-amb);
}

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

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

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

/* ===== 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; }

    .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(--amb-bg3); }
