/* Video Site Template - Forest Dark Style */

:root {
    --ix-green:      #0a2e1f;
    --ix-green2:     #0d3824;
    --ix-green3:     #10422a;
    --ix-green4:     #164d32;
    --ix-green5:     #1e6040;
    --ix-teal:       #2a9d6e;
    --ix-teal-lt:    #3bbf87;
    --ix-mint:       #5dd4a0;
    --ix-text:       #e8f5ee;
    --ix-text-sub:   #a8c9b5;
    --ix-text-muted: #5f8a72;
    --ix-border:     rgba(255,255,255,0.10);
    --ix-border-lt:  rgba(255,255,255,0.16);
    --ix-border-teal:rgba(42,157,110,0.4);
    --ix-card:       rgba(13,56,36,0.85);
    --ix-card2:      rgba(16,66,42,0.7);
    --sh-sm: 0 1px 6px rgba(0,0,0,0.35);
    --sh-md: 0 4px 16px rgba(0,0,0,0.45);
    --sh-lg: 0 8px 30px rgba(0,0,0,0.6);
    --rd: 8px;
    --rd-sm: 5px;
    --ease: all 0.22s ease;
    --grad-teal: linear-gradient(135deg, #2a9d6e 0%, #1e6040 100%);
    --grad-card: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    --grad-bg:   linear-gradient(160deg, #061a10 0%, #0a2e1f 40%, #0d3824 100%);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Tahoma, Arial, sans-serif;
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--ix-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.pg-header {
    background: rgba(6,26,16,0.96);
    border-bottom: 1px solid var(--ix-border);
    padding: 10px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pg-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.site-logo-link {
    text-decoration: none;
    display: inline-block;
}

.pg-site-name {
    font-size: 25px;
    font-weight: 800;
    color: var(--ix-text);
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    transition: var(--ease);
}

.site-logo-link:hover .pg-site-name {
    color: var(--ix-mint);
}

.pg-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(42,157,110,0.12);
    border: 1px solid var(--ix-border-teal);
    border-radius: 3px;
    padding: 5px 14px;
}

.pg-domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--ix-mint);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pg-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--ix-text);
    letter-spacing: 0.3px;
}

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

.wrap-section { padding: 6px 0; }

/* ===== NAV ===== */
.nav-wrap {
    background: var(--ix-card);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--ix-border);
    backdrop-filter: blur(4px);
}

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

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

.nav-zone-lbl {
    font-weight: 700;
    font-size: 13px;
    color: var(--ix-text-sub);
    background: rgba(6,26,16,0.6);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    border-right: 1px solid var(--ix-border);
    letter-spacing: 0.3px;
}

.nav-zone-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
}

.nav-zone-links a {
    display: inline-block;
    color: var(--ix-text-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ix-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-weight: 500;
}

.nav-zone-links a:hover {
    background: var(--ix-teal);
    color: #fff;
    border-color: var(--ix-teal);
}

.nav-zone-links a.active {
    background: var(--grad-teal);
    color: #fff;
    border-color: var(--ix-teal);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(42,157,110,0.35);
}

/* ===== SEARCH ===== */
.search-panel {
    background: var(--ix-card);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid var(--ix-border);
    backdrop-filter: blur(4px);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1px solid var(--ix-border-lt);
    border-radius: var(--rd-sm);
    background: rgba(6,26,16,0.7);
    color: var(--ix-text);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: var(--ix-teal);
    box-shadow: 0 0 0 3px rgba(42,157,110,0.15);
}

.search-panel input[type="text"]::placeholder { color: var(--ix-text-muted); }

.search-panel button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grad-teal);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.search-panel button:hover {
    background: var(--ix-teal-lt);
    box-shadow: 0 3px 10px rgba(42,157,110,0.4);
}

/* ===== TAGS ===== */
.tags-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 8px 10px;
    background: var(--ix-card);
    border-radius: var(--rd);
    margin-bottom: 6px;
    border: 1px solid var(--ix-border);
    backdrop-filter: blur(4px);
}

.tags-panel .tag-item {
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    color: var(--ix-text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--ix-border);
}

.tags-panel .tag-item:hover {
    background: var(--ix-teal);
    color: #fff;
    border-color: var(--ix-teal);
}

/* ===== SECTION HEAD ===== */
.film-section { margin-bottom: 10px; }

.film-section-hd {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ix-border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.film-section-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--grad-teal);
    border-radius: 2px;
}

.film-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--ix-text);
    letter-spacing: 0.3px;
}

.film-section-title a { color: var(--ix-text); text-decoration: none; transition: var(--ease); }
.film-section-title a:hover { color: var(--ix-mint); }

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

.film-list-grid li {
    position: relative;
    animation: ixFadeUp 0.45s ease backwards;
}

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

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

.film-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd);
    aspect-ratio: 600 / 350;
    background: var(--ix-green3);
    border: 1px solid var(--ix-border);
}

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

.film-thumb-link:hover {
    border-color: var(--ix-teal);
    box-shadow: 0 0 0 1px rgba(42,157,110,0.5), var(--sh-md);
}

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

.film-thumb-link::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 26px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    opacity: 0;
    transition: all 0.28s ease;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.film-thumb-link:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.film-thumb-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 1;
}

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

.film-meta { padding: 6px 0 0; }

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

.film-meta h5 a {
    color: var(--ix-text-sub);
    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(--ix-mint); }

/* ===== VIDEO PLAYER ===== */
.video-wrap {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    position: relative;
    border: 1px solid var(--ix-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--sh-lg);
    border: 1px solid var(--ix-border);
}

/* ===== TORRENT CAPTURE ===== */
.capture-block { width: 100%; }

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

.capture-block .img_item { width: 100%; }

/* ===== DOWNLOAD BUTTONS ===== */
.dl-actions {
    text-align: center;
    padding: 14px;
    background: var(--ix-card);
    border-radius: var(--rd);
    margin: 10px 0;
    border: 1px solid var(--ix-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.dl-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--ix-text);
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 1px solid var(--ix-border-lt);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.dl-btn:hover {
    background: var(--ix-teal);
    border-color: var(--ix-teal);
    color: #fff;
    box-shadow: 0 4px 14px rgba(42,157,110,0.35);
}

/* ===== SHARE SECTION ===== */
.link-share-box {
    background: var(--ix-card);
    border-radius: var(--rd);
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid var(--ix-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-share-display {
    background: rgba(6,26,16,0.6);
    border: 1px solid var(--ix-border);
    border-radius: var(--rd-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.link-share-lbl {
    font-weight: 700;
    font-size: 10px;
    color: var(--ix-mint);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid var(--ix-border-teal);
    padding: 1px 7px;
    border-radius: 3px;
}

.link-share-url {
    font-size: 12px;
    color: var(--ix-text-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-share-btn {
    padding: 9px 16px;
    background: transparent;
    color: var(--ix-text);
    border: 1px solid var(--ix-border-lt);
    border-radius: var(--rd-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.link-share-btn:hover {
    background: var(--ix-teal);
    border-color: var(--ix-teal);
    color: #fff;
    box-shadow: 0 4px 14px rgba(42,157,110,0.35);
}

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

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

/* ===== PAGINATION ===== */
.pg-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

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

.pg-btn-link {
    background: transparent;
    color: var(--ix-text-sub);
    border: 1px solid var(--ix-border);
}

.pg-btn-link:hover {
    background: var(--ix-teal);
    border-color: var(--ix-teal);
    color: #fff;
}

.pg-btn-cur {
    background: var(--grad-teal);
    color: #fff;
    border: 1px solid var(--ix-teal);
    cursor: default;
}

/* ===== FOOTER ===== */
.pg-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--ix-border);
    margin-top: 16px;
}

.pg-footer p { margin: 6px 0; color: var(--ix-text-muted); font-size: 12px; }
.pg-footer a { color: var(--ix-text-muted); text-decoration: none; transition: var(--ease); }
.pg-footer a:hover { color: var(--ix-mint); }

/* ===== FRIENDLY LINKS ===== */
.flink-wrap {
    padding: 10px 12px;
    background: var(--ix-card);
    border-radius: var(--rd);
    border: 1px solid var(--ix-border);
}

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

.flink-wrap a { color: var(--ix-text-muted); text-decoration: none; transition: var(--ease); font-size: 13px; }
.flink-wrap a:hover { color: var(--ix-mint); }

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

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 7px; }
    .pg-header { padding: 7px 0; }
    .pg-site-name { font-size: 20px; }
    .pg-domain-badge { padding: 4px 10px; }
    .pg-domain-tag { font-size: 9px; }
    .pg-domain-val { font-size: 14px; }
    .wrap-section { padding: 4px 0; }

    .nav-zone-lbl { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-zone-links { width: 85%; font-size: 12px; gap: 4px; padding: 6px 4px; }
    .nav-zone-links a { padding: 4px 2px; font-size: 12px; width: calc((100% - 12px) / 4); }

    .film-list-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-wrap { height: 56.25vw; max-height: 380px; margin-bottom: 10px; }
    .search-panel { padding: 7px 8px; }
    .search-panel input[type="text"] { min-width: 100px; padding: 8px 10px; font-size: 13px; }
    .search-panel button { padding: 8px 9px; font-size: 12px; }
    .film-meta h5 { font-size: 12px; }
    .film-section-title { font-size: 15px; }
    .dl-actions { padding: 9px 6px; gap: 6px; }
    .dl-btn { padding: 8px 14px; font-size: 13px; }
    .link-share-box { padding: 9px; margin: 8px 0; gap: 6px; }
    .link-share-display { padding: 7px 9px; }
    .link-share-lbl { font-size: 9px; }
    .link-share-url { font-size: 11px; }
    .link-share-btn { padding: 8px 10px; font-size: 12px; }
    .pg-btn { padding: 6px 11px; font-size: 12px; min-width: 32px; }
}

@media (max-width: 480px) {
    .pg-site-name { font-size: 18px; }
    .pg-domain-val { font-size: 13px; }
    .nav-zone-lbl { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-zone-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .search-panel input[type="text"] { min-width: 80px; font-size: 12px; }
    .search-panel button { padding: 7px 7px; font-size: 11px; }
    .dl-btn { padding: 7px 10px; font-size: 12px; }
}

@media (min-width: 769px) {
    .film-list-grid { grid-template-columns: repeat(4, 1fr); }
}
