.player-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    text-decoration: none;
    color: var(--text-gold);
    font-weight: 700;
}

.current-ep {
    font-weight: 500;
    color: var(--text-secondary);
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    height: calc(100vh - 65px);
    overflow: hidden;
    background: var(--bg-color);
}

.video-section {
    padding: 2rem;
    overflow-y: auto;
    background: #000;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-overlay-container {
    position: absolute;
    bottom: 10%;
    left: 10%;
    right: 10%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.caption-text {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-gold);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    border: 1px solid rgba(197, 168, 124, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.caption-text.visible {
    transform: translateY(0);
    opacity: 1;
}

video {
    width: 100%;
    height: 100%;
}

.video-meta {
    margin-top: 2rem;
}

.video-meta h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-gold);
}

.video-meta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sidebar Script Styles */
.script-sidebar {
    background: var(--bg-alt);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: var(--text-gold);
}

.script-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.script-segment {
    padding: 1.2rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.script-segment:hover {
    background: rgba(255, 255, 255, 0.03);
}

.script-segment.active {
    background: rgba(197, 168, 124, 0.05);
    border-color: var(--text-gold);
}

.timestamp {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-gold);
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .script-sidebar {
        height: 500px;
    }
    .caption-text {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}
