/* ================================================
   VX Film Portal — Purple & White Clean Theme
   ================================================ */

:root {
    --vx-purple:        #9B31D4;
    --vx-purple-deep:   #6D21A4;
    --vx-purple-soft:   #BF6EE8;
    --vx-purple-pale:   #F5EEFF;
    --vx-purple-ghost:  rgba(155, 49, 212, 0.10);
    --vx-purple-glow:   rgba(155, 49, 212, 0.25);
    --vx-white:         #FFFFFF;
    --vx-snow:          #FAFAFA;
    --vx-line:          #EBEBEB;
    --vx-line-light:    #F4F4F4;
    --vx-ink:           #1A1A2E;
    --vx-ink-mid:       #52525B;
    --vx-ink-muted:     #A1A1AA;
    --vx-shadow-xs:     0 1px 2px rgba(0,0,0,0.06);
    --vx-shadow-sm:     0 2px 6px rgba(0,0,0,0.07);
    --vx-shadow-md:     0 4px 14px rgba(0,0,0,0.09);
    --vx-shadow-purple: 0 4px 18px rgba(155,49,212,0.18);
    --vx-r:             8px;
    --vx-r-sm:          5px;
    --vx-r-lg:          12px;
    --vx-r-pill:        999px;
    --vx-ease:          all 0.2s cubic-bezier(0.4,0,0.2,1);
    --vx-grad:          linear-gradient(135deg, #9B31D4 0%, #BF6EE8 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--vx-snow);
    color: var(--vx-ink);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* -----------------------------------------------
   SITE HEADER  (NOT sticky)
   ----------------------------------------------- */
.vx-topbar {
    background: var(--vx-white);
    border-bottom: 2px solid var(--vx-purple);
    padding: 0.7rem 0;
}

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

.vx-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.vx-logo-lnk {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--vx-ease);
}

.vx-logo-lnk:hover { opacity: 0.85; }

.vx-sitename {
    font-size: 27px;
    font-weight: 900;
    color: var(--vx-purple);
    letter-spacing: -0.6px;
    line-height: 1.2;
    display: inline-block;
}

.vx-domain-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vx-purple-pale);
    border: 1px solid rgba(155,49,212,0.25);
    border-radius: var(--vx-r-pill);
    padding: 5px 15px;
}

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

.vx-domain-url {
    font-size: 14px;
    font-weight: 700;
    color: var(--vx-purple-deep);
    white-space: nowrap;
}

/* -----------------------------------------------
   PAGE SHELL
   ----------------------------------------------- */
.vx-shell {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

.vx-block { padding: 13px 0; }

/* -----------------------------------------------
   CATEGORY / NAV GRID
   ----------------------------------------------- */
.vx-nav-board {
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    margin-bottom: 13px;
    box-shadow: var(--vx-shadow-xs);
}

.vx-nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--vx-line-light);
}

.vx-nav-strip:last-child { border-bottom: none; }

.vx-nav-zone {
    width: 10%;
    flex-shrink: 0;
    background: var(--vx-grad);
    color: var(--vx-white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    line-height: 1.3;
}

.vx-nav-items {
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 10px;
    align-items: center;
    background: var(--vx-white);
}

.vx-nav-items a {
    display: inline-block;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    text-align: center;
    padding: 5px 3px;
    font-size: 13px;
    color: var(--vx-ink-mid);
    background: var(--vx-snow);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-sm);
    white-space: nowrap;
    transition: var(--vx-ease);
}

.vx-nav-items a:hover,
.vx-nav-items a.active {
    background: var(--vx-purple);
    color: var(--vx-white);
    border-color: var(--vx-purple);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--vx-purple-glow);
}

/* -----------------------------------------------
   SEARCH BAR
   ----------------------------------------------- */
#vx-search-bar {
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    padding: 13px 15px;
    margin-bottom: 13px;
    box-shadow: var(--vx-shadow-xs);
}

.vx-search-row form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.vx-search-row input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 10px 16px;
    border: 1.5px solid var(--vx-line);
    border-radius: var(--vx-r-pill);
    background: var(--vx-snow);
    color: var(--vx-ink);
    font-size: 14px;
    outline: none;
    transition: var(--vx-ease);
}

.vx-search-row input[type="text"]:focus {
    border-color: var(--vx-purple);
    background: var(--vx-white);
    box-shadow: 0 0 0 3px var(--vx-purple-ghost);
}

.vx-search-row input[type="text"]::placeholder { color: var(--vx-ink-muted); }

.vx-search-row button {
    flex-shrink: 0;
    padding: 10px 18px;
    border: none;
    border-radius: var(--vx-r-pill);
    background: var(--vx-grad);
    color: var(--vx-white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--vx-ease);
}

.vx-search-row button:hover {
    box-shadow: var(--vx-shadow-purple);
    transform: translateY(-1px);
}

/* -----------------------------------------------
   TAG CLOUD
   ----------------------------------------------- */
.vx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 14px;
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    margin-bottom: 13px;
    box-shadow: var(--vx-shadow-xs);
}

.vx-tag {
    display: inline-block;
    padding: 5px 13px;
    background: var(--vx-snow);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-pill);
    font-size: 13px;
    color: var(--vx-ink-mid);
    transition: var(--vx-ease);
}

.vx-tag:hover {
    background: var(--vx-purple-pale);
    border-color: rgba(155,49,212,0.3);
    color: var(--vx-purple);
}

/* -----------------------------------------------
   CONTENT SECTION CARD
   ----------------------------------------------- */
.vx-section {
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--vx-shadow-xs);
}

.vx-section-body { padding: 16px 16px 18px; }

.vx-sec-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vx-line);
    position: relative;
}

.vx-sec-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    background: var(--vx-grad);
    border-radius: 2px;
}

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

.vx-sec-title a { color: var(--vx-ink); transition: var(--vx-ease); }
.vx-sec-title a:hover { color: var(--vx-purple); }

/* -----------------------------------------------
   FILM GRID
   ----------------------------------------------- */
.vx-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.vx-grid li { position: relative; }

.vx-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--vx-r);
    aspect-ratio: 600 / 350;
    background: var(--vx-line-light);
    border: 1px solid var(--vx-line);
    transition: var(--vx-ease);
}

.vx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.vx-thumb:hover {
    box-shadow: var(--vx-shadow-purple);
    transform: translateY(-2px);
}

.vx-thumb:hover img { transform: scale(1.07); }

.vx-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(109,33,164,0.38) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.vx-thumb:hover::after { opacity: 1; }

.vx-caption { padding: 7px 0 2px; }

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

.vx-caption h5 a {
    color: var(--vx-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--vx-ease);
}

.vx-caption h5 a:hover { color: var(--vx-purple); }

/* -----------------------------------------------
   VIDEO PLAYER
   ----------------------------------------------- */
.vx-player-frame {
    width: 100%;
    height: 620px;
    max-height: 620px;
    background: #000;
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--vx-shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--vx-shadow-md);
}

/* -----------------------------------------------
   TORRENT PREVIEW
   ----------------------------------------------- */
.vx-preview-wrap { width: 100%; margin: 12px 0 4px; }

.vx-preview-wrap img,
.vx-preview-wrap .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--vx-r);
    border: 1px solid var(--vx-line);
    display: block;
}

.vx-preview-wrap .img_item { width: 100%; }

/* -----------------------------------------------
   DETAIL META BLOCK
   ----------------------------------------------- */
.vx-meta-block {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    margin: 14px 0;
    box-shadow: var(--vx-shadow-xs);
}

/* -----------------------------------------------
   TITLE BANNER (detail pages)
   ----------------------------------------------- */
.vx-detail-head {
    text-align: center;
    padding: 18px 20px;
    font-size: 17px;
    line-height: 1.8;
    margin: 14px 0;
    word-break: break-all;
    background: var(--vx-purple-pale);
    border-radius: var(--vx-r-lg);
    border: 1px solid rgba(155,49,212,0.18);
}

/* -----------------------------------------------
   ACTION BUTTONS
   ----------------------------------------------- */
.vx-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px;
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    margin: 14px 0;
    box-shadow: var(--vx-shadow-xs);
}

.vx-dl-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--vx-grad);
    color: var(--vx-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--vx-r-pill);
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--vx-ease);
    flex-shrink: 0;
    text-decoration: none;
}

.vx-dl-btn:hover {
    box-shadow: var(--vx-shadow-purple);
    transform: translateY(-1px);
}

/* -----------------------------------------------
   SHARE PANEL
   ----------------------------------------------- */
.vx-share-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    padding: 14px 16px;
    margin: 14px 0;
    box-shadow: var(--vx-shadow-xs);
}

.vx-url-display {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--vx-snow);
    border: 1.5px solid var(--vx-line);
    border-radius: var(--vx-r);
    padding: 9px 13px;
}

.vx-url-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--vx-white);
    background: var(--vx-purple);
    padding: 3px 9px;
    border-radius: var(--vx-r-pill);
    white-space: nowrap;
}

.vx-url-text {
    font-size: 13px;
    color: var(--vx-ink-mid);
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-copy-trigger {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--vx-grad);
    color: var(--vx-white);
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--vx-r-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--vx-ease);
}

.vx-copy-trigger:hover {
    box-shadow: var(--vx-shadow-purple);
    transform: translateY(-1px);
}

.vx-copy-ico { font-size: 16px; }

/* -----------------------------------------------
   PAGINATION
   ----------------------------------------------- */
.vx-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0;
}

.vx-pg, .vx-pg-now {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--vx-r-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-width: 38px;
    transition: var(--vx-ease);
}

.vx-pg {
    background: var(--vx-white);
    color: var(--vx-ink);
    border: 1px solid var(--vx-line);
}

.vx-pg:hover {
    background: var(--vx-purple);
    color: var(--vx-white);
    border-color: var(--vx-purple);
    box-shadow: 0 2px 8px var(--vx-purple-glow);
}

.vx-pg-now {
    background: var(--vx-grad);
    color: var(--vx-white);
    border: 1px solid var(--vx-purple);
    cursor: default;
}

/* -----------------------------------------------
   FOOTER
   ----------------------------------------------- */
.vx-foot {
    padding: 26px 0;
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid var(--vx-line);
    background: var(--vx-white);
}

.vx-foot-copy p { margin: 6px 0; font-size: 13px; color: var(--vx-ink-mid); }

.vx-foot-copy a { color: var(--vx-ink-mid); transition: var(--vx-ease); }
.vx-foot-copy a:hover { color: var(--vx-purple); }

/* -----------------------------------------------
   FRIEND LINKS
   ----------------------------------------------- */
.vx-flinks {
    padding: 14px 16px;
    background: var(--vx-white);
    border: 1px solid var(--vx-line);
    border-radius: var(--vx-r-lg);
    box-shadow: var(--vx-shadow-xs);
}

.vx-flinks dl { margin: 0; }
.vx-flinks dd { display: inline-block; margin: 3px 5px; }
.vx-flinks a { font-size: 13px; color: var(--vx-purple-soft); transition: var(--vx-ease); }
.vx-flinks a:hover { color: var(--vx-purple-deep); text-decoration: underline; }

/* -----------------------------------------------
   VISIBILITY UTILS
   ----------------------------------------------- */
.vx-hide-mob  { display: block; }
.vx-hide-desk { display: block; }

@media (max-width: 768px)  { .vx-hide-mob  { display: none !important; } }
@media (min-width: 769px)  { .vx-hide-desk { display: none !important; } }

/* clearfix */
.vx-cf::after { content: ""; display: table; clear: both; }

/* -----------------------------------------------
   RESPONSIVE — LARGE MOBILE (≤768px)
   ----------------------------------------------- */
@media (max-width: 768px) {
    .vx-shell { padding: 0 10px; }
    .vx-topbar { padding: 0.55rem 0; }
    .vx-brand { gap: 12px; }
    .vx-sitename { font-size: 20px; }
    .vx-domain-wrap { padding: 4px 11px; gap: 6px; }
    .vx-domain-label { font-size: 10px; }
    .vx-domain-url   { font-size: 13px; }
    .vx-block { padding: 9px 0; }

    /* nav: zone 15%, items 85%, 4 per row */
    .vx-nav-zone { width: 15%; font-size: 10px; padding: 8px 3px; }
    .vx-nav-items {
        width: 85%;
        flex-wrap: wrap;
        gap: 4px;
        padding: 7px 5px;
    }
    .vx-nav-items a {
        font-size: 14px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

    #vx-search-bar { padding: 10px 12px; }
    .vx-search-row form { gap: 6px; }
    .vx-search-row input[type="text"] { min-width: 90px; padding: 9px 12px; font-size: 13px; }
    .vx-search-row button { padding: 9px 11px; font-size: 12px; }

    .vx-section-body { padding: 12px; }
    .vx-sec-title { font-size: 16px; }
    .vx-caption h5 { font-size: 12px; }

    .vx-player-frame { height: 56.25vw; max-height: 380px; margin-bottom: 12px; }

    .vx-btn-row { padding: 12px 8px; gap: 8px; }
    .vx-dl-btn { padding: 10px 14px; font-size: 13px; }

    .vx-share-strip { padding: 10px 12px; gap: 8px; }
    .vx-url-display { padding: 8px 10px; gap: 7px; }
    .vx-url-label { font-size: 10px; }
    .vx-url-text  { font-size: 11px; }
    .vx-copy-trigger { padding: 9px 13px; font-size: 12px; }
    .vx-copy-ico { font-size: 14px; }

    .vx-pages { padding: 14px 0; gap: 5px; }
    .vx-pg, .vx-pg-now { padding: 7px 12px; font-size: 12px; min-width: 34px; }

    .vx-foot { padding: 18px 0; margin-top: 18px; }
    .vx-tags { padding: 10px 12px; gap: 6px; }
    .vx-tag  { font-size: 12px; padding: 4px 11px; }
}

/* -----------------------------------------------
   RESPONSIVE — SMALL MOBILE (≤480px)
   ----------------------------------------------- */
@media (max-width: 480px) {
    .vx-topbar { padding: 0.4rem 0; }
    .vx-sitename { font-size: 18px; }
    .vx-domain-wrap { padding: 4px 9px; gap: 5px; }
    .vx-domain-label { font-size: 9px; }
    .vx-domain-url   { font-size: 12px; }

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

    .vx-grid { gap: 8px; }
    .vx-sec-title { font-size: 15px; }
    .vx-caption h5 { font-size: 12px; }

    .vx-player-frame { height: 56.25vw; max-height: 280px; }
    .vx-dl-btn { padding: 9px 11px; font-size: 12px; }
    .vx-copy-trigger { padding: 8px 11px; font-size: 11px; }
    .vx-url-text { font-size: 10px; }
}

/* PC: 4 columns */
@media (min-width: 769px) {
    .vx-grid { grid-template-columns: repeat(4, 1fr); }
}

img[data-original] { background: var(--vx-line-light); }