/* Video Site — Opera Vivid Style */

:root {
    --vp:           #6c3ce1;   /* vivid purple */
    --vp-dark:      #5228c0;
    --vp-light:     #f0ebff;
    --vp-mid:       #8b55f0;
    --opera-red:    #ff1b2d;
    --opera-red-dk: #d9001a;
    --text-dark:    #1a1a2a;
    --text-body:    #2e2e42;
    --text-muted:   #6e6e88;
    --text-faint:   #ababc0;
    --bg-page:      #f8f7ff;
    --bg-white:     #ffffff;
    --bg-soft:      #f3f0fe;
    --border:       #e4dff5;
    --border-mid:   #ccc5e8;
    --shadow-xs:    0 1px 4px rgba(108,60,225,0.07);
    --shadow-sm:    0 2px 10px rgba(108,60,225,0.10);
    --shadow-md:    0 4px 20px rgba(108,60,225,0.14);
    --shadow-lg:    0 8px 36px rgba(108,60,225,0.20);
    --r:            12px;
    --r-sm:         8px;
    --r-xs:         5px;
    --r-pill:       999px;
    --ease:         all 0.22s cubic-bezier(0.4,0,0.2,1);
    --grad-vp:      linear-gradient(135deg,#6c3ce1 0%,#8b55f0 100%);
    --grad-hero:    linear-gradient(120deg,#ffe8e0 0%,#f8f0ff 50%,#e8e0ff 100%);
}

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

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

/* ─ HEADER ──────────────────────────────── */
.op-topbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-xs);
}

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

.op-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.op-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: var(--ease);
}
.op-logo-link:hover { opacity: 0.85; }

.op-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--opera-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,27,45,0.35);
}

.op-logo-circle::after {
    content: 'O';
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

.op-site-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.op-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--vp-light);
    border: 1.5px solid var(--vp-mid);
    border-radius: var(--r-pill);
    padding: 5px 16px;
    box-shadow: 0 0 0 3px rgba(108,60,225,0.07);
}

.op-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--vp);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.op-domain-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--vp-dark);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

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

.op-slot { padding: 7px 0; }

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

/* ─ CATEGORY NAV ─────────────────────────── */
.cat-board {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

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

.cat-badge {
    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.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--grad-vp);
}

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

.cat-anchors a {
    display: inline-block;
    color: var(--text-body);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--r-xs);
    transition: var(--ease);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cat-anchors a:hover {
    background: var(--vp);
    color: #fff;
    border-color: var(--vp);
    box-shadow: 0 2px 10px rgba(108,60,225,0.28);
    border-radius: var(--r-pill);
}

.cat-anchors a.active {
    background: var(--vp);
    color: #fff;
    border-color: var(--vp);
    font-weight: 700;
    border-radius: var(--r-pill);
    box-shadow: 0 2px 10px rgba(108,60,225,0.30);
}

/* ─ SEARCH ───────────────────────────────── */
.op-searchbar {
    background: var(--bg-white);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

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

.op-searchbar input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-pill);
    background: var(--bg-soft);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.op-searchbar input[type="text"]:focus {
    border-color: var(--vp);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108,60,225,0.12);
}

.op-searchbar input[type="text"]::placeholder { color: var(--text-faint); }

.op-searchbar button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--grad-vp);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.op-searchbar button:hover {
    background: var(--vp-dark);
    box-shadow: 0 4px 14px rgba(108,60,225,0.32);
}

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

.grid-item {
    padding: 4px 13px;
    background: var(--vp-light);
    border-radius: var(--r-pill);
    color: var(--vp);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid #d4c4f8;
    font-weight: 500;
}

.grid-item:hover {
    background: var(--vp);
    color: #fff;
    border-color: var(--vp);
    box-shadow: 0 2px 10px rgba(108,60,225,0.22);
}

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

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

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

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

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

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

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

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

.thumbnail2:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--vp-mid);
}
.thumbnail2:hover img { transform: scale(1.06); }

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

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

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

.video-info h5 a {
    color: var(--text-body);
    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(--vp); }

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

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

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--r-xs);
    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-white);
    border-radius: var(--r);
    margin: 12px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

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

.down_btn:hover {
    background: var(--vp-dark);
    box-shadow: 0 6px 18px rgba(108,60,225,0.38);
    transform: translateY(-1px);
}
.down_btn:active { transform: translateY(0); }

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

.share-url-display {
    background: var(--bg-soft);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-pill);
    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(--vp);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.share-copy-btn:hover {
    background: var(--vp-dark);
    box-shadow: 0 4px 14px rgba(108,60,225,0.32);
}
.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

/* ─ PAGINATION ───────────────────────────── */
.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(--r-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--bg-white);
    color: var(--text-body);
    border: 1px solid var(--border-mid);
}
.a_page_info:hover {
    background: var(--vp);
    border-color: var(--vp);
    color: #fff;
    box-shadow: 0 2px 10px rgba(108,60,225,0.22);
}

.page_info_focus {
    background: var(--grad-vp);
    color: #fff;
    border: 1px solid var(--vp);
    cursor: default;
    box-shadow: 0 2px 10px rgba(108,60,225,0.25);
}

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

.op-footer p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.op-footer a { color:var(--text-muted); text-decoration:none; transition:var(--ease); }
.op-footer a:hover { color:var(--vp); }

.external-links {
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--r);
    border: 1px solid var(--border);
}
.external-links dl  { margin:0; }
.external-links dd  { display:inline-block; margin:3px 4px; }
.external-links a   { color:var(--text-muted); text-decoration:none; font-size:13px; transition:var(--ease); }
.external-links a:hover { color:var(--vp); }

/* ─ SHOW/HIDE ────────────────────────────── */
.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 ─────────────────────────────── */
.clearfix::after { content:""; display:table; clear:both; }
img[data-original] { background: var(--bg-soft); }

/* ══ RESPONSIVE ═════════════════════════════ */
@media (max-width: 768px) {
    .op-wrap { padding: 0 8px; }
    .op-topbar { padding: 0.4rem 0; }
    .op-slot { padding: 5px 0; }

    .op-site-name { font-size: 18px; }
    .op-logo-circle { width: 27px; height: 27px; }
    .op-logo-circle::after { font-size: 13px; }

    .op-domain-pill { padding: 4px 11px; gap: 7px; }
    .op-domain-tag  { font-size: 10px; }
    .op-domain-val  { font-size: 14px; }

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

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

    .cat-anchors {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .cat-anchors 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, no wrap */
    .op-searchbar { padding: 8px 9px; margin-bottom: 6px; }
    .op-searchbar form { flex-wrap: nowrap; gap: 5px; }
    .op-searchbar input[type="text"] { min-width:70px; padding:8px 10px; font-size:13px; }
    .op-searchbar 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 14px; 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) {
    .op-site-name { font-size: 16px; }
    .op-domain-pill { padding: 3px 9px; gap: 5px; }
    .op-domain-tag  { font-size: 9px; }
    .op-domain-val  { font-size: 13px; }

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

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

    .op-searchbar input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .op-searchbar 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 11px; font-size: 12px; }
    .download { padding: 9px 4px; gap: 5px; }
}
