/* Video Site — Elegant Purple & White Style */

:root {
    --purple:       #4a1c61;
    --purple-mid:   #6b2d80;
    --purple-light: #f5eefa;
    --purple-bar:   #3d1754;
    --gold:         #c9a84c;
    --gold-light:   #fdf6e3;
    --text-dark:    #1a1a2e;
    --text-body:    #3d3d52;
    --text-muted:   #7a7a96;
    --text-faint:   #adadc4;
    --bg-page:      #f7f7fb;
    --bg-white:     #ffffff;
    --bg-subtle:    #f2f0f7;
    --border:       #e0dcea;
    --border-mid:   #cdc9de;
    --shadow-xs:    0 1px 3px rgba(74,28,97,0.06);
    --shadow-sm:    0 2px 8px rgba(74,28,97,0.09);
    --shadow-md:    0 4px 18px rgba(74,28,97,0.13);
    --shadow-lg:    0 8px 32px rgba(74,28,97,0.18);
    --r:            8px;
    --r-sm:         5px;
    --r-xs:         3px;
    --ease:         all 0.24s cubic-bezier(0.4,0,0.2,1);
    --grad:         linear-gradient(135deg,#4a1c61 0%,#6b2d80 100%);
    --grad-gold:    linear-gradient(135deg,#c9a84c 0%,#e6c97a 100%);
}

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

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

/* ─ HEADER ────────────────────────────── */
.site-masthead {
    background: var(--bg-white);
    border-bottom: 2px solid var(--purple);
    padding: 0.52rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

.brand-anchor {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--ease);
}
.brand-anchor:hover { opacity: 0.82; }

.brand-emblem {
    width: 34px;
    height: 34px;
    background: var(--grad);
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-emblem::after {
    content: '▶';
    color: #fff;
    font-size: 13px;
    margin-left: 2px;
}

.brand-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--purple);
    letter-spacing: 0.5px;
}

.domain-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--purple-light);
    border: 1px solid var(--purple-mid);
    border-left: 4px solid var(--purple);
    border-radius: var(--r-sm);
    padding: 5px 14px;
}

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

.domain-strip-addr {
    font-size: 18px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

.inner-pad { padding: 7px 0; }

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

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

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

.classi-zone {
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-white);
    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);
    letter-spacing: 0.3px;
}

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

.classi-links a {
    display: inline-block;
    color: var(--text-body);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    background: var(--bg-subtle);
    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;
}

.classi-links a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(74,28,97,0.25);
}

.classi-links a.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(74,28,97,0.28);
}

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

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

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

.query-box input[type="text"]:focus {
    border-color: var(--purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74,28,97,0.1);
}

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

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

.query-box button:hover {
    background: var(--purple-bar);
    box-shadow: 0 4px 12px rgba(74,28,97,0.3);
}

/* ─ 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 12px;
    background: var(--purple-light);
    border-radius: 2px;
    color: var(--purple-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid #d8c4e8;
    border-left: 3px solid var(--purple);
    font-weight: 500;
}

.grid-item:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(74,28,97,0.2);
}

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

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

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

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

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

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

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

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

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

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74,28,97,0.5) 0%, transparent 58%);
    opacity: 0;
    transition: opacity 0.28s 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(--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(--purple); }

/* ─ 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-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-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 22px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    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(--purple-bar);
    box-shadow: 0 6px 16px rgba(74,28,97,0.35);
}

/* ─ 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-subtle);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-sm);
    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(--purple);
    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 17px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    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(--purple-bar);
    box-shadow: 0 4px 12px rgba(74,28,97,0.3);
}
.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-sm);
    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(--purple);
    border-color: var(--purple);
    color: #fff;
}

.page_info_focus {
    background: var(--grad);
    color: #fff;
    border: 1px solid var(--purple);
    cursor: default;
}

/* ─ FOOTER ───────────────────────────────── */
.site-colophon {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--purple);
    margin-top: 18px;
    background: var(--bg-white);
}

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

.site-colophon a { color:var(--text-muted); text-decoration:none; transition:var(--ease); }
.site-colophon a:hover { color:var(--purple); }

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

/* ─ 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-subtle); }

/* ══ RESPONSIVE ════════════════════════════ */
@media (max-width: 768px) {
    .outer-wrap { padding: 0 8px; }
    .site-masthead { padding: 0.4rem 0; }
    .inner-pad { padding: 5px 0; }

    .brand-name { font-size: 18px; }
    .brand-emblem { width: 28px; height: 28px; }
    .brand-emblem::after { font-size: 11px; }

    .domain-strip { padding: 4px 10px; gap: 7px; }
    .domain-strip-label { font-size: 10px; }
    .domain-strip-addr  { font-size: 14px; }

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

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

    .classi-links {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .classi-links 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 on one row, no wrap */
    .query-box { padding: 8px 9px; margin-bottom: 6px; }
    .query-box form { flex-wrap: nowrap; gap: 5px; }
    .query-box input[type="text"] { min-width:70px; padding:8px 10px; font-size:13px; }
    .query-box 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 10px; font-size: 12px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 16px; }
    .domain-strip { padding: 3px 8px; gap: 5px; }
    .domain-strip-label { font-size: 9px; }
    .domain-strip-addr  { font-size: 13px; }

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

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

    .query-box input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .query-box 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; }
}
