@import url('/static/css/status.css');

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.page-container {
    position: relative;
    z-index: 10;
    width: calc(100% - 36px);
    max-width: 1120px;
    margin: 36px auto 50px;
    flex: 1;
}

.page-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.page-head h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-head p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

/* Cinema Grid */
.cinema-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 48px;
}

.video-glass-frame {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
}

.frame-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.frame-label {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.video-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #050505;
    flex: 1;
}

.video-ratio-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Chapters Panel */
.chapters-panel {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.panel-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 10px;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.chapter-btn.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: #ffffff;
}

.ch-num {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
}

.ch-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-info strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.ch-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.copy-snippet-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    color: #050505;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-snippet-btn:hover {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

/* Gallery */
.gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-head h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.gallery-head span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.gallery-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.gallery-meta {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-meta strong {
    font-size: 0.9rem;
}

.gallery-meta span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Lightbox */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 920px;
    width: 100%;
    text-align: center;
}

.lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-content p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #050505;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .cinema-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}