/* Film & Video Portal - Warm Orange Theme */

:root {
    --brand: #ff6b00;
    --brand-deep: #e05a00;
    --brand-light: #ff8c3a;
    --brand-pale: #fff3e8;
    --accent: #ffb347;
    --ink: #1a1a2e;
    --ink-mid: #4a4a6a;
    --ink-soft: #8888a8;
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --surface-warm: #fff8f2;
    --line: #ede8e0;
    --line-warm: #f0e8dc;
    --glow: rgba(255, 107, 0, 0.18);
    --glow-lg: rgba(255, 107, 0, 0.28);
    --sweep: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    --card-r: 10px;
    --btn-r: 7px;
    --ease: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --page-bg: #f5f0eb;
    --card-bg: #ffffff;
}

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

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

/* ===================== HEADER ===================== */
.site-header {
    background: var(--surface);
    border-bottom: 3px solid var(--brand);
    padding: 0.75rem 0;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.12);
}

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

.branding-block {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.site-logo:hover {
    opacity: 0.85;
}

.logo-name {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--brand);
    text-shadow: 0 2px 8px var(--glow);
    position: relative;
}

.logo-name::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--sweep);
    border-radius: 2px;
    margin-top: 2px;
}

.newest-domain {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: var(--brand-pale);
    border-radius: 22px;
    border: 2px dashed var(--brand-light);
}

.domain-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--brand);
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
}

.domain-addr {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.5px;
}

/* ===================== LAYOUT ===================== */
.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.section-gap {
    padding: 14px 0;
}

/* ===================== NAV ===================== */
.nav-panel {
    background: var(--card-bg);
    border-radius: var(--card-r);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

.zone-badge {
    font-weight: 800;
    font-size: 13px;
    color: var(--surface);
    background: var(--sweep);
    white-space: nowrap;
    width: 10%;
    min-width: 52px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 10px;
    align-items: center;
    background: var(--surface-warm);
}

.zone-links a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 5px;
    transition: var(--ease);
    background: var(--surface);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.zone-links a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 3px 10px var(--glow);
    transform: translateY(-1px);
}

.zone-links a.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 3px 10px var(--glow);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.search-bar {
    background: var(--card-bg);
    border-radius: var(--card-r);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 2px solid var(--line);
    border-radius: var(--btn-r);
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.search-bar input[type="text"]:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px var(--glow);
}

.search-bar input[type="text"]::placeholder {
    color: var(--ink-soft);
}

.search-bar button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--btn-r);
    background: var(--sweep);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar button:hover {
    box-shadow: 0 5px 14px var(--glow-lg);
    transform: translateY(-1px);
}

/* ===================== TAG CLOUD ===================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 12px 14px;
    background: var(--card-bg);
    border-radius: var(--card-r);
    margin-bottom: 14px;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tag-item {
    padding: 5px 14px;
    background: var(--surface-warm);
    border-radius: 18px;
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--line-warm);
}

.tag-item:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 3px 8px var(--glow);
}

/* ===================== SECTION HEADING ===================== */
.film-section {
    margin-bottom: 22px;
}

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

.section-head::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--sweep);
    border-radius: 1px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--sweep);
    border-radius: 2px;
    display: inline-block;
}

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

.section-title a:hover {
    color: var(--brand);
}

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

.film-grid li {
    animation: riseUp 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 riseUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--card-r);
    aspect-ratio: 600 / 350;
    background: var(--line);
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: var(--ease);
}

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

.film-thumb:hover {
    box-shadow: 0 8px 22px rgba(255,107,0,0.22);
    border-color: var(--brand-light);
}

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

.film-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    background: rgba(255, 107, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

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

.film-meta {
    padding: 9px 0 2px;
}

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

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

.film-meta h5 a:hover {
    color: var(--brand);
}

/* ===================== DETAIL PAGE ===================== */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 18px;
    margin: 18px 0;
    word-break: break-all;
    background: linear-gradient(135deg, var(--brand-pale) 0%, #fff 100%);
    border-radius: var(--card-r);
    border: 1px solid var(--line-warm);
}

.detail-title-bar a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.film-specs {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px 24px;
    background: var(--card-bg);
    border-radius: var(--card-r);
    margin: 16px 0;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.capture-wrapper {
    margin-top: 10px;
}

.capture-wrapper picture,
.capture-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--btn-r);
    border: 1px solid var(--line);
}

/* ===================== ACTION BUTTONS ===================== */
.action-row {
    text-align: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--card-r);
    margin: 14px 0;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.act-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--sweep);
    color: #fff;
    text-decoration: none;
    border-radius: var(--btn-r);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.act-btn:hover {
    box-shadow: 0 6px 18px var(--glow-lg);
    transform: translateY(-2px);
}

.act-btn:active {
    transform: translateY(0);
}

/* ===================== SHARE SECTION ===================== */
.link-share {
    background: var(--card-bg);
    border-radius: var(--card-r);
    padding: 18px;
    margin: 16px 0;
    border: 1px solid var(--line-warm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-display {
    background: var(--surface-warm);
    border: 1px solid var(--line-warm);
    border-radius: var(--btn-r);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.link-tag {
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    background: var(--brand);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-text {
    font-size: 13px;
    color: var(--ink-mid);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-copy-btn {
    padding: 11px 22px;
    background: var(--sweep);
    color: #fff;
    border: none;
    border-radius: var(--btn-r);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-copy-btn:hover {
    box-shadow: 0 5px 14px var(--glow-lg);
    transform: translateY(-1px);
}

.link-copy-btn:active {
    transform: scale(0.98);
}

.copy-icon {
    font-size: 16px;
}

/* ===================== PAGINATION ===================== */
.pager-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.pg-link,
.pg-current {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--btn-r);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 38px;
    text-align: center;
}

.pg-link {
    background: var(--card-bg);
    color: var(--ink);
    border: 1px solid var(--line);
}

.pg-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 3px 10px var(--glow);
}

.pg-current {
    background: var(--sweep);
    color: #fff;
    border: 1px solid var(--brand);
    cursor: default;
}

/* ===================== FOOTER ===================== */
.site-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 28px;
    background: var(--card-bg);
}

.site-footer p {
    margin: 6px 0;
    color: var(--ink-soft);
    font-size: 13px;
}

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

.site-footer a:hover {
    color: var(--brand);
}

.friend-links {
    padding: 12px 14px;
    background: var(--card-bg);
    border-radius: var(--card-r);
    border: 1px solid var(--line-warm);
}

.friend-links dl {
    margin: 0;
}

.friend-links dd {
    display: inline-block;
    margin: 4px;
}

.friend-links a {
    color: var(--ink-mid);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.friend-links a:hover {
    color: var(--brand);
}

.pd5 {
    padding: 0 5px;
}

/* ===================== CLIENT DOWNLOAD HINTS ===================== */
.client-hint {
    text-align: center;
    padding: 16px;
}

.client-hint a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--ease);
}

.client-hint a:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

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

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

    .branding-block {
        gap: 10px;
    }

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

    .newest-domain {
        padding: 5px 12px;
        gap: 6px;
    }

    .domain-tag {
        font-size: 9px;
    }

    .domain-addr {
        font-size: 13px;
    }

    .section-gap {
        padding: 10px 0;
    }

    /* Mobile nav: zone badge 15%, links 85%, 2 rows x 4 */
    .nav-strip {
        display: flex;
        align-items: stretch;
    }

    .zone-badge {
        width: 15%;
        min-width: 44px;
        font-size: 11px;
        padding: 8px 2px;
        text-align: center;
        word-break: break-all;
        line-height: 1.3;
    }

    .zone-links {
        width: 85%;
        font-size: 11px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 7px 5px;
    }

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

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

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

    .film-section {
        margin-bottom: 16px;
    }

    .section-head {
        margin-bottom: 10px;
    }

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

    .tag-cloud {
        padding: 10px 10px;
        gap: 6px;
    }

    .tag-item {
        padding: 4px 10px;
        font-size: 12px;
    }

    .action-row {
        padding: 12px 8px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .act-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .link-share {
        padding: 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .link-display {
        padding: 9px 10px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .link-tag {
        font-size: 10px;
    }

    .link-text {
        font-size: 11px;
    }

    .link-copy-btn {
        padding: 9px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .pager-row {
        padding: 14px 0;
        gap: 5px;
    }

    .pg-link,
    .pg-current {
        padding: 7px 11px;
        font-size: 12px;
        min-width: 34px;
    }

    .detail-title-bar {
        font-size: 16px;
        padding: 14px 14px;
        margin: 12px 0;
    }

    .film-specs {
        padding: 16px 14px;
        font-size: 14px;
    }

    .search-bar {
        padding: 10px;
    }

    .search-bar input[type="text"] {
        min-width: 100px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 9px 10px;
        font-size: 12px;
    }
}

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

    .newest-domain {
        padding: 4px 10px;
    }

    .zone-badge {
        width: 15%;
        min-width: 40px;
        font-size: 10px;
        padding: 6px 2px;
    }

    .zone-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

    .zone-links a {
        font-size: 10px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

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

    .action-row {
        padding: 10px 4px;
        gap: 6px;
    }

    .act-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .link-share {
        padding: 8px;
        gap: 5px;
    }

    .link-text {
        font-size: 10px;
    }

    .link-copy-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .copy-icon {
        font-size: 13px;
    }
}

/* ===================== UTILITIES ===================== */
.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(--line);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
