/* Video Site Template - Roku Streaming Style */
/* Deep purple background, violet accent, white text, bold streaming platform feel */

:root {
    --pur-deep:    #1a0533;
    --pur-dark:    #220a40;
    --pur-mid:     #3d1573;
    --pur-main:    #6b21e8;
    --pur-bright:  #8b5cf6;
    --pur-glow:    #a78bfa;
    --pur-soft:    #2d1060;
    --pur-card:    #1e0840;
    --pur-panel:   #280d50;
    --pur-border:  rgba(139,92,246,0.30);
    --pur-border2: rgba(139,92,246,0.55);
    --violet:      #7c3aed;
    --pink:        #e879f9;
    --pink-dark:   #c026d3;
    --grad-main:   linear-gradient(135deg, #6b21e8 0%, #8b5cf6 60%, #c026d3 100%);
    --grad-btn:    linear-gradient(135deg, #7c3aed 0%, #6b21e8 100%);
    --grad-hero:   linear-gradient(180deg, #1a0533 0%, #2d1060 50%, #1a0533 100%);
    --grad-top:    linear-gradient(90deg, #1a0533 0%, #3d1573 50%, #1a0533 100%);
    --white:       #ffffff;
    --white-90:    rgba(255,255,255,0.90);
    --white-70:    rgba(255,255,255,0.70);
    --white-45:    rgba(255,255,255,0.45);
    --white-18:    rgba(255,255,255,0.18);
    --white-08:    rgba(255,255,255,0.08);
    --txt:         #ffffff;
    --txt-sub:     rgba(255,255,255,0.82);
    --txt-muted:   rgba(255,255,255,0.48);
    --line:        rgba(139,92,246,0.22);
    --line-strong: rgba(139,92,246,0.45);
    --shadow-xs:   0 1px 4px rgba(0,0,0,0.40);
    --shadow-sm:   0 2px 12px rgba(0,0,0,0.50);
    --shadow-md:   0 4px 22px rgba(0,0,0,0.60);
    --shadow-pur:  0 4px 20px rgba(107,33,232,0.40);
    --radius-sm:   4px;
    --radius:      6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-pill: 50px;
    --ease:        all 0.22s ease;
}

* { 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(--pur-deep);
    color: var(--txt);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* subtle purple noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(124,58,237,0.15) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 0%, rgba(192,38,211,0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== SITE TOPBAR (non-sticky) ===== */
.site-topbar {
    background: var(--grad-top);
    padding: 10px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line-strong);
}

/* rainbow stripe like Roku */
.site-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6b21e8, #8b5cf6, #c026d3, #e879f9, #8b5cf6, #6b21e8);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.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: 1.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
    text-transform: uppercase;
}

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

.domain-badge .badge-url {
    font-size: 19px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: var(--grad-btn);
    padding: 3px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--pur-border2);
    box-shadow: var(--shadow-pur);
}

/* ===== LAYOUT ===== */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
    position: relative;
    z-index: 1;
}

.row-section { padding: 6px 0; }
.promo-zone  { margin-bottom: 0; }

/* ===== NAV PANEL ===== */
.nav-container {
    background: var(--pur-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pur-border);
    box-shadow: var(--shadow-sm);
    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(--pur-soft);
    border-right: 1px solid var(--pur-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--pur-glow);
    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(--pur-panel);
}

.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(--white-18);
    background: var(--white-08);
    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;
    backdrop-filter: blur(4px);
}

.nav-row .nav-links a:hover {
    background: var(--pur-main);
    color: var(--white);
    border-color: var(--pur-bright);
    box-shadow: 0 0 12px rgba(139,92,246,0.40);
}

.nav-row .nav-links a.active {
    background: var(--grad-btn);
    color: var(--white);
    border-color: var(--pur-bright);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(139,92,246,0.45);
}

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

.seach input[type="text"]:focus {
    border-color: var(--pur-bright);
    background: var(--pur-card);
    box-shadow: 0 0 0 2px rgba(139,92,246,0.22);
}

.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(--grad-btn);
    color: var(--white);
    letter-spacing: 0.3px;
}

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

/* ===== TAG CLOUD ===== */
.tag-cloud-wrap {
    background: var(--pur-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pur-border);
    box-shadow: var(--shadow-xs);
    margin-bottom: 8px;
    overflow: hidden;
}

.tag-cloud-head {
    padding: 7px 14px;
    background: var(--pur-soft);
    border-bottom: 1px solid var(--line);
}

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

.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(--pur-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pur-border);
    margin-bottom: 8px;
}

.grid-item {
    padding: 4px 13px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    text-decoration: none;
    color: var(--pur-glow);
    background: rgba(139,92,246,0.12);
    border: 1px solid var(--pur-border);
    transition: var(--ease);
    font-weight: 500;
}

.grid-item:hover {
    background: var(--pur-main);
    color: var(--white);
    border-color: var(--pur-bright);
    box-shadow: 0 0 10px rgba(139,92,246,0.35);
}

/* ===== 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: 48px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

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

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

/* ===== 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.4s 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-lg);
    aspect-ratio: 600 / 350;
    background: var(--pur-card);
    border: 1px solid var(--pur-border);
    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(--pur-bright);
    box-shadow: 0 0 0 2px rgba(139,92,246,0.40), var(--shadow-md);
    transform: translateY(-2px);
}

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

.thumbnail2::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    background: rgba(107,33,232,0.50);
    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(--pur-glow); }

/* ===== VIDEO PLAYER ===== */
.video-container {
    width: 100%;
    height: 620px;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 0 2px var(--pur-border2);
    margin-bottom: 14px;
    position: relative;
    border: 1px solid var(--pur-border2);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--pur-border2);
}

/* ===== 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(--pur-border);
    display: block;
}

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

.down_btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--grad-btn);
    color: var(--white);
    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-pur);
    transform: translateY(-1px);
}

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

.share-url-display {
    background: var(--pur-soft);
    border: 1px solid var(--pur-border);
    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(--pur-glow); 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(--white-08);
    color: var(--pur-glow);
    border: 1px solid var(--pur-border2);
    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(--pur-main);
    color: var(--white);
    border-color: var(--pur-bright);
    box-shadow: var(--shadow-pur);
}

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

/* ===== FRIEND LINKS ===== */
.txtguanggao2 {
    padding: 10px 14px;
    background: var(--pur-panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--pur-border);
}

.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--pur-glow); text-decoration: none; transition: var(--ease); font-size: 13px; font-weight: 500; }
.txtguanggao2 a:hover { color: var(--pink); }

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

.a_page_info:hover { background: var(--pur-main); border-color: var(--pur-bright); color: var(--white); box-shadow: var(--shadow-pur); }

.page_info_focus {
    display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
    font-weight: 700; font-size: 13px; min-width: 36px; text-align: center;
    background: var(--grad-btn); color: var(--white); border: none; cursor: default;
    box-shadow: var(--shadow-pur);
}

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

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

/* ===== 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(--pur-card); }

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

    /* Nav: zone 15%, links 85%, 4 per row = 2 rows of 8 */
    .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%;
        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 8px; }

    .nav-row .nav-label { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-row .nav-links { width: 85%; gap: 3px; padding: 5px 4px; }
    .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; }
}
