/* Video Site — Cream & Yellow Minimal Theme */

:root {
    --cream:     #eeebe2;
    --cream-dk:  #e4e0d5;
    --cream-lt:  #f6f4ef;
    --white:     #ffffff;
    --yellow:    #f0e04a;
    --yellow-dk: #d9ca2a;
    --yellow-lt: #fdfce8;
    --ink:       #131210;
    --ink-sub:   #4a4740;
    --ink-dim:   #8c8980;
    --border:    #dedad0;
    --border-lt: #e8e4da;
    --shadow:    rgba(19, 18, 16, 0.06);
    --shadow-lg: rgba(19, 18, 16, 0.12);
    --shadow-xl: rgba(19, 18, 16, 0.18);
    --r-lg:      14px;
    --r:         10px;
    --r-sm:      7px;
    --r-xs:      5px;
    --ease:      all 0.22s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ── Header ── */
.site-hd {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
    box-shadow: 0 2px 12px var(--shadow);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.hd-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.nm-link:hover .site-name { color: var(--ink-sub); }

.site-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1;
    transition: var(--ease);
}

.url-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 8px;
    background: var(--yellow);
    border-radius: 50px;
    flex-shrink: 0;
}

.url-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: .5px;
    background: rgba(0,0,0,.1);
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

.url-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    letter-spacing: -.2px;
}

/* ── Layout ── */
.pg-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.row-gap { padding: 8px 0; }

/* ── Category Nav ── */
.nav-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

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

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

.nav-zone {
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
    background: var(--yellow);
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: .2px;
}

.nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--cream-lt);
}

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

.nav-links a:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dk);
    box-shadow: 0 2px 8px var(--shadow-lg);
}

.nav-links a.active {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dk);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow-lg);
}

/* ── Search ── */
.find-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.find-box input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--cream-lt);
    color: var(--ink);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}

.find-box input[type="text"]:focus {
    border-color: var(--yellow-dk);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(240, 224, 74, 0.3);
}

.find-box input[type="text"]::placeholder { color: var(--ink-dim); }

.find-box button {
    padding: 9px 16px;
    border: none;
    border-radius: 50px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid var(--yellow-dk);
}

.find-box button:hover {
    background: var(--yellow-dk);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

/* ── Keyword Tags ── */
.keyword-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.kw-chip {
    padding: 4px 13px;
    background: var(--cream-lt);
    border-radius: 50px;
    color: var(--ink-sub);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.kw-chip:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow-dk);
    box-shadow: 0 2px 8px var(--shadow-lg);
}

/* ── Content Section ── */
.content-unit { margin-bottom: 12px; }

.unit-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.unit-head::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--yellow-dk);
    border-radius: 2px;
}

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

.unit-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--ease);
}

.unit-title a:hover { color: var(--ink-sub); text-decoration: underline; }

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

.film-list li { position: relative; }

.film-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--cream-dk);
    border: 1px solid var(--border);
    transition: var(--ease);
}

.film-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}

.film-cover:hover {
    border-color: var(--yellow-dk);
    box-shadow: 0 6px 22px var(--shadow-xl);
    transform: translateY(-2px);
}

.film-cover:hover img { transform: scale(1.07); }

.film-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(19,18,16,.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}

.film-cover:hover::after { opacity: 1; }

.film-desc { padding: 7px 0; }

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

.film-desc h5 a {
    color: var(--ink-sub);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-desc h5 a:hover { color: var(--ink); }

/* ── Video Player ── */
.video-container {
    width: 100%; height: 620px; max-height: 620px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px var(--shadow-xl);
}

/* ── Torrent Capture ── */
.torrent-capture-grid {}

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.torrent-capture-grid img:hover,
.torrent-capture-grid .img_item img:hover {
    box-shadow: none; transform: none;
}

.torrent-capture-grid .img_item { width: 100%; }

/* ── Download Buttons ── */
.btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 12px;
    background: var(--white);
    border-radius: var(--r-lg);
    margin: 10px 0;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
}

.act-link {
    display: inline-block;
    padding: 10px 22px;
    background: var(--yellow);
    color: var(--ink);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 1.5px solid var(--yellow-dk);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow-lg);
}

.act-link:hover {
    background: var(--yellow-dk);
    box-shadow: 0 5px 16px var(--shadow-xl);
    transform: translateY(-1px);
}

/* ── Share Panel ── */
.share-zone {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.share-url-display {
    background: var(--cream-lt);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 800;
    font-size: 11px;
    color: var(--ink);
    background: var(--yellow);
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--yellow-dk);
}

.share-url {
    font-size: 12px;
    color: var(--ink-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 18px;
    background: var(--yellow);
    color: var(--ink);
    border: 1.5px solid var(--yellow-dk);
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow);
}

.share-copy-btn:hover {
    background: var(--yellow-dk);
    box-shadow: 0 4px 14px var(--shadow-xl);
    transform: translateY(-1px);
}

.share-copy-btn:active { transform: scale(.97); }

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

/* ── Pagination ── */
.pages-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.pg-btn, .pg-active {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

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

.pg-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow-dk);
    color: var(--ink);
    box-shadow: 0 2px 10px var(--shadow-lg);
}

.pg-active {
    background: var(--yellow);
    color: var(--ink);
    border: 1.5px solid var(--yellow-dk);
    cursor: default;
    box-shadow: 0 2px 10px var(--shadow-lg);
}

/* ── Footer ── */
.site-foot {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    background: var(--white);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.site-foot p { margin: 5px 0; color: var(--ink-dim); font-size: 12px; }

.site-foot a {
    color: var(--ink-dim);
    text-decoration: none;
    transition: var(--ease);
}

.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── Friend Links ── */
.frd-links {
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 2px 8px var(--shadow);
}

.frd-links dl { margin: 0; }
.frd-links dd { display: inline-block; margin: 3px 5px; }

.frd-links a {
    color: var(--ink-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--ease);
}

.frd-links a:hover { color: var(--ink); text-decoration: underline; }

/* ── Utilities ── */
.clearfix::after { content: ""; display: table; clear: both; }

.vis-mob { display: block; }
.vis-pc  { display: block; }

img[data-original] { background: var(--cream-dk); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .pg-wrap { padding: 0 8px; }
    .site-hd { padding: .45rem 0; }
    .hd-brand { gap: 10px; flex-wrap: nowrap; }
    .site-name { font-size: 20px; }
    .url-badge { padding: 4px 10px 4px 7px; gap: 5px; }
    .url-tag { font-size: 9px; }
    .url-val { font-size: 14px; }
    .row-gap { padding: 6px 0; }

    /* nav: label 15% / links 85%, 2 rows of 4 */
    .nav-strip { display: flex; align-items: stretch; }
    .nav-zone { width: 15%; font-size: 10px; padding: 6px 2px; word-break: keep-all; }
    .nav-links { width: 85%; gap: 3px; padding: 5px 4px; }
    .nav-links a {
        font-size: 12px; padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0; flex-grow: 0;
    }

    .film-list { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .unit-title { font-size: 16px; }
    .film-desc h5 { font-size: 12px; }

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

    .keyword-bar { padding: 8px 10px; gap: 5px; }
    .kw-chip { padding: 3px 10px; font-size: 11px; }

    .act-link { padding: 9px 15px; font-size: 12px; }
    .btn-row { padding: 10px 8px; gap: 7px; }

    .share-zone { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 10px; gap: 6px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; flex-shrink: 0; }

    .pages-nav { padding: 10px 0; gap: 4px; }
    .pg-btn, .pg-active { padding: 5px 11px; font-size: 12px; min-width: 32px; }

    .content-unit { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    .site-name { font-size: 18px; }
    .url-tag { font-size: 9px; }
    .url-val { font-size: 13px; }
    .nav-zone { width: 15%; font-size: 10px; padding: 5px 1px; }
    .nav-links { width: 85%; gap: 3px; padding: 4px 3px; }
    .nav-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .film-list { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .video-container { height: 56.25vw; max-height: 280px; margin-bottom: 8px; }
    .find-box input[type="text"] { min-width: 70px; padding: 7px 10px; font-size: 12px; }
    .find-box button { padding: 7px 10px; font-size: 11px; }
    .btn-row { padding: 8px 5px; gap: 5px; }
    .act-link { padding: 8px 11px; font-size: 11px; }
    .share-zone { padding: 7px 8px; gap: 5px; }
}

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