/* Video Portal Template - Restaurant Guru Dark Hero Edition */

:root {
    --red: #c8291e;
    --red-dk: #a61f16;
    --red-lt: #fdf0ef;
    --red-grad: linear-gradient(135deg, #c8291e 0%, #a61f16 100%);
    --grn: #2a9d2a;
    --grn-dk: #1e7a1e;
    --grn-grad: linear-gradient(135deg, #2a9d2a 0%, #1e7a1e 100%);
    --hero-bg: #1a1a1a;
    --hero-grad: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
    --page-bg: #f4f4f6;
    --card: #ffffff;
    --card-alt: #fafafa;
    --border: #e8e8e8;
    --border-dk: #d0d0d0;
    --txt: #1a1a1a;
    --txt-mid: #333333;
    --txt-soft: #666666;
    --txt-dim: #999999;
    --shd-xs: rgba(0,0,0,0.05);
    --shd-sm: rgba(0,0,0,0.10);
    --shd-md: rgba(0,0,0,0.18);
    --shd-red: rgba(200,41,30,0.20);
    --shd-grn: rgba(42,157,42,0.20);
    --r: 12px;
    --r-sm: 8px;
    --r-xs: 5px;
    --r-pill: 50px;
    --tr: all 0.2s ease;
}

*, *::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(--page-bg);
    color: var(--txt);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ── Hero Header (dark background like RG) ───── */
.rg-hero {
    background: var(--hero-grad);
    padding: 0.65rem 0;
    border-bottom: 3px solid var(--red);
}

.rg-hero-in {
    display: flex;
    justify-content: center;
    align-items: center;
}

.id-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

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

.id-name {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    line-height: 1;
}

.addr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(200,41,30,0.6);
    border-radius: var(--r-pill);
    flex-shrink: 0;
}

.addr-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.addr-url {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: -0.2px;
}

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

.rg-seg {
    padding: 7px 0;
}

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

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

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

.nav-zone {
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: var(--red);
    letter-spacing: 0.2px;
}

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

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

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

.nav-items a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}

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

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

.search-card input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: 1.5px solid var(--border-dk);
    border-radius: var(--r-pill);
    background: var(--card-alt);
    color: var(--txt);
    font-size: 13px;
    transition: var(--tr);
    outline: none;
}

.search-card input[type="text"]:focus {
    border-color: var(--red);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(200,41,30,0.10);
}

.search-card input[type="text"]::placeholder { color: var(--txt-dim); }

.search-card button {
    padding: 10px 14px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--red-grad);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.search-card button:hover {
    opacity: 0.88;
    box-shadow: 0 3px 10px var(--shd-red);
}

/* ── Hot Tags ─────────────────────────────────── */
.tags-card {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 13px;
    background: var(--card);
    border-radius: var(--r);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shd-xs);
}

.tag-node {
    padding: 5px 13px;
    background: var(--card-alt);
    border-radius: var(--r-pill);
    color: var(--txt-soft);
    text-decoration: none;
    font-size: 12px;
    transition: var(--tr);
    border: 1px solid var(--border);
}

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

/* ── Section Block ────────────────────────────── */
.sec-blk { margin-bottom: 16px; }

.sec-top {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.sec-top::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--red-grad);
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.sec-head {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--txt);
    letter-spacing: -0.2px;
    display: inline;
    vertical-align: middle;
}

.sec-head a {
    color: var(--txt);
    text-decoration: none;
    transition: var(--tr);
}

.sec-head a:hover { color: var(--red); }

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

.film-row li { animation: liftIn 0.38s ease backwards; }
.film-row li:nth-child(1) { animation-delay: 0.03s; }
.film-row li:nth-child(2) { animation-delay: 0.07s; }
.film-row li:nth-child(3) { animation-delay: 0.11s; }
.film-row li:nth-child(4) { animation-delay: 0.15s; }
.film-row li:nth-child(5) { animation-delay: 0.19s; }
.film-row li:nth-child(6) { animation-delay: 0.23s; }
.film-row li:nth-child(7) { animation-delay: 0.27s; }
.film-row li:nth-child(8) { animation-delay: 0.31s; }

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

.film-img {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    aspect-ratio: 600 / 350;
    background: var(--card-alt);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shd-xs);
}

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

.film-img:hover {
    border-color: var(--red);
    box-shadow: 0 6px 18px var(--shd-red);
}

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

.film-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(200,41,30,0.50) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

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

.film-cap { padding: 7px 0 2px; }

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

.film-cap h5 a {
    color: var(--txt-soft);
    text-decoration: none;
    transition: var(--tr);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-cap h5 a:hover { color: var(--red); }

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

.player-stage iframe,
.player-stage video,
.player-stage #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 ────────────────────────────── */
.shots-wrap { width: 100%; }

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

.shots-wrap .img_item { width: 100%; }

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

.btn-dl {
    display: inline-block;
    padding: 11px 22px;
    background: var(--red-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--tr);
    margin: 0;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

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

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

.url-box {
    background: var(--card-alt);
    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: 800;
    font-size: 12px;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

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

.share-icon { font-size: 14px; line-height: 1; }

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

.copy-share:hover { opacity: 0.88; box-shadow: 0 4px 12px var(--shd-grn); }
.copy-share:active { transform: scale(0.97); }

/* ── 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: 8px 14px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--tr);
    min-width: 38px;
    text-align: center;
}

.a_page_info {
    background: var(--card);
    color: var(--txt);
    border: 1px solid var(--border-dk);
    box-shadow: 0 1px 4px var(--shd-xs);
}

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

.page_info_focus {
    background: var(--red-grad);
    color: #fff;
    border: 1px solid var(--red-dk);
    cursor: default;
    box-shadow: 0 2px 8px var(--shd-red);
}

/* ── Footer ───────────────────────────────────── */
.rg-footer {
    padding: 20px 0;
    text-align: center;
    background: var(--hero-grad);
    border-top: 3px solid var(--red);
    margin-top: 18px;
}

.rg-footer p { margin: 5px 0; color: #aaaaaa; font-size: 12px; }
.rg-footer a { color: #aaaaaa; text-decoration: none; transition: var(--tr); }
.rg-footer a:hover { color: var(--red); }

/* ── Friend Links ─────────────────────────────── */
.flinks-card {
    padding: 11px 13px;
    background: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shd-xs);
}

.flinks-card dl { margin: 0; }
.flinks-card dd { display: inline-block; margin: 3px; }

.flinks-card a {
    color: var(--red);
    text-decoration: none;
    font-size: 13px;
    transition: var(--tr);
}

.flinks-card a:hover { color: var(--red-dk); text-decoration: underline; }

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

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

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

/* ── Responsive 768px ─────────────────────────── */
@media (max-width: 768px) {
    .rg-wrap { padding: 0 8px; }
    .rg-hero { padding: 0.4rem 0; }
    .id-row  { gap: 10px; flex-wrap: nowrap; }
    .id-name { font-size: 20px; }
    .addr-chip { padding: 4px 10px; gap: 6px; }
    .addr-tag { font-size: 10px; }
    .addr-url { font-size: 16px; }
    .rg-seg { padding: 5px 0; }

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

    /* search same row, no wrap */
    .search-card form { flex-wrap: nowrap; gap: 5px; }
    .search-card input[type="text"] { min-width: 80px; padding: 8px 11px; font-size: 12px; }
    .search-card button { padding: 8px 10px; font-size: 11px; }

    /* 2-col grid */
    .film-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .film-cap h5 { font-size: 12px; }
    .sec-blk { margin-bottom: 12px; }
    .sec-head { font-size: 16px; }

    .tags-card { padding: 9px 10px; gap: 5px; }
    .tag-node { padding: 4px 11px; font-size: 11px; }

    .btns-card { flex-wrap: nowrap; gap: 7px; padding: 10px 8px; }
    .btn-dl    { padding: 9px 13px; font-size: 12px; }

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

    .player-stage { height: 56.25vw; max-height: 380px; margin-bottom: 12px; }
    .rg-footer { 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) {
    .id-row  { gap: 8px; flex-wrap: nowrap; }
    .id-name { font-size: 18px; }
    .addr-chip { padding: 3px 9px; }
    .addr-tag { font-size: 9px; }
    .addr-url { font-size: 15px; }

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

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

    .film-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .film-cap h5 { font-size: 12px; }
    .sec-head { font-size: 15px; }

    .btns-card { padding: 8px 5px; gap: 5px; }
    .btn-dl    { padding: 8px 11px; font-size: 12px; }

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

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