
/*
 * 暗夜剧场 - 小旋风蜘蛛池Pro模板
 * Author: Manus AI
 * Version: 1.0
 * Description: 暗黑电影院沉浸风格
 */

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --bg-color: #050505;
    --primary-gold: #d4a843;
    --accent-red: #8b0000;
    --text-silver: #c0c0c0;
    --dark-brown: #2a1a0a;
    --text-light: #f5f5f5;
    --border-color: #2a1a0a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-silver);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-brown);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-gold);
}

/* 2. Header
-------------------------------------------------- */
.header {
    background-color: rgba(5, 5, 5, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-height: 45px;
}

.navigation ul {
    display: flex;
}

.navigation li a {
    padding: 1rem;
    color: var(--text-silver);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

.navigation li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.navigation li a:hover::after,
.navigation li a.active::after {
    width: 80%;
}

.search-box input {
    background: var(--dark-brown);
    border: 1px solid var(--primary-gold);
    color: var(--text-silver);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.search-box button {
    background: var(--primary-gold);
    color: var(--bg-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 5px;
}

.header-decoration-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* 3. Footer
-------------------------------------------------- */
.footer {
    background-color: #0a0a0a;
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--dark-brown);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-column ul li a {
    color: var(--text-silver);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.9rem;
}

.eeat-links a, .disclaimer, .footer-bottom p {
    color: #888;
    margin: 0 0.5rem;
}

/* 4. Main Content
-------------------------------------------------- */
.main-content {
    padding-top: 100px; /* Header height + margin */
    min-height: 100vh;
}

.breadcrumb {
    padding: 1rem 0;
    background: var(--dark-brown);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-silver);
}

.content-wrapper {
    display: flex;
    gap: 2rem;
}

.main-primary {
    flex: 3;
}

.main-secondary {
    flex: 1;
}

/* 5. Index Page
-------------------------------------------------- */
.index-main {
    padding-top: 0; /* Index has full screen banner */
}

.hero-banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

.hero-text {
    text-align: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 5rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold);
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-light);
}

.movie-grid-section {
    margin-bottom: 4rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.compact-grid {
    grid-template-columns: repeat(5, 1fr);
}

.movie-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.2);
}

.card-img-wrapper {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') center no-repeat;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-title {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.8rem 1rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
    color: #888;
}

.horizontal-scroll-section {
    margin-bottom: 4rem;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) var(--dark-brown);
}

.scroll-item {
    flex: 0 0 150px;
    margin-right: 1rem;
    text-align: center;
}

.scroll-item img {
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* 6. List Page
-------------------------------------------------- */
.list-title {
    text-align: left;
    border-bottom: none;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    margin: 0 0.2rem;
    color: var(--text-silver);
}

.pagination .current, .pagination a:hover {
    background: var(--primary-gold);
    color: var(--bg-color);
    border-color: var(--primary-gold);
}

/* 7. Show Page
-------------------------------------------------- */
.post-content {
    color: var(--text-silver);
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.post-meta {
    margin-bottom: 2rem;
    color: #888;
}

.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.video-poster-wrapper {
    margin-bottom: 2rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-section {
    margin: 4rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    color: var(--primary-gold);
    cursor: pointer;
    padding: 1rem 0;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

.related-movies .movie-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 8. Sidebar (right.html)
-------------------------------------------------- */
.sidebar .widget {
    background: #111;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.widget-title {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li {
    margin-bottom: 0.5rem;
}

.post-list li {
    display: flex;
    gap: 1rem;
}

.post-thumb {
    flex-shrink: 0;
    width: 80px;
}

.post-title {
    font-size: 1rem;
    color: var(--text-light);
}

.post-date {
    font-size: 0.8rem;
    color: #888;
}

.tag-cloud a {
    display: inline-block;
    background: var(--dark-brown);
    color: var(--text-silver);
    padding: 0.3rem 0.7rem;
    margin: 0.2rem;
    border-radius: 4px;
}

/* 9. Effects & Animations
-------------------------------------------------- */
.film-border {
    padding: 10px;
    background: repeating-linear-gradient(
        -45deg,
        #1a1a1a,
        #1a1a1a 5px,
        #2a2a2a 5px,
        #2a2a2a 10px
    );
    border: 2px solid #333;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    position: relative;
}

.film-border img {
    border: 2px solid #000;
}

#curtain-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0; height: 100%;
    width: 50%;
    background: var(--accent-red);
    animation: open-curtains 2s ease-out 1s forwards;
}

.curtain.left { left: 0; }
.curtain.right { right: 0; }

@keyframes open-curtains {
    from { width: 50%; }
    to { width: 0; }
}

.spotlight {
    position: absolute;
    top: -100px;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.3) 0%, rgba(212, 168, 67, 0) 70%);
    animation: spotlight-move 15s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes spotlight-move {
    0% { transform: translateX(-70%) translateY(0) rotate(-20deg); }
    100% { transform: translateX(-30%) translateY(50px) rotate(20deg); }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 10. Responsive Design
-------------------------------------------------- */
@media (max-width: 1024px) {
    .container { width: 95%; }
    .compact-grid { grid-template-columns: repeat(4, 1fr); }
    .content-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .header .container { height: 60px; }
    .navigation { display: none; /* Simple mobile menu can be added */ }
    .compact-grid { grid-template-columns: repeat(3, 1fr); }
    .related-movies .movie-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 3rem; }
}

@media (max-width: 480px) {
    .compact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 2rem; }
    .hero-text h1 { font-size: 2.5rem; }
}

/* 11. Anti-interference classes
-------------------------------------------------- */
.xf7k2m { color: transparent; font-size: 0; }
.qw3p8n { position: absolute; left: -9999px; }
.zt9v1x { display: none !important; }
