/* Streaming Platform Template — Deep Purple & Violet */

:root {
    --vt-purple:   #5e35b1;
    --vt-purple2:  #4527a0;
    --vt-violet:   #7c4dff;
    --vt-violet2:  #651fff;
    --vt-white:    #ffffff;
    --vt-offwhite: #f4f3ff;
    --vt-bg:       #f0eeff;
    --vt-surface:  #ffffff;
    --vt-border:   #e0d9f7;
    --vt-text:     #1a0050;
    --vt-body:     #2d1b6b;
    --vt-muted:    #7b68b0;
    --vt-grad:     linear-gradient(135deg, #4527a0 0%, #7c4dff 60%, #9c6fff 100%);
    --vt-grad2:    linear-gradient(135deg, #5e35b1 0%, #7c4dff 100%);
    --sd-xs: 0 1px 4px rgba(94,53,177,0.08);
    --sd-sm: 0 3px 12px rgba(94,53,177,0.14);
    --sd-md: 0 6px 24px rgba(94,53,177,0.18);
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 14px;
    --ease: all 0.22s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--vt-bg);
    color: var(--vt-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── TOPBAR ─────────────────────────────── */
.site-topbar {
    background: var(--vt-grad);
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(69,39,160,0.35);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    padding: 5px 15px;
}

.domain-badge-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.domain-badge-url {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── CONTAINER ───────────────────────────── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content { padding: 8px 0; }

/* ── NAVIGATION ──────────────────────────── */
.navpanel {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--sd-sm);
}

.navpanel-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--vt-border);
}

.navpanel-row:last-child { border-bottom: none; }

.navpanel-zone {
    width: 10%;
    background: var(--vt-grad2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 3px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.3;
}

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

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

.navpanel-links a:hover {
    background: var(--vt-violet);
    color: #fff;
    border-color: var(--vt-violet);
}

.navpanel-links a.active {
    background: var(--vt-purple);
    color: #fff;
    border-color: var(--vt-purple);
    font-weight: 700;
}

/* ── SEARCH ──────────────────────────────── */
.searchbar {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 8px;
    box-shadow: var(--sd-xs);
}

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

.searchbar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--vt-border);
    border-radius: var(--r-sm);
    background: var(--vt-offwhite);
    color: var(--vt-text);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.searchbar input[type="text"]:focus {
    border-color: var(--vt-violet);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124,77,255,0.13);
}

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

.searchbar button {
    padding: 8px 13px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--vt-grad2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.searchbar button:hover {
    background: var(--vt-violet2);
    box-shadow: var(--sd-sm);
}

/* ── HOT TAGS ────────────────────────────── */
.hotbox {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 8px;
    box-shadow: var(--sd-xs);
}

.hotbox h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--vt-purple);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--vt-violet);
    display: inline-block;
}

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tagcloud-item {
    padding: 3px 12px;
    background: var(--vt-offwhite);
    border-radius: 20px;
    color: var(--vt-purple);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--vt-border);
    font-weight: 600;
    transition: var(--ease);
}

.tagcloud-item:hover {
    background: var(--vt-violet);
    color: #fff;
    border-color: var(--vt-violet);
}

/* ── SECTION HEADING ─────────────────────── */
.vsection { margin-bottom: 14px; }

.vsection-hd {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--vt-border);
    position: relative;
}

.vsection-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--vt-grad2);
}

.vsection-hd h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--vt-purple2);
    margin: 0;
}

.vsection-hd h3 a { color: var(--vt-purple2); text-decoration: none; transition: var(--ease); }
.vsection-hd h3 a:hover { color: var(--vt-violet); }

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

.vgrid li { position: relative; }

.vgrid-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--vt-offwhite);
    border: 1px solid var(--vt-border);
    box-shadow: var(--sd-xs);
    transition: var(--ease);
}

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

.vgrid-thumb:hover { border-color: var(--vt-violet); box-shadow: var(--sd-md); transform: translateY(-2px); }
.vgrid-thumb:hover img { transform: scale(1.05); }

.vgrid-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.7);
    width: 36px;
    height: 36px;
    background: var(--vt-grad2);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 36px;
    text-align: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
}

.vgrid-thumb:hover::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.vgrid-info { padding: 5px 1px 0; }

.vgrid-info h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vgrid-info h5 a { color: var(--vt-body); text-decoration: none; transition: var(--ease); }
.vgrid-info h5 a:hover { color: var(--vt-violet); }

/* ── DETAIL PAGE ─────────────────────────── */
.detail-title {
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--vt-surface);
    border-radius: var(--r-md);
    border-left: 4px solid var(--vt-violet);
    box-shadow: var(--sd-sm);
    line-height: 1.7;
}

.detail-title a { color: var(--vt-violet); text-decoration: none; font-weight: 700; margin-right: 6px; }

.detail-meta {
    font-size: 14px;
    line-height: 2;
    padding: 18px 22px;
    background: var(--vt-surface);
    border-radius: var(--r-md);
    margin: 8px 0;
    box-shadow: var(--sd-xs);
    border: 1px solid var(--vt-border);
}

.capture-block { margin-top: 8px; }
.capture-block picture { display: block; width: 100%; }
.capture-block picture img, .capture-block img { width: 100%; height: auto; display: block; border-radius: var(--r-xs); }

/* ── DOWNLOAD BUTTONS ────────────────────── */
.dl-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin: 8px 0;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--vt-grad2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ease);
    box-shadow: 0 3px 10px rgba(94,53,177,0.3);
}

.dl-btn:hover { background: var(--vt-violet2); box-shadow: var(--sd-md); transform: translateY(-1px); }

.client-pc, .client-mob { text-align: center; padding: 9px 0; }
.client-pc a, .client-mob a { color: var(--vt-violet); text-decoration: none; font-weight: 600; font-size: 13px; }

/* ── SHARE BOX ───────────────────────────── */
.sharebox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin: 10px 0;
    box-shadow: var(--sd-xs);
    flex-wrap: nowrap;
}

.sharebox-display {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    background: var(--vt-offwhite);
    border: 1px solid var(--vt-border);
    border-radius: var(--r-xs);
    padding: 7px 10px;
}

.sharebox-label { font-size: 11px; font-weight: 800; color: var(--vt-violet); white-space: nowrap; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.sharebox-url { font-family: 'Courier New', monospace; font-size: 11px; color: var(--vt-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sharebox-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--vt-grad2);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ease);
}

.sharebox-btn:hover { background: var(--vt-violet2); }
.sharebox-icon { font-size: 14px; }

/* ── PAGINATION ──────────────────────────── */
.pgrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 0;
}

.pgbtn { display: inline-block; padding: 6px 12px; border-radius: var(--r-xs); font-size: 13px; text-decoration: none; transition: var(--ease); min-width: 34px; text-align: center; }
.a_page_info { background: var(--vt-surface); color: var(--vt-body); border: 1px solid var(--vt-border); }
.a_page_info:hover { background: var(--vt-violet); border-color: var(--vt-violet); color: #fff; }
.page_info_focus { background: var(--vt-grad2); color: #fff; border: 1px solid var(--vt-purple); cursor: default; font-weight: 700; }

/* ── FRIEND LINKS ────────────────────────── */
.flinks-wrap { margin-bottom: 8px; }
.flinks-hd { font-size: 14px; font-weight: 800; color: var(--vt-purple); margin-bottom: 6px; padding-bottom: 5px; border-bottom: 2px solid var(--vt-violet); display: inline-block; }
.flinks-body { padding: 9px 12px; background: var(--vt-surface); border-radius: var(--r-sm); border: 1px solid var(--vt-border); box-shadow: var(--sd-xs); }
.flinks-body dl { margin: 0; }
.flinks-body dd { display: inline-block; margin: 3px 4px; }
.flinks-body a { color: var(--vt-violet); text-decoration: none; font-size: 13px; transition: var(--ease); }
.flinks-body a:hover { color: var(--vt-purple2); }

/* ── FOOTER ──────────────────────────────── */
.sitefooter { text-align: center; padding: 18px 0; border-top: 2px solid var(--vt-border); margin-top: 8px; background: var(--vt-surface); }
.sitefooter p { color: var(--vt-muted); font-size: 12px; margin: 4px 0; }
.sitefooter a { color: var(--vt-violet); text-decoration: none; }
.sitefooter a:hover { color: var(--vt-purple); }

/* ── UTILITIES ───────────────────────────── */
.clearfix::after { content:""; display:table; clear:both; }
.hide_mobile { display: block; }
.hide_pc     { display: block; }
img[data-original] { background: var(--vt-offwhite); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 8px; }
    .content   { padding: 5px 0; }
    .hide_mobile { display: none !important; }

    .brand-title { font-size: 19px; }
    .domain-badge-url { font-size: 14px; }
    .domain-badge-label { font-size: 9px; }

    /* Nav — zone 15%, links 85%, 4 per row */
    .navpanel-zone { width: 15%; font-size: 10px; padding: 6px 2px; }
    .navpanel-links { width: 85%; gap: 4px; padding: 6px 5px; }
    .navpanel-links a {
        font-size: 13px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search — nowrap enforced */
    .searchbar form { flex-wrap: nowrap; gap: 5px; }
    .searchbar input[type="text"] { min-width: 0; padding: 7px 9px; font-size: 13px; }
    .searchbar button { padding: 7px 9px; font-size: 12px; flex-shrink: 0; }

    /* Film — 2 per row */
    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vgrid-info h5 { font-size: 12px; }

    .vsection-hd h3 { font-size: 15px; }
    .vsection { margin-bottom: 10px; }
    .tagcloud-item { font-size: 12px; padding: 3px 9px; }
    .dl-btn { padding: 9px 14px; font-size: 13px; }

    .sharebox { flex-wrap: nowrap; padding: 7px 9px; gap: 6px; }
    .sharebox-label { font-size: 10px; }
    .sharebox-url { font-size: 10px; }
    .sharebox-btn { padding: 7px 10px; font-size: 11px; }

    .pgbtn, .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 17px; }
    .domain-badge-url { font-size: 13px; }

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

    .searchbar input[type="text"] { padding: 6px 8px; font-size: 12px; }
    .searchbar button { padding: 6px 7px; font-size: 11px; }

    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .vgrid-info h5 { font-size: 12px; }
    .dl-btn { padding: 8px 11px; font-size: 12px; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
    .vgrid { grid-template-columns: repeat(4, 1fr); }
    .navpanel-links a { width: calc((100% - 35px) / 8); }
}
