:root {
    --yellow: #FFD700;
    --dark-yellow: #DAA520;
    --blue: #003366;
    --dark-blue: #002244;
    --red: #DC143C;
    --dark-red: #B22222;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-gray);
    color: var(--blue);
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo i {
    font-size: 3rem;
    color: var(--blue);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--yellow);
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Notification Toast */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9998;
    max-width: 350px;
}

.custom-toast {
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: start;
    gap: 1rem;
    transform: translateX(400px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.toast-info .toast-icon {
    background: rgba(0, 51, 102, 0.1);
    color: var(--blue);
}

.toast-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--blue);
}

.toast-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Header Improvements */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,51,102,0.08);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255,255,255,1);
    box-shadow: 0 5px 40px rgba(0,51,102,0.12);
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.main-header.scrolled .header-content {
    padding: 0.5rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.6rem;
    transform: rotate(-3deg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.main-header.scrolled .logo-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
}

.logo-icon:hover {
    transform: rotate(0deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
    margin: 0;
    line-height: 1;
    transition: font-size 0.3s ease;
}

.main-header.scrolled .logo-text h1 {
    font-size: 1.6rem;
}

.logo-text span {
    font-size: 0.65rem;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-btn {
    background: rgba(0,51,102,0.1);
    color: var(--blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--blue);
    color: var(--yellow);
    transform: scale(1.1);
}

.btn-login, .btn-logout {
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    color: var(--yellow);
}

.btn-logout {
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    color: white;
}

.btn-login:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,51,102,0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255,215,0,0.1);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-info:hover {
    background: rgba(255,215,0,0.2);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-weight: 700;
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--light-gray);
    padding-left: 1.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: var(--red);
    transform: scale(1.1);
}

/* Video Detail Styles */
.video-detail-section {
    padding-top: 120px;
    padding-bottom: 4rem;
}

.video-header {
    margin-bottom: 3rem;
}

.video-category {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--red);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.video-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-meta-item i {
    color: var(--blue);
}

.video-player-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: #000;
}

.video-player {
    width: 100%;
    height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-player-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-player-placeholder:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
}

.play-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.video-player-placeholder:hover .play-icon {
    background: var(--yellow);
    transform: scale(1.1);
}

.play-icon i {
    font-size: 3rem;
    color: white;
}

.video-player-placeholder:hover .play-icon i {
    color: var(--blue);
}

.video-player-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-player-placeholder p {
    opacity: 0.8;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    color: var(--yellow);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 1rem;
    cursor: pointer;
}

.progress {
    width: 30%;
    height: 100%;
    background: var(--yellow);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.time-display {
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
}

.video-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.video-description {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.video-description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.video-description-text p {
    margin-bottom: 1.5rem;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.video-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0,51,102,0.1);
    color: var(--blue);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tag:hover {
    background: var(--blue);
    color: white;
    cursor: pointer;
}

.video-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--light-gray);
    border: none;
    border-radius: 25px;
    color: var(--blue);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-action-btn:hover {
    background: var(--blue);
    color: white;
}

.video-action-btn.liked {
    background: var(--red);
    color: white;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--yellow);
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    gap: 0.8rem;
}

.author-social-link {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-3px);
}

.related-videos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-video {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-video:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.related-video-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-video:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 1.5rem;
}

.related-video-content {
    flex: 1;
}

.related-video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
}

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

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
}

.comments-count {
    color: #666;
    font-size: 1rem;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--blue);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,51,102,0.3);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comment {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-weight: 700;
}

.comment-author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.2rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.comment-action:hover {
    color: var(--blue);
}

.comment-text {
    line-height: 1.7;
    color: #444;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--blue);
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255,255,255,0.15);
}

.btn-newsletter {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    color: var(--blue);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.5);
}

/* Footer Improvements */
.footer {
    background: var(--blue);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--yellow);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    color: var(--yellow);
    padding-left: 0;
}

.footer-contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--yellow);
    padding-left: 0.5rem;
}

.footer-contact-item i {
    width: 20px;
    text-align: center;
    color: var(--yellow);
    margin-top: 0.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    color: var(--blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255,215,0,0.6);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.5rem 5rem 1.5rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    background: white;
    color: var(--blue);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--yellow);
}

.close-search {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-search:hover {
    color: var(--red);
    transform: translateY(-50%) scale(1.2);
}

.search-suggestions {
    margin-top: 2rem;
    color: white;
}

.search-suggestions h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.suggestion-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}

/* Sidebar Improvements */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: white;
    z-index: 1100;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    position: relative;
}

.close-sidebar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.logo-icon-sidebar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--yellow), var(--dark-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
    margin: 0 auto 1rem;
}

.logo-text-sidebar h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--yellow);
    margin: 0;
}

.logo-text-sidebar span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: block;
    margin-top: 0.3rem;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: rgba(255,215,0,0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: white;
    border-left-color: var(--yellow);
    padding-left: 2rem;
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: var(--yellow);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.2);
}

.nav-item.active i {
    color: var(--yellow);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--blue);
    transform: translateY(-3px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    min-height: 100vh;
}

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

@media (max-width: 992px) {
    .video-title {
        font-size: 2.2rem;
    }
    .video-player {
        height: 400px;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content { padding: 0.8rem 0; }
    .logo-text h1 { font-size: 1.5rem; }
    .logo-icon { width: 45px; height: 45px; font-size: 1.3rem; }
    .video-detail-section { padding-top: 100px; }
    .video-title { font-size: 1.8rem; }
    .video-description { padding: 2rem; }
    .video-meta { flex-direction: column; align-items: start; gap: 0.8rem; }
    .video-player { height: 300px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 576px) {
    .video-title { font-size: 1.6rem; }
    .video-description { padding: 1.5rem; }
    .scroll-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}
.video-player-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), var(--placeholder-bg, #1a1a1a);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-player-placeholder:hover {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), var(--placeholder-bg, #1a1a1a);
}

.video-player-placeholder:hover .play-icon {
    transform: scale(1.1);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.play-icon i {
    font-size: 32px;
    color: #e74c3c;
    margin-left: 5px;
}

.video-player-placeholder h3 {
    color: white;
    font-size: 24px;
    margin: 0 20px 10px;
    text-align: center;
}

.video-player-placeholder p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0;
}

#youtubePlayerContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #1a1a1a;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(255,255,255,0.1);
}

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

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #e74c3c;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    color: white;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.volume-slider {
    width: 80px;
    cursor: pointer;
}

/* Personnalisation du slider */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

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

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .video-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .volume-slider {
        display: none;
    }
    
    .time-display {
        font-size: 12px;
        min-width: 80px;
    }
}