/* Film & Video Website Template - Warm Orange Style */

:root {
    --oc-primary: #f47920;
    --oc-primary-dk: #d96200;
    --oc-accent: #ff9a3c;
    --oc-red: #e8402a;
    --oc-bg: #fff8f2;
    --oc-bg2: #ffffff;
    --oc-card: #ffffff;
    --oc-dark: #2c1810;
    --oc-mid: #5a3e32;
    --oc-muted: #8a6a5a;
    --oc-border: #ffd5aa;
    --oc-border2: #ffe8d0;
    --oc-shadow: rgba(180, 80, 0, 0.08);
    --oc-shadow-lg: rgba(180, 80, 0, 0.18);
    --oc-grad: linear-gradient(135deg, #f47920 0%, #e8402a 100%);
    --oc-grad2: linear-gradient(135deg, #ff9a3c 0%, #f47920 100%);
    --oc-r: 8px;
    --oc-r-sm: 5px;
    --oc-ease: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--oc-bg);
    color: var(--oc-dark);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

a { text-decoration: none; }

/* ── Site Header ── */
.site-header {
    background: var(--oc-grad);
    z-index: 100;
    padding: 0.55rem 0;
    box-shadow: 0 3px 10px var(--oc-shadow-lg);
}

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

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

.brand-logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--oc-ease);
}

.brand-logo:hover {
    opacity: 0.88;
}

.brand-name {
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: inline-block;
}

.addr-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.22);
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
}

.addr-tip {
    font-size: 11px;
    font-weight: 700;
    color: #ffe5cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.addr-val {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

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

.pg-block {
    padding: 12px 0;
}

/* ── Category Navigation ── */
.cat-nav {
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 8px var(--oc-shadow);
}

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

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

.cat-zone {
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    background: var(--oc-grad);
    border-right: 1px solid var(--oc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.cat-list {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
}

.cat-list a {
    display: inline-block;
    color: var(--oc-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--oc-r-sm);
    transition: var(--oc-ease);
    background: var(--oc-bg);
    border: 1px solid var(--oc-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.cat-list a:hover {
    background: var(--oc-grad);
    color: #fff;
    border-color: var(--oc-primary);
    box-shadow: 0 3px 10px var(--oc-shadow-lg);
}

.cat-list a.active {
    background: var(--oc-grad);
    color: #fff;
    border-color: var(--oc-primary);
    box-shadow: 0 3px 10px var(--oc-shadow-lg);
    font-weight: 700;
}

/* ── Search Box ── */
.srch-box {
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 6px var(--oc-shadow);
}

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

.srch-box input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 2px solid var(--oc-border);
    border-radius: var(--oc-r-sm);
    background: var(--oc-bg);
    color: var(--oc-dark);
    font-size: 14px;
    transition: var(--oc-ease);
    outline: none;
    font-family: inherit;
}

.srch-box input[type="text"]:focus {
    border-color: var(--oc-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.15);
}

.srch-box input[type="text"]::placeholder {
    color: var(--oc-muted);
}

.srch-box button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--oc-r-sm);
    background: var(--oc-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--oc-ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.srch-box button:hover {
    background: var(--oc-grad2);
    box-shadow: 0 5px 14px var(--oc-shadow-lg);
}

/* ── Hot Tag Groups ── */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px;
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    margin-bottom: 14px;
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 6px var(--oc-shadow);
}

.tag-link {
    padding: 5px 13px;
    background: var(--oc-bg);
    border-radius: 14px;
    color: var(--oc-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--oc-ease);
    border: 1px solid var(--oc-border);
    font-weight: 500;
}

.tag-link:hover {
    background: var(--oc-grad);
    color: #fff;
    border-color: var(--oc-primary);
    box-shadow: 0 3px 8px var(--oc-shadow);
}

/* ── Section Blocks ── */
.section-wrap {
    margin-bottom: 22px;
}

.section-hd {
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 3px solid var(--oc-border2);
    position: relative;
}

.section-hd::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--oc-grad);
    border-radius: 2px;
}

.section-ttl {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.2px;
    color: var(--oc-dark);
}

.section-ttl a {
    color: var(--oc-dark);
    text-decoration: none;
    transition: var(--oc-ease);
}

.section-ttl a:hover {
    color: var(--oc-primary);
}

/* ── Film Thumbnail Grid ── */
/* PC: 4 per row | Mobile: 2 per row | aspect-ratio 600:350 */
.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.film-grid li {
    position: relative;
    animation: ocFadeUp 0.5s ease backwards;
}

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

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

.film-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--oc-r);
    /* aspect-ratio 600:350 */
    aspect-ratio: 600 / 350;
    background: var(--oc-border2);
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 7px var(--oc-shadow);
}

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

.film-cover:hover {
    box-shadow: 0 6px 20px var(--oc-shadow-lg);
}

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

.film-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,12,0,0.68) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.film-desc {
    padding: 8px 0 4px;
}

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

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

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

/* ── Video Player ── */
.video-container {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 18px;
    background: #1a0800;
    border-radius: var(--oc-r);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--oc-shadow-lg);
    position: relative;
}

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

.MacPlayer {
    background: #1a0800;
    border-radius: var(--oc-r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 22px var(--oc-shadow-lg);
}

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

.preview-img-wrap picture {
    display: block;
    width: 100%;
}

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

/* ── Download / Action Buttons ── */
.action-btns {
    text-align: center;
    padding: 14px;
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    margin: 14px 0;
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 6px var(--oc-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.dl-btn:hover {
    background: var(--oc-grad2);
    box-shadow: 0 6px 18px var(--oc-shadow-lg);
    border-color: rgba(255,255,255,0.25);
}

/* ── Share Section ── */
.share-section {
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    padding: 18px;
    margin: 18px 0;
    border: 1px solid var(--oc-border);
    box-shadow: 0 2px 6px var(--oc-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: var(--oc-bg);
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-r-sm);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--oc-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 13px;
    color: var(--oc-mid);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 11px 22px;
    background: var(--oc-grad);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--oc-r-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--oc-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--oc-grad2);
    box-shadow: 0 5px 14px var(--oc-shadow-lg);
}

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

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

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

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

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

.a_page_info:hover {
    background: var(--oc-grad);
    border-color: var(--oc-primary);
    color: #fff;
}

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

/* ── Friend Links ── */
.flink-box {
    padding: 12px;
    background: var(--oc-bg2);
    border-radius: var(--oc-r);
    border: 1px solid var(--oc-border);
}

.flink-box dl { margin: 0; }

.flink-box dd {
    display: inline-block;
    margin: 3px 4px;
}

.flink-box a {
    color: var(--oc-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--oc-ease);
}

.flink-box a:hover { color: var(--oc-primary); }

/* ── Footer ── */
.site-footer {
    padding: 26px 0;
    text-align: center;
    border-top: 2px solid var(--oc-border2);
    margin-top: 28px;
    background: var(--oc-bg2);
}

.copyright p {
    margin: 6px 0;
    color: var(--oc-muted);
    font-size: 13px;
    line-height: 1.8;
}

.copyright a {
    color: var(--oc-muted);
    text-decoration: none;
    transition: var(--oc-ease);
}

.copyright a:hover { color: var(--oc-primary); }

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

.hide_mobile { display: block; }
.hide_pc     { display: block; }

@media (max-width: 768px) {
    .hide_mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide_pc { display: none !important; }
}

img[data-original] {
    background: var(--oc-border2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pg-wrap { padding: 0 8px; }

    .site-header { padding: 0.45rem 0; }

    .brand-wrap { gap: 9px; }

    .brand-name { font-size: 22px; }

    .addr-badge { padding: 4px 11px; gap: 5px; }

    .addr-tip  { font-size: 10px; }
    .addr-val  { font-size: 13px; }

    .pg-block { padding: 9px 0; }

    /* Mobile nav: 区域标签缩小，链接区放大字号 */
    .cat-row {
        display: flex;
        align-items: stretch;
    }

    .cat-zone {
        width: 13%;
        font-size: 11px;
        padding: 4px 2px;
        letter-spacing: 0;
    }

    .cat-list {
        width: 87%;
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 5px 5px;
    }

    .cat-list a {
        padding: 6px 2px;
        font-size: 14px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Mobile: 2 films per row */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .film-desc h5 { font-size: 12px; }

    .srch-box { padding: 9px; }

    .srch-box form { gap: 6px; }

    .srch-box input[type="text"] {
        min-width: 90px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .srch-box button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .section-ttl { font-size: 17px; }

    .tag-group { padding: 9px; gap: 6px; }
    .tag-link  { padding: 5px 11px; font-size: 12px; }

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

    .action-btns { padding: 11px 8px; gap: 8px; }
    .dl-btn      { padding: 10px 16px; font-size: 13px; }

    .share-section { padding: 12px; gap: 8px; }
    .share-url-display { padding: 9px 11px; }
    .share-label { font-size: 12px; }
    .share-url   { font-size: 11px; }
    .share-copy-btn { padding: 10px 12px; font-size: 12px; }
    .share-icon  { font-size: 15px; }

    .page_info_div { gap: 5px; padding: 14px 0; }
    .a_page_info,
    .page_info_focus { padding: 7px 12px; font-size: 12px; min-width: 32px; }

    .site-footer { padding: 18px 0; margin-top: 18px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 19px; }

    .addr-badge { padding: 3px 9px; }
    .addr-tip   { font-size: 9px; }
    .addr-val   { font-size: 12px; }

    .cat-zone {
        width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
    }

    .cat-list {
        width: 85%;
        gap: 3px;
        padding: 4px 4px;
    }

    .cat-list a {
        padding: 5px 1px;
        font-size: 13px;
        width: calc((100% - 9px) / 4);
    }

    .film-grid { gap: 8px; }

    .film-desc h5 { font-size: 11px; }

    .section-ttl { font-size: 15px; }

    .action-btns { gap: 6px; }
    .dl-btn      { padding: 9px 12px; font-size: 12px; }

    .share-section { padding: 8px; gap: 6px; }

    .video-container {
        height: 56.25vw;
        max-height: 280px;
    }
}