/* Media Portal - Deep Purple & Cyan Tech Theme */

:root {
    --purple: #5b2d8e;
    --purple-dark: #421f6a;
    --purple-deeper: #2e1549;
    --purple-light: #f0eaf8;
    --purple-mid: #c4a8e6;
    --cyan: #00b4d8;
    --cyan-dark: #0090ad;
    --cyan-light: #e0f7fc;
    --cyan-mid: #80d8ed;
    --text-dark: #1a1a2e;
    --text-body: #3a3a4a;
    --text-muted: #7a7a8a;
    --text-dim: #b0b0c0;
    --bg-page: #f3f1f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-strip: #faf8fd;
    --border: #ddd5f0;
    --border-soft: #ede8f8;
    --shadow-xs: 0 1px 4px rgba(91,45,142,0.07);
    --shadow-sm: 0 2px 8px rgba(91,45,142,0.1);
    --shadow-md: 0 5px 20px rgba(91,45,142,0.14);
    --rd: 6px;
    --rd-sm: 4px;
    --rd-lg: 10px;
    --ease: all 0.2s ease;
    --purple-glow: 0 3px 14px rgba(91,45,142,0.28);
    --cyan-glow: 0 3px 12px rgba(0,180,216,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOPBAR（非固定，不置顶） ===== */
.pvt-topbar {
    background: var(--bg-white);
    border-bottom: 2px solid var(--purple-mid);
    padding: 12px 0;
}

.pvt-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* 品牌：名称 + 域名同一行 */
.pvt-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pvt-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pvt-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deeper) 100%);
    border-radius: var(--rd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(91,45,142,0.35);
}

.pvt-logo-icon::after {
    content: '▶';
    color: var(--cyan);
    font-size: 14px;
    margin-left: 2px;
}

.pvt-sitename {
    font-size: 22px;
    font-weight: 900;
    color: var(--purple);
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
}

.pvt-domain-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan-light);
    border: 1px solid var(--cyan-mid);
    border-radius: var(--rd);
    padding: 4px 14px;
}

.pvt-domain-lbl {
    font-size: 11px;
    color: var(--cyan-dark);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.pvt-domain-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* ===== PAGE WRAPPER ===== */
.pvtwrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.pvtpad {
    padding: 10px 0;
}

/* ===== CATEGORY NAV BLOCK ===== */
.pvt-catblock {
    background: var(--bg-white);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.pvt-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-soft);
}

.pvt-catrow:last-child {
    border-bottom: none;
}

.pvt-zone-lbl {
    font-weight: 800;
    font-size: 13px;
    color: var(--bg-white);
    white-space: nowrap;
    width: 9%;
    min-width: 58px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
    letter-spacing: 0.3px;
    border-right: 2px solid var(--purple-deeper);
}

.pvt-zone-links {
    width: 91%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--bg-strip);
}

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

.pvt-zone-links a:hover {
    background: var(--purple);
    color: var(--bg-white);
    border-color: var(--purple);
    box-shadow: var(--purple-glow);
}

.pvt-zone-links a.active {
    background: var(--purple);
    color: var(--bg-white);
    border-color: var(--purple-dark);
    font-weight: 700;
    box-shadow: var(--purple-glow);
}

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

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

.pvt-searchbar input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    background: var(--bg-strip);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.pvt-searchbar input[type="text"]:focus {
    border-color: var(--purple);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px rgba(91,45,142,0.1);
}

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

.pvt-searchbar button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--purple);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.pvt-searchbar button:hover {
    background: var(--purple-dark);
    box-shadow: var(--purple-glow);
}

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

.pvt-tag {
    padding: 4px 12px;
    background: var(--bg-strip);
    border-radius: var(--rd-sm);
    color: var(--text-body);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.pvt-tag:hover {
    background: var(--purple-light);
    color: var(--purple-dark);
    border-color: var(--purple-mid);
}

/* ===== SECTION HEADING ===== */
.pvt-section {
    margin-bottom: 18px;
}

.pvt-sec-head {
    margin-bottom: 12px;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.pvt-sec-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    border-left: 4px solid var(--cyan);
    padding-left: 10px;
    line-height: 1.3;
}

.pvt-sec-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--ease);
}

.pvt-sec-title a:hover {
    color: var(--purple);
}

/* ===== FILM CARD GRID ===== */
.pvt-filmgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.pvt-filmgrid li {
    background: var(--bg-card);
    border-radius: var(--rd);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

.pvt-filmgrid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--purple-mid);
}

.pvt-filmcover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg-strip);
}

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

.pvt-filmcover:hover img {
    transform: scale(1.06);
}

.pvt-filmcover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-white);
    background: rgba(91,45,142,0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pvt-filmcover:hover::after {
    opacity: 1;
}

.pvt-filminfo {
    padding: 8px 10px 10px;
}

.pvt-filminfo h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.pvt-filminfo h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvt-filminfo h5 a:hover {
    color: var(--purple);
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-md);
}

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

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

/* ===== DETAIL TITLE ===== */
.pvt-detail-head {
    line-height: 1.8;
    text-align: center;
    padding: 13px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--border);
    border-top: 3px solid var(--purple);
    box-shadow: var(--shadow-xs);
}

.pvt-detail-head a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

/* ===== INFO PANEL ===== */
.pvt-infobox {
    font-size: 14px;
    line-height: 2;
    padding: 18px 22px;
    background: var(--bg-white);
    border-radius: var(--rd);
    margin: 12px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    border-top: 3px solid var(--purple);
}

/* ===== TORRENT CAPTURE ===== */
.pvt-preview img,
.pvt-preview .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--border);
    display: block;
}

.pvt-preview .img_item {
    width: 100%;
}

/* ===== DOWNLOAD BUTTONS ===== */
.pvt-dlzone {
    text-align: center;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--rd);
    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: 12px;
}

.pvt-dlbtn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--purple);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.pvt-dlbtn:hover {
    background: var(--purple-dark);
    box-shadow: var(--purple-glow);
}

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

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

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--cyan);
    color: var(--bg-white);
    border: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--cyan-dark);
    box-shadow: var(--cyan-glow);
}

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

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

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

.a_page_info {
    background: var(--bg-white);
    color: var(--text-body);
    border: 1px solid var(--border);
}

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

.page_info_focus {
    background: var(--purple);
    color: var(--bg-white);
    border: 1px solid var(--purple-dark);
    cursor: default;
}

/* ===== FOOTER ===== */
.pvt-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 3px solid var(--purple);
    margin-top: 24px;
    background: var(--bg-white);
}

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

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

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

/* ===== FRIEND LINKS ===== */
.pvt-flinks {
    padding: 12px 14px;
    background: var(--bg-white);
    border-radius: var(--rd);
    border: 1px solid var(--border);
}

.pvt-flinks dl { margin: 0; }

.pvt-flinks dd {
    display: inline-block;
    margin: 3px 5px;
}

.pvt-flinks a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.pvt-flinks a:hover { color: var(--purple); }

/* ===== 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(--bg-strip); }

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {

    .pvtwrap { padding: 0 8px; }

    .pvt-topbar { padding: 8px 0; }
    .pvt-topbar-inner { flex-wrap: wrap; gap: 8px; }
    .pvt-logo-icon { width: 30px; height: 30px; }
    .pvt-sitename { font-size: 18px; }
    .pvt-domain-row { padding: 3px 10px; gap: 5px; }
    .pvt-domain-lbl { font-size: 10px; }
    .pvt-domain-val { font-size: 12px; }

    .pvtpad { padding: 6px 0; }

    .pvt-catrow { display: flex; align-items: stretch; }

    .pvt-zone-lbl {
        width: 13%;
        min-width: 34px;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        border-right-width: 1px;
    }

    .pvt-zone-links {
        width: 87%;
        gap: 4px;
        padding: 5px 6px;
    }

    .pvt-zone-links a {
        font-size: 14px;
        padding: 6px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .pvt-filminfo { padding: 6px 8px 8px; }
    .pvt-filminfo h5 { font-size: 12px; }
    .pvt-sec-title { font-size: 16px; padding-left: 8px; }

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

    .pvt-taglist { padding: 8px 10px; gap: 5px; }
    .pvt-tag { padding: 3px 10px; font-size: 12px; }

    .pvt-searchbar { padding: 8px 10px; }
    .pvt-searchbar form { gap: 6px; }
    .pvt-searchbar input[type="text"] { min-width: 80px; padding: 8px 12px; font-size: 13px; }
    .pvt-searchbar button { padding: 8px 12px; font-size: 12px; }

    .pvt-dlzone { padding: 12px 8px; gap: 8px; flex-wrap: nowrap; }
    .pvt-dlbtn { padding: 9px 14px; font-size: 12px; }

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

    .pvt-section { margin-bottom: 14px; }
    .pvt-sec-head { margin-bottom: 10px; }
    .pvt-infobox { padding: 14px 16px; font-size: 13px; }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {

    .pvt-sitename { font-size: 15px; }

    .pvt-zone-lbl {
        width: 13%;
        min-width: 30px;
        font-size: 9px;
        padding: 3px 1px;
    }

    .pvt-zone-links {
        width: 87%;
        gap: 3px;
        padding: 4px 4px;
    }

    .pvt-zone-links a {
        font-size: 13px;
        padding: 5px 1px;
        width: calc((100% - 9px) / 4);
    }

    .pvt-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pvt-dlbtn { padding: 8px 10px; font-size: 11px; }
    .pvt-dlzone { padding: 10px 4px; gap: 5px; }
    .share-section { padding: 8px; gap: 6px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 280px; }
}
