/* Video Site — Opera Fresh Build v2 */

:root {
    --px:        #7c3aed;   /* primary purple */
    --px-dk:     #5b21b6;
    --px-lt:     #f5f3ff;
    --px-glow:   rgba(124,58,237,0.18);
    --rx:        #ef4444;   /* red accent (Opera O) */
    --rx-dk:     #dc2626;
    --ink-900:   #18181b;
    --ink-700:   #3f3f46;
    --ink-500:   #71717a;
    --ink-300:   #a1a1aa;
    --canvas:    #fafaf9;
    --surface:   #ffffff;
    --raised:    #f4f2ff;
    --line:      #e4e4e7;
    --line-md:   #d1d0e0;
    --grd-px:    linear-gradient(135deg,#7c3aed 0%,#a78bfa 100%);
    --grd-hero:  linear-gradient(130deg,#fff1ee 0%,#fdfcff 45%,#ede9fe 100%);
    --shadow-1:  0 1px 4px rgba(124,58,237,0.06);
    --shadow-2:  0 3px 12px rgba(124,58,237,0.10);
    --shadow-3:  0 6px 24px rgba(124,58,237,0.14);
    --shadow-4:  0 10px 40px rgba(124,58,237,0.20);
    --curve:     11px;
    --curve-sm:  7px;
    --curve-xs:  4px;
    --pill:      999px;
    --trans:     all 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',
                 -apple-system,BlinkMacSystemFont,sans-serif;
    background: var(--canvas);
    color: var(--ink-700);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ── MASTHEAD ─────────────────────────────── */
.fx-head {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.48rem 0;
    box-shadow: var(--shadow-1);
}

.fx-head-core {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.fx-brand-href {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans);
}
.fx-brand-href:hover { opacity: 0.82; }

.fx-orb {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--rx);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(239,68,68,0.38);
    font-style: italic;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.fx-brand-text {
    font-size: 21px;
    font-weight: 900;
    color: var(--ink-900);
    letter-spacing: -0.3px;
}

.fx-addr-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--px-lt);
    border: 1.5px solid #a78bfa;
    border-radius: var(--pill);
    padding: 5px 15px;
    box-shadow: 0 0 0 3px var(--px-glow);
}

.fx-addr-prefix {
    font-size: 11px;
    font-weight: 700;
    color: var(--px);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.fx-addr-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--px-dk);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── LAYOUT ───────────────────────────────── */
.fx-frame {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.fx-zone { padding: 7px 0; }

/* ── PROMO STRIP ──────────────────────────── */
.fx-promo {
    width: 100%;
    overflow: hidden;
    margin: 3px 0;
    border-radius: var(--curve-sm);
    box-shadow: var(--shadow-1);
}
.fx-promo a { display: block; }
.fx-promo img { width: 100%; display: block; }

/* ── CATEGORY NAVIGATION ──────────────────── */
.fx-catbox {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--curve);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--shadow-1);
}

.fx-catline {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
}
.fx-catline:last-child { border-bottom: none; }

.fx-catlabel {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--grd-px);
}

.fx-catitems {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
}

.fx-catitems a {
    display: inline-block;
    color: var(--ink-700);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--curve-xs);
    transition: var(--trans);
    background: var(--raised);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.fx-catitems a:hover {
    background: var(--px);
    color: #fff;
    border-color: var(--px);
    border-radius: var(--pill);
    box-shadow: 0 2px 10px var(--px-glow);
}

.fx-catitems a.active {
    background: var(--px);
    color: #fff;
    border-color: var(--px);
    border-radius: var(--pill);
    font-weight: 700;
    box-shadow: 0 2px 10px var(--px-glow);
}

/* ── SEARCH BOX ───────────────────────────── */
.fx-qbox {
    background: var(--surface);
    border-radius: var(--curve);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}

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

.fx-qbox input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 14px;
    border: 1.5px solid var(--line-md);
    border-radius: var(--pill);
    background: var(--raised);
    color: var(--ink-900);
    font-size: 14px;
    transition: var(--trans);
    outline: none;
}

.fx-qbox input[type="text"]:focus {
    border-color: var(--px);
    background: #fff;
    box-shadow: 0 0 0 3px var(--px-glow);
}

.fx-qbox input[type="text"]::placeholder { color: var(--ink-300); }

.fx-qbox button {
    padding: 9px 13px;
    border: none;
    border-radius: var(--pill);
    background: var(--grd-px);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.fx-qbox button:hover {
    background: var(--px-dk);
    box-shadow: 0 4px 14px var(--px-glow);
}

/* ── TAG CHIPS ────────────────────────────── */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: var(--curve);
    margin-bottom: 7px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}

.grid-item {
    padding: 4px 12px;
    background: var(--px-lt);
    border-radius: var(--pill);
    color: var(--px);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
    border: 1px solid #c4b5fd;
    font-weight: 500;
}

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

/* ── SECTIONS ─────────────────────────────── */
.mhlleset { margin-bottom: 14px; }
.mhlleset-main { /* inner wrap */ }

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

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

.mhlleset-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--ink-900);
}

.mhlleset-title a {
    color: var(--ink-900);
    text-decoration: none;
    transition: var(--trans);
}
.mhlleset-title a:hover { color: var(--px); }

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

.thumbnail2-group li {
    animation: fxReveal 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 fxReveal {
    from { opacity:0; transform:translateY(12px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--curve);
    aspect-ratio: 600 / 350;
    background: var(--raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
}

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

.thumbnail2:hover {
    box-shadow: var(--shadow-4);
    border-color: #a78bfa;
}
.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(91,33,182,0.55) 0%,transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.thumbnail2:hover::after { opacity: 1; }

.video-info { padding: 6px 0 2px; }

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

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

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

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

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

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

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

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

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

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grd-px);
    color: #fff;
    text-decoration: none;
    border-radius: var(--pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--trans);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    background: var(--px-dk);
    box-shadow: 0 6px 18px var(--px-glow);
    transform: translateY(-1px);
}
.down_btn:active { transform: translateY(0); }

/* ── SHARE BAR ────────────────────────────── */
.share-section {
    background: var(--surface);
    border-radius: var(--curve);
    padding: 13px 15px;
    margin: 12px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--raised);
    border: 1px solid var(--line-md);
    border-radius: var(--pill);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--px);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.share-copy-btn {
    padding: 9px 17px;
    background: var(--grd-px);
    color: #fff;
    border: none;
    border-radius: var(--pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--px-dk);
    box-shadow: 0 4px 14px var(--px-glow);
}
.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

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

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

.a_page_info {
    background: var(--surface);
    color: var(--ink-700);
    border: 1px solid var(--line-md);
}
.a_page_info:hover {
    background: var(--px);
    border-color: var(--px);
    color: #fff;
    box-shadow: 0 2px 10px var(--px-glow);
}

.page_info_focus {
    background: var(--grd-px);
    color: #fff;
    border: 1px solid var(--px);
    cursor: default;
    box-shadow: 0 2px 10px var(--px-glow);
}

/* ── FOOTER ───────────────────────────────── */
.fx-foot {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 18px;
    background: var(--surface);
}

.fx-foot p {
    margin: 5px 0;
    color: var(--ink-500);
    font-size: 13px;
}

.fx-foot a { color:var(--ink-500); text-decoration:none; transition:var(--trans); }
.fx-foot a:hover { color:var(--px); }

.fx-extlinks {
    padding: 10px 12px;
    background: var(--surface);
    border-radius: var(--curve);
    border: 1px solid var(--line);
}
.fx-extlinks dl  { margin:0; }
.fx-extlinks dd  { display:inline-block; margin:3px 4px; }
.fx-extlinks a   { color:var(--ink-500); text-decoration:none; font-size:13px; transition:var(--trans); }
.fx-extlinks a:hover { color:var(--px); }

/* ── UTILITIES ────────────────────────────── */
.hide_mobile { display: block; }
.hide_pc     { display: block; }

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .thumbnail2-group { grid-template-columns: repeat(4,1fr); }
}

.clearfix::after { content:""; display:table; clear:both; }
img[data-original] { background: var(--raised); }

/* ══ RESPONSIVE ═════════════════════════════ */
@media (max-width: 768px) {
    .fx-frame { padding: 0 8px; }
    .fx-head  { padding: 0.38rem 0; }
    .fx-zone  { padding: 5px 0; }

    .fx-brand-text { font-size: 17px; }
    .fx-orb        { width: 27px; height: 27px; font-size: 13px; }

    .fx-addr-capsule { padding: 4px 10px; gap: 6px; }
    .fx-addr-prefix  { font-size: 10px; }
    .fx-addr-value   { font-size: 14px; }

    /* Nav: 15% label + 85% links, 4 per row */
    .fx-catline { display: flex; align-items: stretch; }

    .fx-catlabel {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
        word-break: break-all;
        line-height: 1.35;
    }

    .fx-catitems {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .fx-catitems a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

    /* search: all one row */
    .fx-qbox { padding: 8px 9px; margin-bottom: 6px; }
    .fx-qbox form { flex-wrap: nowrap; gap: 5px; }
    .fx-qbox input[type="text"] { min-width:70px; padding:8px 10px; font-size:13px; }
    .fx-qbox button { padding:8px 9px; font-size:12px; }

    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }
    .mhlleset { margin-bottom: 11px; }

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

    .share-section { padding: 9px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 9px; gap: 5px; flex:1; min-width:0; }
    .share-label { font-size: 11px; }
    .share-url   { font-size: 10px; }
    .share-copy-btn { padding: 7px 10px; font-size: 12px; flex-shrink:0; }
    .share-icon { font-size: 13px; }

    .download { padding: 10px 6px; gap: 7px; flex-wrap: nowrap; margin: 10px 0; }
    .down_btn  { padding: 9px 13px; font-size: 13px; }

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

    .grid-container { padding: 8px; gap: 5px; margin-bottom: 6px; }
    .grid-item { padding: 4px 11px; font-size: 12px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .fx-brand-text { font-size: 15px; }
    .fx-addr-capsule { padding: 3px 8px; gap: 4px; }
    .fx-addr-prefix  { font-size: 9px; }
    .fx-addr-value   { font-size: 13px; }

    .fx-catlabel  { width: 15%; font-size: 10px; padding: 5px 2px; }
    .fx-catitems  { width: 85%; gap: 3px; padding: 5px 3px; }
    .fx-catitems a {
        font-size: 12px; padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

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

    .fx-qbox input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .fx-qbox button { padding:7px 7px; font-size:11px; }

    .video-container { height: 56.25vw; max-height: 240px; }
    .mhlleset-title { font-size: 14px; }
    .video-info h5  { font-size: 12px; }
    .down_btn { padding: 8px 10px; font-size: 12px; }
    .download { padding: 9px 4px; gap: 5px; }
}
