:root {
    --primary-color: #5740fe;
    --primary-light: #7c6aff;
    --primary-dark: #4532d9;
    --secondary-color: #f8f9fa;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --hover-color: #5740fe;
    --card-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 8px rgba(87, 64, 254, 0.1);
    --shadow-hover: 0 8px 24px rgba(87, 64, 254, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    max-width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px 3px 0 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-container {
    display: none;
    padding: 15px 4%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.search-container.active {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    flex: 1;
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(87, 64, 254, 0.1);
}

.search-close {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.search-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 50%, #f0edff 100%);
    margin-top: 70px;
    padding: 80px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(87, 64, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 106, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(87, 64, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 64, 254, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
}

.content-wrapper {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.content-section {
    padding: 0 4%;
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.row-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.row-container::-webkit-scrollbar {
    height: 8px;
}

.row-container::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

.row-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.row-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.card {
    flex: 0 0 auto;
    width: 280px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.card-info {
    padding: 15px;
    background: white;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    color: var(--text-color);
}

.card-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
}

.card-playlist-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
}

.card-playlist-badge a {
    display: inline-block;
    background: rgba(87, 64, 254, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-playlist-badge a:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 64, 254, 0.4);
}

.video-card-playlist-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(87, 64, 254, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.video-card-playlist-badge:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 64, 254, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content-wide {
    max-width: 1400px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.modal-body-flex {
    display: flex;
    gap: 0;
}

.video-main {
    flex: 1;
    min-width: 0;
}

.video-sidebar {
    width: 400px;
    background: var(--secondary-color);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: 90vh;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 16px 0 0 0;
    overflow: hidden;
}

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

.video-info {
    padding: 24px;
}

.video-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.3;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.video-description {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.video-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.video-description a:hover {
    text-decoration: underline;
}

#videoSuggestions h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 20px 16px 12px;
    color: var(--text-color);
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestions-list {
    padding: 8px;
}

.suggestion-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.suggestion-item:hover {
    background-color: white;
}

.suggestion-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.suggestion-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-results {
    display: none;
    position: fixed;
    top: 140px;
    left: 4%;
    right: 4%;
    bottom: 20px;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    z-index: 1500;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.search-results.active {
    display: block;
}

.search-results h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
}

.search-results .card {
    display: inline-block;
    margin: 10px;
}

.content-page {
    min-height: calc(100vh - 200px);
    padding: 150px 4% 50px;
}

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

.content-page h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.content h1,
.content h2,
.content h3 {
    color: var(--text-color);
    margin: 30px 0 15px;
}

.content p {
    margin-bottom: 20px;
}

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(87, 64, 254, 0.02) 0%, rgba(87, 64, 254, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(87, 64, 254, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.error-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(87, 64, 254, 0.08) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.error-icon {
    margin-bottom: 30px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.rotating-circle {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

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

.error-number {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -5px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.error-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer {
    background: linear-gradient(180deg, transparent 0%, var(--secondary-color) 50%);
    padding: 60px 4% 40px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

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

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    text-align: center;
}

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

@media (max-width: 1024px) {
    .card {
        width: 220px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .navbar-left {
        gap: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .card {
        width: 180px;
    }
    
    .card-img {
        height: 120px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-content-wide {
        max-width: 95%;
    }
    
    .modal-body-flex {
        flex-direction: column;
    }
    
    .video-sidebar {
        width: 100%;
        max-height: 400px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .suggestion-item img {
        width: 120px;
        height: 68px;
    }
    
    .search-results {
        top: 135px;
        left: 2%;
        right: 2%;
        bottom: 15px;
        padding: 20px;
        overflow-y: auto;
    }
    
    .search-results h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .search-results .row-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        overflow-x: visible;
    }
    
    .search-results .card {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card {
        width: 150px;
    }
    
    .card-img {
        height: 100px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-info {
        padding: 10px;
    }
    
    .search-results {
        padding: 15px;
        top: 140px;
        bottom: 10px;
        left: 1%;
        right: 1%;
        overflow-y: auto;
    }
    
    .search-results h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .search-results .row-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: visible;
    }
    
    .search-results .card {
        width: 100%;
        margin: 0;
    }
    
    .search-results .card-title {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .search-results .card-img {
        height: 110px;
    }
    
    .content-page {
        padding-top: 120px;
    }
    
    .error-number {
        font-size: 80px;
        letter-spacing: -3px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-description {
        font-size: 16px;
    }
    
    .error-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

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

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

html {
    scroll-behavior: smooth;
}

.video-page {
    min-height: 100vh;
    padding-top: 70px;
    background-color: var(--bg-color);
}

.video-page-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px 4%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.video-page-main {
    flex: 1;
    min-width: 0;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-bottom: 24px;
}

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

.video-details {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.video-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.video-stat svg {
    color: var(--primary-color);
}

.video-playlist-badge {
    margin-bottom: 24px;
}

.playlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.playlist-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 64, 254, 0.3);
}

.video-description-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.video-description-wrapper {
    position: relative;
}

.video-description-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 15px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.video-description-content.expanded {
    max-height: none;
}

.video-description-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.toggle-description {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
}

.toggle-description:hover {
    color: var(--primary-dark);
}

.video-page-sidebar {
    width: 400px;
    flex-shrink: 0;
}

.sidebar-playlist-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.playlist-header-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.playlist-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    transition: var(--transition);
}

.playlist-title-link:hover {
    color: var(--primary-color);
}

.playlist-title-link svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.playlist-title-link h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.toggle-playlist-btn {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toggle-playlist-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.toggle-playlist-btn .chevron {
    transition: transform 0.3s ease;
}

.playlist-videos-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.playlist-videos-list.open {
    max-height: 500px;
    overflow-y: auto;
}

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

.playlist-videos-list::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 3px;
}

.playlist-videos-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.playlist-video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 6px;
}

.playlist-video-item:hover {
    background: var(--secondary-color);
}

.playlist-video-item.current {
    background: linear-gradient(135deg, rgba(87, 64, 254, 0.1), rgba(124, 106, 255, 0.1));
    border: 1px solid var(--primary-color);
}

.video-index {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
}

.playlist-video-item.current .video-index {
    color: var(--primary-color);
}

.playlist-video-item img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.playlist-video-info {
    flex: 1;
    min-width: 0;
}

.playlist-video-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.video-duration-small {
    font-size: 11px;
    color: var(--text-secondary);
}

.playlist-info-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.suggestions-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-left: 4px;
}

.suggestions-list-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item-page {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.suggestion-item-page:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.suggestion-thumbnail {
    position: relative;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.suggestion-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.suggestion-playlist-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(87, 64, 254, 0.95);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    z-index: 5;
}

.suggestion-playlist-badge:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.suggestion-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.suggestion-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1200px) {
    .video-page-sidebar {
        width: 350px;
    }
    
    .suggestion-thumbnail {
        width: 140px;
        height: 79px;
    }
}

@media (max-width: 1024px) {
    .video-page-container {
        flex-direction: column;
    }
    
    .video-page-sidebar {
        width: 100%;
    }
    
    .sidebar-playlist-section {
        margin-bottom: 24px;
    }
    
    .playlist-videos-list.open {
        max-height: 400px;
    }
    
    .suggestions-list-page {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }
    
    .suggestion-item-page {
        flex-direction: column;
    }
    
    .suggestion-thumbnail {
        width: 100%;
        height: auto;
        padding-bottom: 56.25%;
    }
    
    .suggestion-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

@media (max-width: 768px) {
    .video-page {
        padding-top: 110px;
    }
    
    .video-page-container {
        padding: 15px 2%;
        gap: 20px;
    }
    
    .video-player-wrapper {
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .video-details {
        padding: 16px;
        border-radius: 12px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-stats {
        gap: 12px;
    }
    
    .video-stat {
        font-size: 13px;
    }
    
    .sidebar-playlist-section {
        padding: 12px;
    }
    
    .playlist-video-item img {
        width: 60px;
        height: 34px;
    }
    
    .playlist-video-info h4 {
        font-size: 12px;
    }
    
    .suggestions-list-page {
        grid-template-columns: 1fr;
    }
}

.playlist-header {
    padding: 120px 4% 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
}

.playlist-header-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.playlist-thumbnail {
    flex: 0 0 320px;
}

.playlist-thumbnail img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(87, 64, 254, 0.15);
    border: 1px solid var(--border-color);
}

.playlist-info {
    flex: 1;
}

.playlist-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.playlist-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.playlist-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

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

.video-card {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--card-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.video-card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(87, 64, 254, 0.3);
}

.video-card-info {
    padding: 15px;
}

.video-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-color);
}

.video-card-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-card-meta::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 10px;
}

@media (max-width: 1024px) {
    .playlist-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .playlist-thumbnail {
        flex: 0 0 auto;
        max-width: 320px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .playlist-header {
        padding-top: 100px;
    }
    
    .playlist-info h1 {
        font-size: 28px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .playlist-thumbnail {
        max-width: 100%;
    }
    
    .playlist-info h1 {
        font-size: 24px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 30px 0;
}

.pagination-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 64, 254, 0.2);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}
