/* Dark Video Website Template - Tencent Video Style */

:root {
    --primary: #f04040;
    --primary-dark: #d63030;
    --primary-glow: rgba(240, 64, 64, 0.25);
    --accent: #ff6b35;
    --accent2: #ffb800;
    --dark: #e8eaed;
    --darker: #0d1117;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2230;
    --bg-hover: #21293a;
    --border: #2d3748;
    --border-light: #374151;
    --light: #e8eaed;
    --gray: #8b949e;
    --gray-light: #b0bec5;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --gradient: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(240,64,64,0.15) 0%, rgba(255,107,53,0.08) 100%);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

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

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

.logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.04);
}

.site-name {
    font-size: 26px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(240, 64, 64, 0.12);
    border-radius: 20px;
    border: 1.5px solid rgba(240, 64, 64, 0.5);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 64, 64, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(240, 64, 64, 0); }
}

.domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.domain-url {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────
   CONTAINER & LAYOUT
───────────────────────────────────────── */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    padding: 8px 0;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.nav-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

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

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

.nav-row .nav-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--gray-light);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.02);
}

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

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

.nav-row .nav-links a:hover,
.nav-row .nav-links a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ─────────────────────────────────────────
   SEARCH BOX
───────────────────────────────────────── */
#ddab {
    margin-bottom: 8px;
}

.seach {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 10px 12px;
    border: 1px solid var(--border);
}

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

.seach input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--light);
    font-size: 13px;
    transition: var(--transition);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 64, 64, 0.15);
}

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

.seach button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:hover {
    opacity: 0.88;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ─────────────────────────────────────────
   HOT SEARCH TAGS
───────────────────────────────────────── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.mhlleset-main h4 {
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 8px 12px 0;
}

.grid-item {
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.grid-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ─────────────────────────────────────────
   SECTION HEADINGS
───────────────────────────────────────── */
.mhlleset {
    margin-bottom: 12px;
}

.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.mhlleset-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--light);
    letter-spacing: 0.2px;
}

.mhlleset-title a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.mhlleset-title a:hover {
    color: var(--primary);
}

h4.mhlleset-title {
    font-size: 15px;
}

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

.thumbnail2-group li {
    position: relative;
    animation: fadeInUp 0.5s 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 fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.thumbnail2:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(240,64,64,0.2);
}

.thumbnail2:hover img {
    transform: scale(1.08);
}

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

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

/* Play icon on hover */
.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 28px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

.thumbnail2:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-info {
    padding: 7px 0 0;
}

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.video-info h5 a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h5 a:hover {
    color: var(--primary);
}

/* ─────────────────────────────────────────
   VIDEO PLAYER
───────────────────────────────────────── */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 15px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    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);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}

/* ─────────────────────────────────────────
   TORRENT CAPTURE GRID
───────────────────────────────────────── */
.torrent-capture-grid {}

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

.torrent-capture-grid .img_item {
    width: 100%;
}

/* ─────────────────────────────────────────
   DOWNLOAD BUTTONS
───────────────────────────────────────── */
.download {
    text-align: center;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin: 12px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.down_btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 16px var(--primary-glow);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   SHARE SECTION
───────────────────────────────────────── */
.share-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 12px;
    margin: 12px 0;
    border: 1px solid var(--border);
}

.share-box span {
    color: var(--gray);
    font-size: 13px;
    word-break: break-all;
}

.share-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.share-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 12px 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    opacity: 0.88;
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--bg-secondary);
    color: var(--gray-light);
    border: 1px solid var(--border);
}

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

.page_info_focus {
    background: var(--gradient);
    color: white;
    border: 1px solid var(--primary);
    cursor: default;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 15px;
    background: var(--bg-secondary);
}

.footer p {
    margin: 6px 0;
    color: var(--gray);
    font-size: 12px;
}

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

/* ─────────────────────────────────────────
   FRIENDLY LINKS
───────────────────────────────────────── */
.txtguanggao2 {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.txtguanggao2 dl { margin: 0; }

.txtguanggao2 dd {
    display: inline-block;
    margin: 3px;
}

.txtguanggao2 a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.txtguanggao2 a:hover {
    color: var(--primary);
}

/* ─────────────────────────────────────────
   RESPONSIVE - TABLET 768px
───────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .header { padding: 0.45rem 0; }
    .site-branding { gap: 10px; }
    .site-name { font-size: 21px; }

    .domain-info { padding: 4px 11px; gap: 6px; }
    .domain-label { font-size: 10px; }
    .domain-url { font-size: 14px; }

    .content { padding: 6px 0; }

    .torrent-capture-grid {}

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

    .nav-row { display: flex; align-items: stretch; }

    .nav-row .nav-label {
        width: 20%;
        font-size: 11px;
        padding: 7px 3px;
    }

    .nav-row .nav-links {
        width: 80%;
        font-size: 11px;
        gap: 4px;
        padding: 7px 5px;
    }

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

    .seach { padding: 8px 10px; }
    .seach form { gap: 5px; }
    .seach input[type="text"] { min-width: 100px; padding: 8px 10px; font-size: 12px; }
    .seach button { padding: 8px 10px; font-size: 12px; }

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

    .video-info h5 { font-size: 12px; }
    .mhlleset { margin-bottom: 10px; }
    .mhlleset-heading { margin-bottom: 10px; padding-bottom: 7px; }
    .mhlleset-title { font-size: 16px; }

    .grid-container { padding: 8px 10px; gap: 5px; }
    .grid-item { padding: 4px 10px; font-size: 11px; }

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

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

    .page_info_div { padding: 12px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }

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

/* ─────────────────────────────────────────
   RESPONSIVE - MOBILE 480px
───────────────────────────────────────── */
@media (max-width: 480px) {
    .header { padding: 0.4rem 0; }
    .site-branding { gap: 8px; }
    .site-name { font-size: 19px; }

    .domain-info { padding: 4px 9px; gap: 5px; border-width: 1px; }
    .domain-label { font-size: 9px; }
    .domain-url { font-size: 13px; }

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

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

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

    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-info h5 { font-size: 11px; }
    .mhlleset-title { font-size: 15px; }

    .download { padding: 9px 5px; gap: 5px; }
    .down_btn { padding: 8px 10px; font-size: 11px; }

    .share-section { padding: 8px; margin: 8px 0; gap: 5px; }
    .share-url-display { padding: 7px 8px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.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-card);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Banner ad wrapper */
.container .content > [style*="overflow: hidden"] {
    border-radius: var(--radius);
    overflow: hidden;
}