/* Video Portal Template - Pixabay Minimal Forest Edition */

:root {
    --grn: #2ecc71;
    --grn-deep: #1a9e50;
    --grn-pale: #edfdf4;
    --grn-mid: #27ae60;
    --grn-grad: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%);
    --base: #ffffff;
    --off-white: #f9f9f9;
    --surf: #ffffff;
    --border: #e8e8e8;
    --border-dark: #d0d0d0;
    --ink: #1a1a1a;
    --ink-mid: #444444;
    --ink-light: #777777;
    --ink-dim: #aaaaaa;
    --shd-xs: rgba(0,0,0,0.04);
    --shd-sm: rgba(0,0,0,0.08);
    --shd-md: rgba(0,0,0,0.14);
    --shd-grn: rgba(46,204,113,0.20);
    --r: 8px;
    --r-sm: 5px;
    --r-pill: 50px;
    --fx: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

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

/* ── Header ──────────────────────────────────── */
.masthead {
    background: var(--base);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
}

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

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

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

.brand-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    line-height: 1;
}

.newest-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--grn-pale);
    border: 1.5px solid #b3eecf;
    border-radius: var(--r-pill);
    flex-shrink: 0;
}

.nd-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--grn-mid);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nd-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--grn-deep);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: -0.2px;
}

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

.row-block {
    padding: 7px 0;
}

/* ── Nav Categories ───────────────────────────── */
.nav-board {
    background: var(--surf);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
}

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

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

.zone-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--grn-mid);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: var(--grn-pale);
    letter-spacing: 0.2px;
}

.zone-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--surf);
}

.zone-items a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-sm);
    transition: var(--fx);
    background: var(--off-white);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.zone-items a:hover {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    box-shadow: 0 2px 8px var(--shd-grn);
}

.zone-items a.active {
    background: var(--grn);
    color: #fff;
    border-color: var(--grn);
    box-shadow: 0 2px 8px var(--shd-grn);
    font-weight: 600;
}

/* ── Search ───────────────────────────────────── */
.qbox {
    background: var(--surf);
    border-radius: var(--r);
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
}

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

.qbox input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--r-pill);
    background: var(--off-white);
    color: var(--ink);
    font-size: 13px;
    transition: var(--fx);
    outline: none;
}

.qbox input[type="text"]:focus {
    border-color: var(--grn);
    background: var(--base);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.12);
}

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

.qbox button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--grn-grad);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--fx);
    white-space: nowrap;
    flex-shrink: 0;
}

.qbox button:hover {
    opacity: 0.88;
    box-shadow: 0 4px 12px var(--shd-grn);
}

/* ── Tag Cloud ────────────────────────────────── */
.tcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 13px;
    background: var(--surf);
    border-radius: var(--r);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
}

.tcloud-item {
    padding: 5px 13px;
    background: var(--off-white);
    border-radius: var(--r-pill);
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 12px;
    transition: var(--fx);
    border: 1px solid var(--border);
}

.tcloud-item:hover {
    background: var(--grn-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px var(--shd-grn);
}

/* ── Content Block ────────────────────────────── */
.cblock { margin-bottom: 16px; }

.cblock-hd {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.cblock-ttl {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.cblock-ttl a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--fx);
}

.cblock-ttl a:hover { color: var(--grn-mid); }

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

.vgrid li { animation: riUp 0.42s ease backwards; }
.vgrid li:nth-child(1) { animation-delay: 0.04s; }
.vgrid li:nth-child(2) { animation-delay: 0.08s; }
.vgrid li:nth-child(3) { animation-delay: 0.12s; }
.vgrid li:nth-child(4) { animation-delay: 0.16s; }
.vgrid li:nth-child(5) { animation-delay: 0.20s; }
.vgrid li:nth-child(6) { animation-delay: 0.24s; }
.vgrid li:nth-child(7) { animation-delay: 0.28s; }
.vgrid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes riUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vthumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--off-white);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
}

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

.vthumb:hover {
    border-color: var(--grn);
    box-shadow: 0 4px 16px var(--shd-grn);
}

.vthumb:hover img { transform: scale(1.06); }

.vthumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,158,80,0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.vthumb:hover::after { opacity: 1; }

.vmeta { padding: 7px 0 2px; }

.vmeta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.vmeta h5 a {
    color: var(--ink-mid);
    text-decoration: none;
    transition: var(--fx);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vmeta h5 a:hover { color: var(--grn-mid); }

/* ── Video Player ─────────────────────────────── */
.vplayer {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 16px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shd-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px var(--shd-md);
}

/* ── Preview Image ────────────────────────────── */
.img-preview { width: 100%; }

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

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

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

.dload-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grn-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--fx);
    margin: 0;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.dload-btn:hover {
    opacity: 0.88;
    box-shadow: 0 5px 14px var(--shd-grn);
}

/* ── Share ────────────────────────────────────── */
.share-strip {
    background: var(--surf);
    border-radius: var(--r);
    padding: 14px;
    margin: 12px 0;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-frame {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--ink-mid);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.share-copy-btn {
    padding: 9px 18px;
    background: var(--grn-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--fx);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover { opacity: 0.88; box-shadow: 0 4px 12px var(--shd-grn); }
.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; line-height: 1; }

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--fx);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--surf);
    color: var(--ink);
    border: 1px solid var(--border-dark);
}

.a_page_info:hover {
    background: var(--grn);
    border-color: var(--grn);
    color: #fff;
    box-shadow: 0 2px 8px var(--shd-grn);
}

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

/* ── Footer ───────────────────────────────────── */
.site-foot {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    background: var(--surf);
}

.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(--fx); }
.site-foot a:hover { color: var(--grn-mid); }

/* ── Friend Links ─────────────────────────────── */
.flink-panel {
    padding: 10px 13px;
    background: var(--surf);
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shd-xs);
}

.flink-panel dl { margin: 0; }
.flink-panel dd { display: inline-block; margin: 3px; }

.flink-panel a {
    color: var(--grn-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--fx);
}

.flink-panel a:hover { color: var(--grn); }

/* ── Utility ──────────────────────────────────── */
.only-pc  { display: block; }
.only-mob { display: block; }

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

.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--off-white); }

/* ── Responsive 768px ─────────────────────────── */
@media (max-width: 768px) {
    .main-wrap { padding: 0 8px; }
    .masthead  { padding: 0.4rem 0; }
    .brand-wrap { gap: 10px; flex-wrap: nowrap; }
    .brand-name { font-size: 20px; }
    .newest-domain { padding: 4px 10px; gap: 6px; }
    .nd-label { font-size: 10px; }
    .nd-value { font-size: 16px; }
    .row-block { padding: 5px 0; }

    .nav-line { display: flex; align-items: stretch; }
    .zone-label { width: 15%; font-size: 10px; padding: 7px 2px; word-break: keep-all; line-height: 1.4; }
    .zone-items { width: 85%; font-size: 12px; gap: 3px; padding: 6px 4px; }
    .zone-items a { padding: 4px 2px; font-size: 12px; width: calc((100% - 9px) / 4); flex-shrink: 0; flex-grow: 0; }

    .qbox form   { flex-wrap: nowrap; gap: 5px; }
    .qbox input[type="text"] { min-width: 80px; padding: 8px 11px; font-size: 12px; }
    .qbox button { padding: 8px 10px; font-size: 11px; }

    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vmeta h5 { font-size: 12px; }
    .cblock { margin-bottom: 12px; }
    .cblock-ttl { font-size: 17px; }

    .tcloud { padding: 9px 10px; gap: 5px; }
    .tcloud-item { padding: 4px 11px; font-size: 11px; }

    .dload-row { flex-wrap: nowrap; gap: 7px; padding: 10px 8px; }
    .dload-btn { padding: 9px 14px; font-size: 12px; }

    .share-strip { padding: 9px; gap: 6px; flex-wrap: nowrap; margin: 10px 0; }
    .url-frame   { padding: 8px 11px; gap: 5px; flex: 1; min-width: 0; }
    .share-label { font-size: 11px; }
    .share-url   { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; flex-shrink: 0; }
    .share-icon  { font-size: 13px; }

    .vplayer { height: 56.25vw; max-height: 380px; margin-bottom: 12px; }
    .site-foot { padding: 14px 0; margin-top: 14px; }
    .page_info_div { padding: 10px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

/* ── Responsive 480px ─────────────────────────── */
@media (max-width: 480px) {
    .brand-wrap    { gap: 8px; flex-wrap: nowrap; }
    .brand-name    { font-size: 18px; }
    .newest-domain { padding: 3px 9px; }
    .nd-label      { font-size: 9px; }
    .nd-value      { font-size: 15px; }

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

    .qbox input[type="text"] { min-width: 70px; padding: 7px 10px; font-size: 12px; }
    .qbox button             { padding: 7px 8px; font-size: 11px; }

    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vmeta h5    { font-size: 12px; }
    .cblock-ttl  { font-size: 15px; }

    .dload-row  { padding: 8px 5px; gap: 5px; }
    .dload-btn  { padding: 8px 11px; font-size: 12px; }

    .share-strip { padding: 7px; gap: 5px; flex-wrap: nowrap; }
    .url-frame   { padding: 7px 9px; }
    .share-label { font-size: 10px; }
    .share-url   { font-size: 10px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }

    .vplayer { height: 56.25vw; max-height: 300px; }
}
