/* Modern Premium Design System */
:root {
    /* Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1f1f1f;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    
    /* Accent Colors */
    --accent-primary: #ff6b00;
    --accent-hover: #ff8533;
    --accent-gradient: linear-gradient(135deg, #ff6b00, #ff3d00);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Borders & Shadows */
    --border-color: #333333;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.2);
    
    /* Layout */
    --container-width: 1440px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 0; /* Отступ для header будет через main-content */
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.text-accent {
    color: var(--accent-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

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

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    min-height: calc(var(--header-height) + 20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 40px;
    padding-top: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    padding: 12px 20px 12px 48px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input-wrapper input:focus + .search-icon {
    color: var(--accent-primary);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--accent-primary);
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--accent-primary);
    font-weight: bold;
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

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

/* Categories Bar */
.categories-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 900;
}

.categories-wrapper {
    position: relative;
}

.categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories-fade {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg-secondary));
    pointer-events: none;
}

.category-link {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.category-link.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
    padding-top: calc(var(--header-height) + 40px); /* Отступ сверху для header */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-primary);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки для 7 рядов (28 видео) */
    gap: 32px 24px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.video-thumbnail {
    position: relative;
    display: block;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--bg-tertiary);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

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

.quality-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.video-card:hover .video-title a {
    color: var(--accent-primary);
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.page-link.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.page-nav {
    width: auto;
    padding: 0 16px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    margin-bottom: 0;
}

.footer-brand .logo {
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-column .social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшетах */
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
        gap: 20px 16px;
    }
    
    .nav-content {
        gap: 20px;
    }
    
    .search-bar {
        display: none; /* Hide search on mobile for now or make it expandable */
    }
    
    .nav-links span {
        display: none;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    /* Адаптивный переключатель языка на мобильных */
    .lang-current {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-name {
        display: none; /* Скрываем название языка на мобильных */
    }
    
    .lang-menu {
        min-width: 140px;
    }
    
    .lang-option {
        padding: 10px 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-column .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-card {
    animation: fadeIn 0.6s ease backwards;
}

/* Stagger animations */
.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.15s; }
.video-card:nth-child(3) { animation-delay: 0.2s; }
.video-card:nth-child(4) { animation-delay: 0.25s; }
.video-card:nth-child(5) { animation-delay: 0.3s; }
.video-card:nth-child(6) { animation-delay: 0.35s; }
.video-card:nth-child(7) { animation-delay: 0.4s; }
.video-card:nth-child(8) { animation-delay: 0.45s; }

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 8px;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================
   AUTH PAGES (Login & Register)
   ============================================ */

/* Auth Page Container */
.auth-page {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--bg-primary);
    margin: calc(-1 * (var(--header-height) + 40px)) -24px 0 -24px; /* Компенсируем отступы main-content и container */
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Auth Box - Card */
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
}

/* Auth Title */
.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.auth-title i {
    color: var(--accent-primary);
    font-size: 28px;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-group label i {
    color: var(--accent-primary);
    font-size: 16px;
    width: 18px;
}

/* Form Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.form-group input:hover:not(:focus) {
    border-color: var(--text-muted);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--accent-primary);
}

.checkbox-label:hover {
    color: var(--text-primary);
}

/* Button Block */
.btn-block {
    width: 100%;
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Auth Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    border: 1px solid transparent;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-error i {
    color: #ef4444;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

.alert-warning i {
    color: #fbbf24;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success i {
    color: #22c55e;
}

/* Alert Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - AUTH PAGES
   ============================================ */

@media (max-width: 768px) {
    .auth-page {
        padding: 40px 16px;
        min-height: calc(100vh - var(--header-height) - 100px);
    }
    
    .auth-box {
        padding: 36px 28px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-title i {
        font-size: 24px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 12px 16px;
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
    
    .btn-block {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
        border-radius: var(--radius-md);
    }
    
    .auth-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-form {
        gap: 20px;
    }
}

/* ============================================
   VIDEO DETAIL PAGE
   ============================================ */

.video-detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Video Player Section */
.video-player-section {
    margin-bottom: 48px;
}

.video-player {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.embedded-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.player-info {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.player-info a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.player-info a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.no-video-player {
    background: var(--bg-tertiary);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
}

.no-video-player i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.no-video-player p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.no-video-player img {
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
}

/* Video Details */
.video-details {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.video-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.video-title-main {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.video-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.stat-badge i {
    color: var(--accent-primary);
}

.rating-badge {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.rating-badge i {
    color: var(--accent-primary);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Video Info Grid */
.video-info-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.info-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.info-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section-title i {
    color: var(--accent-primary);
    font-size: 18px;
}

.info-section-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-section-content p {
    margin: 0;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Info Sidebar */
.info-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.info-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    color: var(--accent-primary);
    font-size: 14px;
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.category-link-inline {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link-inline:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.quality-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
}

/* Related Videos Section */
.related-videos-section {
    margin-top: 48px;
}

.related-videos-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-count {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.rating-badge-small {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge-small i {
    color: #ffd700;
    font-size: 11px;
}

.no-videos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Responsive - Video Detail Page */
@media (max-width: 1024px) {
    .video-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-sidebar {
        position: static;
    }
    
    .video-title-main {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .video-details {
        padding: 24px 20px;
    }
    
    .video-title-main {
        font-size: 24px;
    }
    
    .video-stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-group {
        width: 100%;
    }
    
    .video-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .embedded-player {
        padding-bottom: 56.25%;
    }
}
