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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #212121;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

/* Shorts Section */
.shorts-section {
    margin-bottom: 40px;
}

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.short-card {
    background-color: #181818;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.short-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.short-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
}

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

.short-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.short-info {
    padding: 12px;
}

.short-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.short-info .views {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-right: 15px;
}

.menu-toggle:hover {
    background-color: #333;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #212121;
    z-index: 1002;
    transition: left 0.3s ease;
    border-right: 1px solid #333;
}

.sidebar.open {
    left: 0;
}

.sidebar-content {
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    background-color: #1a1a1a;
}

.sidebar-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.close-sidebar {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.close-sidebar:hover {
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #2a2a2a;
    color: #fff;
    border-left-color: #ff6b6b;
}

.menu-item.active {
    background-color: #ff6b6b;
    color: #fff;
    border-left-color: #ff5252;
}

.menu-item i {
    width: 24px;
    margin-right: 15px;
    font-size: 16px;
    text-align: center;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background-color: #333;
    margin: 10px 0;
    border: none;
}

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

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

/* Main content adjustment when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .menu-toggle {
        margin-right: 10px;
    }
}

.logo a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 112px;
    width: auto;
    display: block;
}

.auth-logo-image {
    height: 192px;
    width: auto;
    display: inline-block;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-bar form {
    display: flex;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #333;
    border: none;
    color: #fff;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-btn, .login-btn, .register-btn {
    padding: 8px 16px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-btn {
    background-color: #ff6b6b;
    color: white;
}

.login-btn {
    color: #3ea6ff;
    border: 1px solid #3ea6ff;
}

.register-btn {
    background-color: #3ea6ff;
    color: white;
}

.user-menu {
    position: relative;
}

.user-avatar {
    background: none;
    border: none;
    cursor: pointer;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #282828;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
}

.dropdown a:hover {
    background-color: #333;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-card a {
    text-decoration: none;
    color: inherit;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 12px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 4px;
}

.views {
    color: #aaa;
    font-size: 13px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff;
}

.page-header p {
    color: #aaa;
    font-size: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-top: 40px;
}

.empty-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #fff;
}

.empty-state p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #ff5252;
}

.btn-secondary {
    display: inline-block;
    background-color: #666;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-youtube {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-youtube:hover {
    background-color: #cc0000;
}

/* YouTube Feed Styles */
.config-required, .youtube-connect {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.config-card, .connect-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.config-icon, .connect-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.config-card h3, .connect-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.config-card p, .connect-card p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.youtube-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.youtube-video-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.youtube-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.youtube-video-info {
    padding: 16px;
}

.youtube-video-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 4px;
}

.publish-date {
    color: #888;
    font-size: 12px;
    margin-bottom: 16px;
}

.video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-watch, .btn-import {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-watch {
    background-color: #ff0000;
    color: white;
}

.btn-watch:hover {
    background-color: #cc0000;
}

.btn-import {
    background-color: #333;
    color: white;
}

.btn-import:hover {
    background-color: #555;
}

.empty-feed {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-top: 40px;
}

.auth-result {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.success-card, .error-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 20px;
}

.success-card h2, .error-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.success-card p, .error-card p {
    color: #aaa;
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .youtube-feed-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .video-actions {
        justify-content: center;
    }
    
    .auth-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Video Player Styles */
.video-player-container {
    max-width: 100%;
    margin-bottom: 20px;
}

.video-player {
    width: 100%;
    max-height: 70vh;
    background-color: #000;
    border-radius: 8px;
}

.short-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.short-player {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    aspect-ratio: 9/16;
}

.short-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

@media (max-width: 768px) {
    .short-player-container {
        max-width: 100%;
    }
    
    .short-player {
        max-height: 60vh;
    }
}

/* Video Player */
.video-player-container {
    max-width: 1280px;
    margin: 20px auto;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
}

.video-details {
    padding: 20px;
}

.video-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.video-stats {
    color: #aaa;
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background-color: #333;
}

.action-btn.liked {
    color: #3ea6ff;
    border-color: #3ea6ff;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.channel-info a:hover .channel-avatar {
    transform: scale(1.05);
}

.channel-details a:hover h4 {
    color: #3ea6ff !important;
    transition: color 0.2s ease;
}

.channel-details h4 {
    margin-bottom: 4px;
}

.subscribers {
    color: #aaa;
    font-size: 13px;
}

.subscribe-btn {
    background-color: #c00;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    cursor: pointer;
    margin-left: auto;
}

.video-description {
    background-color: #272727;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Upload Form */
.upload-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3ea6ff;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 40px;
    border: 2px dashed #333;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload:hover {
    border-color: #3ea6ff;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-btn-primary {
    background-color: #3ea6ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
}

.upload-btn-primary:hover {
    background-color: #2d8ceb;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    background-color: #3ea6ff;
    width: 0%;
    transition: width 0.3s;
}

/* Footer */
/* Content Pages Styling */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.page-header .page-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0;
}

.page-content {
    line-height: 1.6;
}

.page-content section {
    margin-bottom: 40px;
}

.page-content h2 {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-content h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-content p {
    color: #ccc;
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    color: #ccc;
    margin-bottom: 15px;
    padding-left: 20px;
}

.page-content ul li, .page-content ol li {
    margin-bottom: 8px;
}

.page-content a {
    color: #3ea6ff;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background-color: #252525;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.feature-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    background-color: #252525;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list li i {
    color: #ff6b6b;
    font-size: 1.2rem;
    width: 20px;
}

/* Contact and Support Styling */
.contact-methods, .help-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-method, .help-card, .info-item {
    background-color: #252525;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
}

.contact-method:hover, .help-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
    text-decoration: none;
}

.contact-method i, .help-card i, .info-item i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.contact-method h3, .help-card h3, .info-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.contact-method p, .help-card p, .info-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Form Styling */
.contact-form {
    background-color: #252525;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label i {
    margin-right: 8px;
    color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3ea6ff;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* Alert Messages */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert i {
    font-size: 1.5rem;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Guidelines and Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.value-item {
    text-align: center;
    padding: 20px;
    background-color: #252525;
    border-radius: 8px;
}

.value-item i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

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

.guideline-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid;
}

.guideline-list.positive li {
    background-color: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

.guideline-list.negative li {
    background-color: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
}

.text-success {
    color: #4caf50 !important;
}

.text-danger {
    color: #f44336 !important;
}

/* FAQ */
.faq-item {
    background-color: #252525;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item h3 {
    background-color: #2a2a2a;
    margin: 0;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #333;
}

.faq-item h3:hover {
    background-color: #333;
}

.faq-item h3 i {
    margin-right: 10px;
    color: #ff6b6b;
}

.faq-answer {
    padding: 20px;
    display: none;
}

.footer {
    background-color: #212121;
    padding: 40px 0 20px;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        margin: 0;
        max-width: 100%;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .channel-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscribe-btn {
        margin-left: 0;
    }
}
/* Caption enhancements */
.video-player::cue {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 1px black;
    padding: 2px 4px;
    border-radius: 2px;
}

.caption-notice {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom caption indicator */
.has-captions::after {
    content: "CC";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.youtube-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.recommended-section {
    margin-top: 40px;
}

.recommended-section h3 {
    margin-bottom: 16px;
}
