* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f12 100%);
    color: #ffffff;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e50914, #b20710);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0a1f;
}

.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e50914, #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #e50914;
    margin-right: 8px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #e50914, #b20710);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.1);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, rgba(229,9,14,0.1) 0%, transparent 100%);
    border-radius: 24px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e50914);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.9), rgba(15, 15, 18, 0.95));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.08);
}

/* Watch Page */
.watch-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player-wrapper {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.video-player-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.custom-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: #e50914;
    transform: scale(1.05);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #e50914;
    border-radius: 2px;
    width: 0%;
}

.time-display {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-family: monospace;
}

.speed-control {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.speed-control:hover {
    background: #e50914;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e50914;
    cursor: pointer;
}

.fullscreen-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.fullscreen-btn:hover {
    background: #e50914;
}

.movie-detail {
    padding: 1rem 0;
}

.movie-detail h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.movie-detail .meta {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    color: #e50914;
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    gap: 12px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.9), rgba(15, 15, 18, 0.95));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-thumbnail {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 4rem;
    color: white;
}

.video-info {
    padding: 1.2rem;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: rgba(20, 20, 25, 0.9);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff88;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .container {
        padding: 1rem;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}
/* Tambahan di akhir file style.css */
.ads-container {
    text-align: center;
    overflow: hidden;
}

.banner-728x90,
.banner-468x60 {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.social-bar-container iframe,
.social-bar-container div {
    max-width: 100%;
}

.in-video-overlay {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.in-video-overlay:hover {
    opacity: 1 !important;
}

/* Responsive ads */
@media (max-width: 768px) {
    .banner-728x90 {
        transform: scale(0.9);
    }
    .banner-468x60 {
        transform: scale(0.9);
    }
}
/* Tambahan untuk tombol close di style.css */
.ad-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e50914;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 21;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.ad-close-btn:hover {
    background: #ff0a1f;
    transform: scale(1.1);
}

.ad-close-btn i {
    font-size: 12px;
}

.in-video-overlay.closed {
    display: none !important;
}

/* Animasi untuk overlay */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.in-video-overlay {
    animation: slideIn 0.3s ease-out;
}