* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(26, 26, 26, 0.95);
    padding: 18px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-desktop a:hover {
    color: #ff3c5f;
    background: rgba(255, 60, 95, 0.1);
}

.nav-mobile {
    display: none;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(45deg, #ff7b00, #ff3c5f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content */
.main-content {
    display: flex;
    margin-top: 40px;
    gap: 40px;
}

/* Video Section */
.video-section {
    flex: 7;
}

.video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
	cursor: pointer;
}

/* Sembunyikan native controls saat custom play button aktif */
.video-container.custom-controls .video-player {
    cursor: pointer;
}

/* Loading state untuk custom controls */
.video-container.loading .custom-play-button {
    display: none;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* Enhanced Loading States */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: none;
    z-index: 10;
    text-align: center;
}

.video-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.video-container.loading .video-loading {
    display: block;
}

.video-container.loading .video-player {
    opacity: 0.5;
}

/* Loading spinner animation */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ff3c5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 21;
    display: none;
}

.video-container.loading .video-loading-spinner {
    display: block;
}

/* Pastikan animation keyframes ada */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sembunyikan custom play button saat loading */
.video-container.loading .custom-play-button {
    display: none !important;
}

/* Optional: redupkan video saat loading */
.video-container.loading .video-player {
    opacity: 0.7;
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    padding: 20px;
    text-align: center;
}

.video-error-content {
    max-width: 400px;
}

.video-error i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 15px;
    display: block;
}

.video-error h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 20px;
}

.video-error p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.video-error button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.video-error button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
    z-index: 5;
}

.video-info {
    padding: 25px 0;
}

.video-title {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-description {
    color: #aaaaaa;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Video Controls Info */
.playback-info {
    background: rgba(255, 60, 95, 0.1);
    border: 1px solid rgba(255, 60, 95, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.playback-info i {
    color: #ff3c5f;
    font-size: 24px;
}

.playback-text {
    flex: 1;
}

.playback-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #ff3c5f;
}

.playback-text p {
    font-size: 14px;
    color: #cccccc;
}

/* Suggested Videos Section */
.suggested-videos {
    margin-top: 40px;
}

.suggested-videos h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    font-weight: 600;
}

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

.video-card {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #ff3c5f;
}

.video-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

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

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-info {
    font-size: 13px;
    color: #aaaaaa;
    display: flex;
    justify-content: space-between;
}

/* Badge untuk video suggestions */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 60, 95, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* Sidebar */
.sidebar {
    flex: 3;
}

.comments-section, .reviews-section {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff3c5f;
}

.comment, .review {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.comment:last-child, .review:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.comment-content, .review-content {
    flex: 1;
}

.comment-header, .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author, .review-author {
    font-weight: 600;
}

.comment-time, .review-time {
    color: #777;
    font-size: 13px;
}

.comment-text, .review-text {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.6;
}

.comment-rating, .review-rating {
    color: #ffc107;
    margin-top: 8px;
    font-size: 14px;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    position: relative;
    animation: popupAppear 0.5s ease;
}

@keyframes popupAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.popup-icon {
    font-size: 50px;
    color: #ff3c5f;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.popup-text {
    margin-bottom: 30px;
    color: #cccccc;
    line-height: 1.7;
    font-size: 16px;
}

.register-btn {
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 60, 95, 0.4);
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 60, 95, 0.6);
}

.countdown-text {
    color: #aaaaaa;
    font-size: 15px;
    margin-top: 20px;
}

.countdown {
    color: #ff3c5f;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 70px;
    padding: 30px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #333;
    background: rgba(26, 26, 26, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #ff3c5f;
    background: rgba(255, 60, 95, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .video-section {
        order: 1;
    }
    
    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
    
    .video-title {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .premium-badge span {
        display: none;
    }
    
    .video-meta {
        gap: 10px;
    }
    
    .video-meta span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .video-card-title {
        font-size: 14px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .video-container {
        aspect-ratio: 16 / 9;
    }
}

/* No suggestions state */
.no-suggestions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-suggestions i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-suggestions p {
    font-size: 16px;
    margin: 0;
}
/* Custom Play Button */
.custom-play-button {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 20; /* ↑↑↑ TINGKATKAN z-index ↑↑↑ */
    box-shadow: 0 8px 25px rgba(255, 60, 95, 0.4);
    opacity: 0.9;
	pointer-events: auto;
}

.custom-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 12px 35px rgba(255, 60, 95, 0.6);
}

.custom-play-button.playing {
    opacity: 0;
    pointer-events: none;
	display: none; /* ← PASTIKAN DISEMBUNYIKAN */
}

/* Play button untuk mobile */
@media (max-width: 768px) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(26, 26, 26, 0.95);
    padding: 18px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-desktop a:hover {
    color: #ff3c5f;
    background: rgba(255, 60, 95, 0.1);
}

.nav-mobile {
    display: none;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(45deg, #ff7b00, #ff3c5f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content */
.main-content {
    display: flex;
    margin-top: 40px;
    gap: 40px;
}

/* Video Section */
.video-section {
    flex: 7;
}

.video-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

/* Sembunyikan native controls saat custom play button aktif */
.video-container.custom-controls .video-player {
    cursor: pointer;
}

/* Loading state untuk custom controls */
.video-container.loading .custom-play-button {
    display: none;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* Enhanced Loading States */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: none;
    z-index: 10;
    text-align: center;
}

.video-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.video-container.loading .video-loading {
    display: block;
}

.video-container.loading .video-player {
    opacity: 0.5;
}

/* Loading spinner animation */
.video-container.loading::before {
    content: '';
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ff3c5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    padding: 20px;
    text-align: center;
}

.video-error-content {
    max-width: 400px;
}

.video-error i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 15px;
    display: block;
}

.video-error h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 20px;
}

.video-error p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.video-error button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.video-error button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
    z-index: 5;
}

.video-info {
    padding: 25px 0;
}

.video-title {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-description {
    color: #aaaaaa;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Video Controls Info */
.playback-info {
    background: rgba(255, 60, 95, 0.1);
    border: 1px solid rgba(255, 60, 95, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.playback-info i {
    color: #ff3c5f;
    font-size: 24px;
}

.playback-text {
    flex: 1;
}

.playback-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #ff3c5f;
}

.playback-text p {
    font-size: 14px;
    color: #cccccc;
}

/* Suggested Videos Section */
.suggested-videos {
    margin-top: 40px;
}

.suggested-videos h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    font-weight: 600;
}

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

.video-card {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #ff3c5f;
}

.video-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

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

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-info {
    font-size: 13px;
    color: #aaaaaa;
    display: flex;
    justify-content: space-between;
}

/* Badge untuk video suggestions */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 60, 95, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

/* Sidebar */
.sidebar {
    flex: 3;
}

.comments-section, .reviews-section {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff3c5f;
}

.comment, .review {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.comment:last-child, .review:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.comment-content, .review-content {
    flex: 1;
}

.comment-header, .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author, .review-author {
    font-weight: 600;
}

.comment-time, .review-time {
    color: #777;
    font-size: 13px;
}

.comment-text, .review-text {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.6;
}

.comment-rating, .review-rating {
    color: #ffc107;
    margin-top: 8px;
    font-size: 14px;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    border-radius: 20px;
    padding: 50px 60px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    position: relative;
    animation: popupAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupAppear {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.popup-icon {
    font-size: 64px;
    margin-bottom: 25px;
    color: #ff3c5f;
}

.popup-title {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.popup-text {
    margin-bottom: 35px;
    color: #cccccc;
    line-height: 1.7;
    font-size: 17px;
    opacity: 0.9;
}

/* Enhanced Register Button */
.register-btn {
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(255, 60, 95, 0.5);
    letter-spacing: 0.5px;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 60, 95, 0.7);
}

/* Enhanced Login Tab Button */
.login-tab-btn {
    background: transparent;
    color: #ff3c5f;
    border: 2px solid #ff3c5f;
    padding: 16px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 100%;
    margin: 15px 0;
    letter-spacing: 0.3px;
}

.login-tab-btn:hover {
    background: rgba(255, 60, 95, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 60, 95, 0.3);
}

/* Enhanced Countdown */
.countdown-text {
    color: #aaaaaa;
    font-size: 16px;
    margin-top: 25px;
    font-weight: 500;
}

.countdown {
    color: #ff3c5f;
    font-weight: 700;
    font-size: 17px;
}

/* Enhanced Login Form Container */
.login-form-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideDown 0.4s ease;
}

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

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

.form-header h3 {
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.back-to-join {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.back-to-join:hover {
    background: rgba(255, 60, 95, 0.25);
    color: #ff3c5f;
    border-color: #ff3c5f;
}

/* Enhanced Form Groups */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #ff3c5f;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 60, 95, 0.2);
}

.form-group input::placeholder {
    color: #999999;
    font-weight: 400;
}

.form-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbbbbb;
    font-size: 18px;
    transition: all 0.3s;
}

.form-group input:focus + .form-icon {
    color: #ff3c5f;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bbbbbb;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: #ff3c5f;
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Login Submit Button */
.login-submit-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    letter-spacing: 0.3px;
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6);
}

.login-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Login Links */
.login-links {
    text-align: center;
    margin: 15px 0;
}

.login-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

.login-link:hover {
    color: #ff3c5f;
    text-decoration: underline;
}

/* Enhanced Login Error Message */
.login-error {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.4);
    color: #ff6b6b;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 500;
}

.login-error i {
    font-size: 16px;
}

/* Footer */
footer {
    margin-top: 70px;
    padding: 30px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #333;
    background: rgba(26, 26, 26, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #ff3c5f;
    background: rgba(255, 60, 95, 0.1);
}

/* Custom Play Button */
.custom-play-button {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, #ff3c5f, #ff7b00);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 8px 25px rgba(255, 60, 95, 0.4);
    opacity: 0.9;
    pointer-events: auto;
}

.custom-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 12px 35px rgba(255, 60, 95, 0.6);
}

.custom-play-button.playing {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* No suggestions state */
.no-suggestions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-suggestions i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-suggestions p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .video-section {
        order: 1;
    }
    
    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
    
    .video-title {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .premium-badge span {
        display: none;
    }
    
    .video-meta {
        gap: 10px;
    }
    
    .video-meta span {
        font-size: 12px;
    }
    
    .custom-play-button {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    /* Mobile styles untuk popup */
    .popup-content {
        padding: 40px 25px;
        margin: 20px;
        max-width: 400px;
    }
    
    .popup-icon {
        font-size: 56px;
        margin-bottom: 20px;
    }
    
    .popup-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .popup-text {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .register-btn {
        padding: 18px 30px;
        font-size: 16px;
    }
    
    .login-tab-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .form-group input {
        padding: 16px 45px 16px 45px;
        font-size: 15px;
    }
    
    .login-submit-btn {
        padding: 16px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .video-card-title {
        font-size: 14px;
    }
    
    .video-container {
        aspect-ratio: 16 / 9;
    }
    
    /* Additional mobile styles untuk popup */
    .popup-content {
        padding: 30px 20px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .popup-icon {
        font-size: 48px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .popup-text {
        font-size: 14px;
    }
    
    .register-btn {
        padding: 16px 25px;
        font-size: 15px;
    }
    
    .login-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-header h3 {
        font-size: 18px;
    }
    
    .form-group input {
        padding: 14px 40px 14px 40px;
        font-size: 14px;
    }
    
    .login-submit-btn {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .countdown-text {
        font-size: 14px;
    }
}