/* 
 * SocialArte Web - Virtual Classroom / Netflix Dashboard CSS
 * Premium dark mode cinematic layout
 */

.dashboard-body {
    background-color: #030303;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.container-fluid {
    width: 100%;
    padding: 0 4%;
}

.dashboard-header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.dashboard-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Wrapper & Animation */
.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.search-wrapper.expanded {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-toggle-btn {
    background: none;
    border: none;
    font-size: 1.15rem;
    color: #fff;
    cursor: pointer;
    outline: none;
    padding: 2px;
}

.search-input-field {
    width: 0;
    opacity: 0;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    padding: 0;
}

.search-wrapper.expanded .search-input-field {
    width: 200px;
    opacity: 1;
    padding-left: 8px;
}

/* Search results section */
.search-results-section {
    padding: 120px 4% 40px;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-results-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-clear-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-clear-search:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Hero Trailer Section */
.dashboard-hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-top: -80px;
}

.dashboard-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: -2;
    transition: background-image 0.5s ease;
}

/* Vignette / Fade Effect */
.dashboard-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, #030303 0%, rgba(3, 3, 3, 0.4) 60%, rgba(3, 3, 3, 0) 100%),
                linear-gradient(to top, #030303 0%, rgba(3, 3, 3, 0.7) 15%, rgba(3, 3, 3, 0) 40%);
    z-index: -1;
}

.dashboard-hero-content {
    max-width: 650px;
    z-index: 1;
    margin-top: 50px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.03);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.03);
}

/* Swiper Carousels Row */
.carousels-container {
    padding: 30px 0 80px 0;
    margin-top: -120px;
    position: relative;
    z-index: 2;
}

.slider-row {
    margin-bottom: 45px;
    position: relative;
}

.slider-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-left: 4%;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #ffd700;
    border-radius: 2px;
}

.swiper {
    width: 100%;
    padding: 0 4% 20px 4%;
    overflow: visible;
}

.swiper-slide {
    width: 290px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.3s;
}

.swiper-slide:hover {
    transform: scale(1.06) translateY(-5px);
    z-index: 10;
}

/* Episode Card (Inside Slider) */
.episode-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.episode-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

.episode-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #1a1a1a;
}

.episode-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card:hover .episode-play-overlay {
    opacity: 1;
}

.play-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.2s;
    padding-left: 3px; /* Center play symbol */
}

.play-circle:hover {
    transform: scale(1.1);
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
}

.episode-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.85);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.episode-progress-bar {
    height: 4px;
    background: #222;
    width: 100%;
}

.episode-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.episode-info {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.episode-info h4 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #eee;
}

.episode-info p {
    font-size: 0.8rem;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Spinner / Loading Loader */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: #aaa;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
 * NETFLIX DIALOG / MODAL STYLES (DETAILED INFO)
 * ========================================================== */
.course-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
}

.course-modal-content {
    background: #0f0f0f;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    margin: 40px auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.close-course-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-course-modal:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.05);
}

/* Modal Hero Banner */
.course-modal-hero {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f0f0f 0%, rgba(15,15,15,0.4) 60%, rgba(15,15,15,0) 100%),
                linear-gradient(to right, #0f0f0f 0%, rgba(15,15,15,0.2) 100%);
}

.course-modal-hero-details {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 2;
}

.course-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.course-modal-buttons {
    display: flex;
    gap: 12px;
}

.course-modal-buttons button {
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
}

.course-modal-buttons .btn-primary:hover {
    background: #ffc400 !important;
}

.course-modal-buttons .btn-outline {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}

.course-modal-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Modal Body */
.course-modal-body {
    padding: 30px 40px 50px;
}

.course-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
}

.course-modal-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-modal-year {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.05rem;
}

.course-modal-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    color: #ddd;
}

.course-modal-badge-alt {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.25);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    color: #a8b2ff;
}

.course-modal-description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 24px;
}

.course-modal-extra-info {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.course-modal-extra-info p {
    margin-bottom: 8px;
}

/* Episode List System */
.episodes-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

.episodes-list {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.episodes-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.episode-row-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    border: 1px solid transparent;
}

.episode-row-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.03);
}

.episode-row-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #555;
    width: 30px;
    text-align: center;
    margin-right: 15px;
    transition: color 0.2s;
}

.episode-row-item:hover .episode-row-number {
    color: #ffd700;
}

.episode-row-thumb {
    width: 110px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-right: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #1c1c1c;
}

.episode-row-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 6px;
}

.episode-row-item:hover .episode-row-thumb::after {
    opacity: 1;
}

.episode-row-details {
    flex-grow: 1;
}

.episode-row-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 4px;
}

.episode-row-meta {
    font-size: 0.78rem;
    color: #ffd700;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-row-progress-outer {
    height: 3px;
    background: #333;
    border-radius: 1.5px;
    width: 80px;
    overflow: hidden;
}

.episode-row-progress-inner {
    height: 100%;
    background: #ffd700;
}

.episode-module-header {
    padding: 10px 14px;
    margin: 25px 0 12px 0;
    border-left: 3px solid #ffd700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
}

.episode-row-week-tag {
    background-color: #ffd700;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================
 * IMMERSIVE VIDEO PLAYER DIALOG & CUSTOM CONTROLLER SKIN
 * ========================================================== */
.player-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.player-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-player-btn {
    position: absolute;
    top: 30px; right: 30px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-player-btn:hover {
    background: #ff3b30;
    transform: scale(1.1);
    border-color: #ff3b30;
}

/* Controller Overlay Grid */
.player-controls-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.9) 100%);
    z-index: 20001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-container:hover .player-controls-overlay,
.player-controls-overlay.active {
    opacity: 1;
}

/* Top Meta Title */
.player-top-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.player-meta-course {
    font-weight: 700;
    color: #ffd700;
}

.player-meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

.player-meta-video {
    font-weight: 500;
    color: #eee;
}

/* Bottom Controls */
.player-bottom-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Seek Bar Timeline */
.player-timeline-container {
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.player-timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    border-radius: 2px;
    transition: height 0.15s;
}

.player-timeline-container:hover .player-timeline {
    height: 6px;
}

.timeline-hover-hint {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    width: 0;
    border-radius: 2px;
    pointer-events: none;
}

.timeline-loaded {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: rgba(255,255,255,0.3);
    width: 0;
    border-radius: 2px;
    pointer-events: none;
}

.timeline-progress {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    width: 0;
    border-radius: 2px;
    pointer-events: none;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    pointer-events: none;
}

.player-timeline-container:hover .timeline-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Control Buttons Bottom Row */
.player-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-controls-left, .player-controls-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    outline: none;
    opacity: 0.85;
    transition: all 0.15s;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.control-btn:hover {
    opacity: 1;
    color: #ffd700;
    transform: scale(1.08);
}

/* Volume Slider UI */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    opacity: 0;
    overflow: hidden;
    height: 4px;
    background: rgba(255,255,255,0.3);
    outline: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    -webkit-appearance: none;
    cursor: pointer;
    border-radius: 2px;
}

.volume-container:hover .volume-slider {
    width: 70px;
    opacity: 1;
}

.volume-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-top: -3px;
}

.player-time-display {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    color: rgba(255,255,255,0.3);
    margin: 0 4px;
}

#speed-btn {
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 12px;
    color: #fff;
}

#speed-btn:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* Responsive Overrides */
@media (max-width: 800px) {
    .course-modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .course-modal-hero {
        height: 250px;
    }
    .course-modal-title {
        font-size: 1.8rem;
    }
    .course-modal-body {
        padding: 20px 25px;
    }
    .player-controls-overlay {
        padding: 20px;
    }
    .player-controls-left, .player-controls-right {
        gap: 12px;
    }
    .swiper-slide {
        width: 220px;
    }
}

/* ==========================================================
 * INTEGRATED NOTE DRAWER & SLIDING LAYOUT
 * ========================================================== */
.player-wrapper-main {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.player-container-vimeo {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000;
    transition: margin-right 0.3s ease;
}

.player-info-bar-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 100px 20px 40px; /* Increased right padding to avoid close button overlap */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-container-vimeo:hover .player-info-bar-top {
    opacity: 1;
    pointer-events: auto;
}

.btn-notes-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-notes-toggle:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
    transform: scale(1.05);
}

/* Electronic Notepad Drawer */
.notes-panel-drawer {
    width: 350px;
    height: 100%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 20005;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes-panel-drawer.open {
    transform: translateX(0);
}

.notes-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-drawer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: -0.01em;
}

.close-notes-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-notes-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.notes-drawer-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-hint {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.notes-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.notes-textarea:focus {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.notes-drawer-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
}

.btn-notes-action {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-notes {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-copy-notes:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-export-notes {
    background: #ffd700;
    color: #000;
}

.btn-export-notes:hover {
    background: #ffc400;
    transform: translateY(-1px);
}

/* ==========================================================
 * PREMIUM RESUME DIALOG & GLASSMORPHISM OVERLAY
 * ========================================================== */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 35000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: dialogFadeIn 0.3s forwards ease-out;
}

.resume-dialog-box {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: scale(0.95);
    opacity: 0;
    animation: dialogScaleUp 0.35s 0.05s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-dialog-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: #ffd700;
}

.resume-dialog-box h3 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.resume-dialog-box p {
    color: #aaa;
    margin: 0 0 28px 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.resume-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-resume-action {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resume-confirm {
    background: #ffd700;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn-resume-confirm:hover {
    background: #ffc400;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.btn-resume-restart {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-resume-restart:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

@keyframes dialogFadeIn {
    to { opacity: 1; }
}

@keyframes dialogScaleUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================
 * CONTINUAR VIENDO (DASHBOARD RESUME ROW)
 * ========================================================== */
.continuar-viendo-section {
    padding: 0 4%;
    margin-top: -100px;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.continuar-viendo-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.75) 0%, rgba(10, 10, 10, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.continuar-viendo-banner:hover {
    border-color: rgba(255, 215, 0, 0.25);
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
}

.continuar-viendo-thumb {
    width: 140px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    flex-shrink: 0;
    background-color: #1a1a1a;
    cursor: pointer;
    overflow: hidden;
}

.continuar-viendo-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.continuar-viendo-thumb:hover::after {
    background: rgba(255, 215, 0, 0.3);
}

.continuar-viendo-info {
    flex-grow: 1;
}

.continuar-viendo-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffd700;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.continuar-viendo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.continuar-viendo-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 12px 0;
}

.continuar-viendo-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.continuar-viendo-progress-outer {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.continuar-viendo-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.continuar-viendo-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
}

.btn-continuar-play {
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.btn-continuar-play:hover {
    background: #ffc400;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.25);
}

@media (max-width: 768px) {
    .continuar-viendo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    .continuar-viendo-thumb {
        width: 100%;
        max-width: 240px;
    }
    .btn-continuar-play {
        width: 100%;
        justify-content: center;
    }
    .continuar-viendo-progress-outer {
        width: 100%;
    }
    .continuar-viendo-section {
        margin-top: -60px;
    }
}
