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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f7 url('bg-6-full.png') repeat;
    min-height: 100vh;
    color: #1d1d1f;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    box-shadow: 0px 1px 10px 0px rgba(50, 50, 50, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 60px;
}

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

.logo {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    background-color: #D84A38 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border-radius: 40px !important;
    line-height: 10px !important;
    margin-top: 5px;
    padding: 10px !important;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.main-nav a:hover {
    color: #0066cc;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.youtube {
    color: #ff0000;
    border-color: #ff0000;
}

.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.instagram {
    color: #e4405f;
    border-color: #e4405f;
}



main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

#loading, #error {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

#player-section {
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

#player-section:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

#player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#player-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.placeholder-content {
    text-align: center;
    color: #86868b;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    color: #1d1d1f;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    font-size: 1rem;
    line-height: 1.5;
}

#youtube-player {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

#current-video-info {
    margin-top: 1rem;
}

#current-video-info h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

#current-video-info p {
    color: #666;
    line-height: 1.5;
}

.content-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.playlist-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e5e7;
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.playlist-sidebar h2 {
    color: #1d1d1f;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.player-main {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    min-height: 500px;
    position: relative;
}

#videos-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-card {
    background: transparent;
    border-radius: 8px;
    padding: 1rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-card:hover {
    background: #f5f5f7;
    transform: translateX(4px);
}

.video-thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.video-card:hover .play-button {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-info {
    flex: 1;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    display: none;
}

.video-date {
    color: #86868b;
    font-size: 0.8rem;
    font-weight: 400;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #495057;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.mobile-nav {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f1f3f4;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .logo-text {
        font-size: 1.2rem;
        padding: 8px !important;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .playlist-sidebar {
        order: 2;
        max-height: 400px;
    }
    
    .player-main {
        order: 1;
        min-height: 300px;
    }
    
    #youtube-player {
        height: 250px;
    }
    
    .video-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .play-button {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
    
    .video-date {
        font-size: 0.75rem;
    }
}