/* Base Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-primary: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-secondary: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Modern Project Page */
.modern-project-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 4rem;
}

/* Hero Section */
.project-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.meta-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meta-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: #2d3748;
}

.section-title i {
    color: #667eea;
}

/* Modern Gallery */
.modern-gallery {
    position: relative;
}

.main-gallery-view {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.gallery-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a202c;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1.5rem;
    color: white;
    font-size: 0.9rem;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-nav {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2d3748;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: white;
    transform: scale(1.3);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    flex: 0 0 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-wrapper {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.modern-video-player {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
}

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

.video-container:hover .video-controls-overlay {
    opacity: 1;
}

.play-indicator {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    cursor: pointer;
}

/* Description */
.description-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #4a5568;
}

/* Extended Section */
.extended-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.premium-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.extended-features {
    margin: 2rem 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #2d3748;
}

.feature-list li i {
    color: #48bb78;
}

.preview-images {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.preview-image {
    flex: 1;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-more {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

.owned-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.upgrade-offer,
.bundle-offer {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.extended-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 1rem 0;
}

.btn-upgrade,
.btn-bundle {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-bundle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.views {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
}

.stat-icon.likes {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: white;
}

.stat-icon.downloads {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
}

.stat-icon.updated {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
}

/* Layout */
.project-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

/* Sidebar Cards */
.price-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.coupon-badge {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.price-display {
    text-align: center;
    margin: 2rem 0;
}

.original-price {
    font-size: 1.2rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0.5rem 0;
}

.savings {
    color: #059669;
    font-weight: 600;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.action-btn.outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.action-btn.edit {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.action-btn.delete {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.purchase-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 1.1rem;
    padding: 18px;
}

.back-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

/* Owner Section */
.owner-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
}

.owner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-extended {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
}

/* Author Card */
.author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.author-avatar-large {
    font-size: 3rem;
    color: #667eea;
}

.author-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #4a5568;
}

.private-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
    margin: 2rem 0;
}

/* Details Card */
.details-list {
    margin-top: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #718096;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #2d3748;
}

.category-tag {
    background: #e9d8fd;
    color: #553c9a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.status-available {
    color: #059669;
}

/* Payment Modal */
.glass-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.glass-payment-modal.show {
    opacity: 1;
    visibility: visible;
}

.glass-payment-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s ease;
}

.glass-payment-modal.show .glass-payment-content {
    transform: translateY(0);
}

.payment-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark__circle {
    stroke: #34d399;
    stroke-width: 2;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    stroke: #34d399;
    stroke-width: 2;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.error-cross {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.error-cross__circle {
    stroke: #f87171;
    stroke-width: 2;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-cross__cross {
    stroke: #f87171;
    stroke-width: 2;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.pending-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.payment-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.payment-message {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-id {
    text-align: center;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.order-id code {
    font-family: monospace;
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 600;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #4a5568;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .project-hero {
        height: 300px;
    }

    .project-main-title {
        font-size: 2.5rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .main-gallery-view {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-main-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .owner-actions {
        grid-template-columns: 1fr;
    }
}

/* YouTube-Style Video Player */
.youtube-style-player-wrapper {
    position: relative;
    width: 100%;
}

.youtube-style-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.custom-video {
    width: 100%;
    height: 100%;
    display: block;
}

/* Big Play Button */
.big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.big-play-button i {
    font-size: 32px;
    color: #667eea;
    margin-left: 5px;
}

.big-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.big-play-button.hide {
    opacity: 0;
    pointer-events: none;
}

/* Custom Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 25px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.youtube-style-player:hover .custom-video-controls,
.custom-video-controls.show {
    opacity: 1;
}

/* Timeline */
.video-timeline-container {
    margin-bottom: 10px;
    cursor: pointer;
}

.video-timeline {
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.timeline-buffer {
    position: absolute;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.timeline-progress {
    position: absolute;
    left: 0;
    height: 100%;
    background: #667eea;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.video-timeline:hover {
    height: 7px;
}

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

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

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    min-width: 44px;
    min-height: 44px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn i {
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

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

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

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

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Speed Menu */
.speed-container {
    position: relative;
}

.speed-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    min-width: 120px;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.speed-menu.show {
    display: block;
}

.speed-option {
    padding: 10px 16px;
    color: #1f2937 !important;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.speed-option:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #1f2937 !important;
}

.speed-option.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea !important;
    font-weight: 600;
}

/* Chapters Panel */
.video-chapters-panel {
    position: absolute;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 30;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
}

.video-chapters-panel.show {
    right: 0;
}

.chapters-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapters-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
}

.close-chapters {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-chapters:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chapters-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chapter-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chapter-item.active {
    background: rgba(102, 126, 234, 0.2);
}

.chapter-thumbnail {
    width: 80px;
    height: 45px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chapter-thumbnail i {
    color: #667eea;
    font-size: 20px;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.chapter-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-chapters-panel {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .volume-slider {
        display: none;
    }

    .time-display {
        font-size: 12px;
    }

    .big-play-button {
        width: 60px;
        height: 60px;
    }

    .big-play-button i {
        font-size: 24px;
    }
}

/* Ensure all modal close buttons are white and visible */
.btn-close,
.btn-close-white {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

.btn-close:hover,
.btn-close-white:hover {
    opacity: 0.8 !important;
}

.modal-header .btn-close,
.modal-header .btn-close-white {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px;
}