* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0f0f;
    color: #f1f1f1;
    line-height: 1.5;
}

/* ===== Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #272727;
    position: sticky;
    top: 0;
    background: #0f0f0f;
    z-index: 100;
    gap: 12px;
}

.logo {
    display: inline-flex;
    flex-direction: row;           /* ← paksa row */
    align-items: center;           /* ← center vertical */
    gap: 8px;
    text-decoration: none;
    color: #f1f1f1;
    flex-shrink: 0;
    white-space: nowrap;           /* ← elak teks wrap */
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;                /* ← OK, inline-flex parent akan treat sebagai flex item */
    flex-shrink: 0;                /* ← elak logo kecut */
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
    display: inline-block;
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Login button (bila tak login) */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #3ea6ff;
    color: #0f0f0f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Upload button (bila login, optional di header) */
.btn-primary, .btn-secondary {
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary { background: #3ea6ff; color: #0f0f0f; }
.btn-secondary { background: #272727; color: #f1f1f1; }

/* ===== User menu ===== */
.user-menu {
    position: relative;
}

.user-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #272727;
    background: #3ea6ff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.user-trigger:hover { border-color: #3ea6ff; }

.user-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-initial {
    color: #0f0f0f;
    font-weight: 700;
    font-size: 16px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    min-width: 220px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.user-dropdown[hidden] { display: none; }

.user-info {
    padding: 8px 10px 10px;
    border-bottom: 1px solid #272727;
    margin-bottom: 6px;
}

.user-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-info small {
    color: #888;
    font-size: 12px;
    word-break: break-all;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.15s;
}

.user-dropdown a:hover { background: #272727; }
.user-dropdown a.danger { color: #ff6b6b; }

/* ===== Main ===== */
main { max-width: 1200px; margin: 0 auto; padding: 24px; }

h1 { font-size: 22px; margin-bottom: 20px; }

/* ===== Video grid ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card { text-decoration: none; color: inherit; display: block; }

.video-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-card .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.video-card:hover .thumb img { transform: scale(1.05); }

.video-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.15s;
}

.video-card:hover h3 { color: #3ea6ff; }

.video-card .meta { font-size: 13px; color: #aaa; }

/* ===== Watch page ===== */
.watch { max-width: 960px; }

.player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    margin-bottom: 20px;
}

.watch .meta { font-size: 13px; color: #aaa; margin-bottom: 16px; }
.watch .desc { font-size: 14px; color: #ddd; }

/* ===== Upload page ===== */
.upload-page { max-width: 600px; }
.hint { color: #aaa; font-size: 14px; margin-bottom: 20px; }

form { display: flex; flex-direction: column; gap: 12px; }

input, textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #f1f1f1;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: #3ea6ff; }

button {
    background: #3ea6ff;
    color: #0f0f0f;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

progress { width: 100%; height: 8px; border-radius: 4px; }
#file-info { font-size: 13px; padding: 8px 0; }
.error { color: #ff6b6b; padding: 8px 0; }

/* ===== File drop zone ===== */
.file-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #333;
    border-radius: 12px;
    cursor: pointer;
    background: #1a1a1a;
    color: #aaa;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
}

.file-drop:hover,
.file-drop.dragging {
    border-color: #3ea6ff;
    background: #1e2a3a;
    color: #3ea6ff;
}

/* ===== Thumbnail preview (upload) ===== */
#thumb-preview-wrap { margin-top: 8px; }

#thumb-preview {
    width: 100%;
    border-radius: 8px;
    background: #1a1a1a;
    display: block;
}

/* ===== Progress bar ===== */
#progress-wrap { margin-top: 8px; }

.progress-bar {
    width: 100%;
    height: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #3ea6ff;
    border-radius: 5px;
    transition: width 0.2s ease, background 0.3s;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}

#progress-percent {
    font-weight: 700;
    color: #3ea6ff;
}

/* ===== Action bar ===== */
.action-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #272727;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #272727;
    color: #f1f1f1;
    border: none;
    padding: 8px 16px; /* Besarkan sedikit padding kanan/kiri untuk ruang nombor */
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.action-btn:hover { background: #3a3a3a; }
.action-btn.active { background: #3ea6ff; color: #0f0f0f; }
.action-btn.danger { color: #ff6b6b; }
.action-btn.danger:hover { background: #3a2020; }

.btn-count {
    font-size: 12px;
    color: #aaa;
    margin-left: 4px; /* Tambah jarak sedikit dari perkataan 'Like' */
    font-weight: 500;
}

.action-btn.active .btn-count { color: #0f0f0f; opacity: 0.85; }




/* ===== Comments ===== */
.comments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #272727;
}

.comments h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 60px;
}

.comment {
    padding: 12px 0;
    border-bottom: 1px solid #1f1f1f;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}

.comment-head strong { color: #f1f1f1; }
.comment-time { color: #888; }

.comment-body {
    font-size: 14px;
    color: #ddd;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-body.deleted {
    color: #666;
    font-style: italic;
}

.comment-del {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
}

.comment-del:hover { color: #ff6b6b; }

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    padding: 16px;
    animation: fadeIn 0.15s ease;
}

.modal[hidden] { display: none; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-head h2 {
    font-size: 17px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover { color: #fff; }

.modal-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-box select,
.modal-box textarea {
    background: #0f0f0f;
    border: 1px solid #333;
    color: #f1f1f1;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    /* Header */
    header { padding: 8px 12px; }
    .logo { font-size: 16px; }

    .btn-login {
        padding: 0;
        width: 34px;
        height: 34px;
        justify-content: center;
    }
    .btn-login span { display: none; }

    .user-trigger {
        width: 32px;
        height: 32px;
    }

    .user-dropdown {
        min-width: 200px;
        right: -8px;
    }

    .action-bar {
        gap: 6px;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0;                  /* ← Reset padding */
        border-radius: 50%;
        width: 42px;
        height: 42px;
        min-width: 42px;             /* ← Paksa min width */
        max-width: 42px;             /* ← Paksa max width */
        flex: 0 0 42px;              /* ← Jangan grow/shrink */
        justify-content: center;
        align-items: center;
        gap: 0;
        position: relative;
        overflow: hidden;            /* ← Potong content overflow */
    }

    .action-btn .btn-text {
        display: none !important;
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .action-btn .btn-count {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #3ea6ff;
        color: #0f0f0f;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 8px;
        margin: 0;
        min-width: 16px;
        text-align: center;
        line-height: 1.2;
    }


    .action-bar { gap: 6px; }

    /* Main padding kecil */
    main { padding: 16px; }

    /* Video grid 1 kolum */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Komen */
    .comments { margin-top: 24px; padding-top: 16px; }
}

    /* Kategori */
select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #f1f1f1;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}

select:focus { outline: none; border-color: #3ea6ff; }

/* ===== Category tabs ===== */
.cat-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid #272727;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    display: inline-block;
    padding: 6px 14px;
    background: #272727;
    color: #f1f1f1;
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.cat-tab:hover { background: #3a3a3a; }

.cat-tab.active {
    background: #f1f1f1;
    color: #0f0f0f;
}

/* Category badge dalam card */
.cat-badge {
    color: #3ea6ff;
    font-weight: 600;
}

/* Category link dalam watch page */
.cat-link {
    color: #3ea6ff;
    text-decoration: none;
    font-weight: 600;
}

.cat-link:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
    .cat-tabs {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .cat-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===== Source toggle (upload vs youtube) ===== */
.source-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 10px;
}

.source-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    color: #aaa;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.source-btn:hover { color: #f1f1f1; }

.source-btn.active {
    background: #272727;
    color: #f1f1f1;
}

#section-youtube input[type="url"] {
    width: 100%;
}

#thumb-preview {
    width: 100%;
    border-radius: 8px;
    background: #1a1a1a;
    display: block;
}



/* ===== Source badge (YouTube) ===== */
.video-card .thumb {
    position: relative; /* dah ada, pastikan */
}

.source-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* ===== Empty state ===== */
.empty {
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.empty a {
    color: #3ea6ff;
    text-decoration: none;
    font-weight: 600;
}

.empty a:hover { text-decoration: underline; }


/* ===== YouTube player wrapper ===== */
.player-youtube {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.player-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== Source tag (YouTube label) ===== */
.source-tag {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ===== Watch layout (player + sidebar) ===== */
.watch {
    max-width: 1400px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.watch-main {
    min-width: 0;  /* penting untuk elak overflow */
}

/* ===== Sidebar ===== */
.watch-sidebar {
    position: sticky;
    top: 70px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f1f1f1;
}

.sidebar-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.sidebar-card:hover {
    background: #1a1a1a;
}

.sidebar-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-thumb .source-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.sidebar-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-info .meta {
    font-size: 12px;
    color: #aaa;
    margin: 2px 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .watch-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .watch-sidebar {
        position: static;
    }

    .sidebar-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .sidebar-card {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar-card {
        grid-template-columns: 120px 1fr;
        gap: 8px;
        padding: 4px;
    }

    .sidebar-info h4 {
        font-size: 13px;
    }

    .sidebar-info .meta {
        font-size: 11px;
    }
}

/* ===== Video total ===== */
.video-total {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 16px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #272727;
    color: #f1f1f1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
    white-space: nowrap;
}

.page-btn:hover { background: #3a3a3a; }

.page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: transparent;
    color: #f1f1f1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.page-num:hover { background: #272727; }

.page-num.active {
    background: #3ea6ff;
    color: #0f0f0f;
    pointer-events: none;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    color: #666;
    user-select: none;
}

/* Mobile */
@media (max-width: 640px) {
    .pagination { gap: 6px; }

    .page-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Sembunyikan nombor di mobile, cuma "Sebelum" + "Seterusnya" */
    .page-numbers {
        display: none;
    }
}

/* ===== Form labels ===== */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: -6px;
    margin-top: 4px;
}

/* ===== Form actions ===== */
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.form-actions .btn-secondary,
.form-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.form-actions .btn-secondary {
    background: #272727;
    color: #f1f1f1;
}

.form-actions .btn-secondary:hover { background: #3a3a3a; }

.form-actions .btn-primary {
    background: #3ea6ff;
    color: #0f0f0f;
}

.form-actions .btn-primary:hover { background: #58b3ff; }


/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #272727;
    background: #0a0a0a;
    margin-top: 48px;
    padding: 32px 16px 16px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f1f1f1;
}

.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.footer-col ul a:hover {
    color: #3ea6ff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

/* ===== Page content (About, Terms, Privacy) ===== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
    line-height: 1.7;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #f1f1f1;
}

.page-content h2 {
    font-size: 18px;
    margin: 28px 0 12px;
    color: #f1f1f1;
}

.page-content p {
    color: #ccc;
    margin-bottom: 12px;
    font-size: 15px;
}

.page-content ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.page-content li {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 6px;
}

.page-content strong {
    color: #f1f1f1;
}

.page-content a {
    color: #3ea6ff;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.last-updated {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #272727;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ===== Footer responsive ===== */
@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-content {
        padding: 24px 16px;
    }

    .page-content h1 {
        font-size: 22px;
    }

    .page-content h2 {
        font-size: 16px;
    }

    .page-content p,
    .page-content li {
        font-size: 14px;
    }
}

/* ===== Admin Panel ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: #0a0a0a;
    border-bottom: 1px solid #272727;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.admin-nav a:hover { color: #f1f1f1; background: #1a1a1a; }
.admin-nav a.active { color: #3ea6ff; background: #1a2a3a; }
.admin-nav a.danger { color: #ff6b6b; }

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.admin-main h1 {
    font-size: 24px;
    margin-bottom: 24px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #272727;
}

.stat-card.warning {
    border-color: #ff6b6b;
    background: #2a1a1a;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #f1f1f1;
}

/* Admin sections */
.admin-section {
    margin-bottom: 32px;
}

.admin-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-online {
    background: #4ade80;
    color: #0f0f0f;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Tables */
.table-wrap {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #272727;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #272727;
    white-space: nowrap;
}

.admin-table th {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: #0f0f0f;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #1f1f1f; }

.row-banned {
    opacity: 0.6;
}

.admin-table code {
    background: #0f0f0f;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #3ea6ff;
}

.admin-table a {
    color: #f1f1f1;
    text-decoration: none;
}

.admin-table a:hover { color: #3ea6ff; }

/* User cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-fallback {
    background: #3ea6ff;
    color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-admin { background: #3ea6ff; color: #0f0f0f; }
.badge-banned { background: #ff6b6b; color: #0f0f0f; }
.badge-user { background: #272727; color: #aaa; }
.badge-yt { background: #ff0000; color: #fff; font-size: 10px; }

/* Actions */
.actions-cell {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0;
}

.inline-input {
    padding: 4px 8px !important;
    font-size: 12px !important;
    width: 120px;
    height: 26px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    background: #272727;
    color: #f1f1f1;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-xs:hover { background: #3a3a3a; }
.btn-xs.danger { color: #ff6b6b; }
.btn-xs.danger:hover { background: #3a2020; }

/* Alerts */
.admin-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-alert.success {
    background: #1a3a2a;
    color: #4ade80;
    border: 1px solid #2a5a3a;
}

.admin-alert.error {
    background: #3a1a1a;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

/* Search & filter */
.admin-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-direction: row;
}

.admin-search input {
    flex: 1;
    max-width: 400px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}


/* ===== DMCA Admin Cards ===== */
.admin-dmca-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-dmca-card {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.15s;
}

.admin-dmca-card:hover {
    border-color: #3a3a3a;
}

.admin-dmca-card.status-pending {
    border-left: 4px solid #f5a623;
}

.admin-dmca-card.status-reviewed {
    border-left: 4px solid #4ade80;
}

.admin-dmca-card.status-actioned {
    border-left: 4px solid #3ea6ff;
}

.admin-dmca-card.status-rejected {
    border-left: 4px solid #666;
    opacity: 0.75;
}

/* Header */
.admin-dmca-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #272727;
    flex-wrap: wrap;
}

.admin-dmca-head-left h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #f1f1f1;
}

.admin-dmca-head-left p {
    font-size: 13px;
    color: #888;
    margin: 2px 0;
}

.admin-dmca-head-left a {
    color: #3ea6ff;
    text-decoration: none;
}

.admin-dmca-head-left a:hover {
    text-decoration: underline;
}

/* Info grid */
.admin-dmca-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-dmca-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-dmca-field label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-dmca-field span,
.admin-dmca-field a {
    font-size: 13px;
    color: #f1f1f1;
    word-break: break-word;
}

.admin-dmca-field a {
    color: #3ea6ff;
    text-decoration: none;
}

.admin-dmca-field a:hover {
    text-decoration: underline;
}

/* Keterangan */
.admin-dmca-desc {
    background: #0f0f0f;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 16px;
    border-left: 2px solid #3ea6ff;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Actions */
.admin-dmca-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #272727;
}

/* Badge untuk DMCA */
.badge-actioned {
    background: #3ea6ff;
    color: #0f0f0f;
}

.badge-rejected {
    background: #666;
    color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
    .admin-dmca-card {
        padding: 16px;
    }

    .admin-dmca-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-dmca-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
    
    
/* ===== Reset thumbnail checkbox ===== */
.reset-thumb-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
    padding: 6px 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #272727;
    transition: all 0.15s;
}

.reset-thumb-label:hover {
    background: #272727;
    color: #f1f1f1;
}

.reset-thumb-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #ff6b6b;
}

/* ===== YouTube Preview dalam Edit ===== */
.youtube-preview,
.thumb-editor iframe,
.video-preview iframe {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
    display: block;
}

/* Kalau preview dalam .thumb-current (sama macam thumbnail) */
.thumb-current iframe {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #0f0f0f;
    display: block;
}

/* ===== Autoplay Overlay ===== */
.autoplay-overlay {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.autoplay-box {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 280px;
}

.autoplay-box p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #f1f1f1;
}

#autoplay-count {
    color: #3ea6ff;
    font-weight: 700;
}

.autoplay-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.autoplay-actions button,
.autoplay-actions a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.autoplay-actions .btn-secondary {
    background: #272727;
    color: #f1f1f1;
}

.autoplay-actions .btn-primary {
    background: #3ea6ff;
    color: #0f0f0f;
}

/* Mobile */
@media (max-width: 640px) {
    .autoplay-overlay {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .autoplay-box {
        min-width: auto;
    }
}

/* ===== Playlist Page ===== */
.playlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.playlist-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.playlist-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #272727;
    border-radius: 10px;
    overflow: hidden;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.playlist-cover-empty {
    width: 100%;
    height: 100%;
    background: #272727;
}

.playlist-cover-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.playlist-info h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.playlist-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 12px;
}

.playlist-desc {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 16px;
}

.badge-private {
    display: inline-block;
    background: #ff6b6b;
    color: #0f0f0f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.playlist-actions .btn-primary,
.playlist-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.playlist-actions .btn-primary {
    background: #3ea6ff;
    color: #0f0f0f;
}

.playlist-actions .btn-secondary {
    background: #272727;
    color: #f1f1f1;
}

/* ===== Playlist Videos List ===== */
.playlist-videos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-video-row {
    display: grid;
    grid-template-columns: 32px 160px 1fr 40px;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s;
    align-items: center;
}

.playlist-video-row:hover {
    background: #1a1a1a;
}

.playlist-position {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.playlist-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.playlist-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.playlist-video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.playlist-video-title {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-video-title:hover {
    color: #3ea6ff;
}

.playlist-video-info .meta {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

.playlist-remove-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.playlist-remove-btn:hover {
    background: #3a2020;
    color: #ff6b6b;
}

/* ===== Playlist Grid (playlists.php) ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header h1 {
    margin: 0;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.playlist-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.playlist-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.playlist-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.playlist-card:hover .playlist-card-thumb img {
    transform: scale(1.05);
}

.playlist-card-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #272727, #1a1a1a);
}

.playlist-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.playlist-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.playlist-card .meta {
    font-size: 12px;
    color: #aaa;
}

/* ===== Modal Playlist ===== */
.playlist-list-modal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.playlist-item-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #0f0f0f;
    border-radius: 8px;
    gap: 12px;
}

.playlist-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.playlist-item-info strong {
    font-size: 14px;
    color: #f1f1f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item-info small {
    font-size: 12px;
    color: #888;
}

.playlist-item-modal .btn-xs.saved {
    background: #1a3a2a;
    color: #4ade80;
}

.playlist-create-section {
    border-top: 1px solid #272727;
    padding-top: 12px;
}

#new-playlist-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #aaa;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #3ea6ff;
}

.link-btn {
    background: none;
    border: none;
    color: #3ea6ff;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .playlist-hero {
        grid-template-columns: 1fr;
    }

    .playlist-video-row {
        grid-template-columns: 24px 120px 1fr;
    }

    .playlist-remove-btn {
        grid-column: 3;
        justify-self: end;
    }

    .playlist-info h1 {
        font-size: 22px;
    }
}


/* Responsif Peranti Mudah Alih (Mobile) play.php*/
        @media (max-width: 968px) {
            body {
                overflow-x: hidden !important;
                width: 100%;
                position: relative;
            }

            .watch {
                width: 100%;
                margin: 0.75rem auto;
                padding: 0 0.5rem;
                overflow-x: hidden;
            }

            .watch-layout {
                grid-template-columns: 1fr;
                width: 100%;
                gap: 1rem;
                overflow-x: hidden;
            }

            .watch-main {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                overflow-x: hidden;
            }

            #player-container {
                width: 100%;
                max-width: 100%;
                border-radius: 8px;
                margin-bottom: 0.75rem;
            }

            #video-title {
                font-size: 1.1rem;
                word-break: break-word;
                overflow-wrap: break-word;
            }

            .action-bar {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
                width: 100%;
                overflow-x: hidden;
            }

/* Pastikan kontena bar tindakan membenarkan elemen melimpah keluar jika perlu */
    .action-bar {
        overflow: visible !important; 
    }

    .action-btn {
        position: relative; 
        overflow: visible !important; /* PENTING: Supaya badge tidak dipotong di dalam butang */
        flex: 0 1 auto;
        justify-content: center;
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Tukar sifat count jadi terapung di penjuru butang */
    .action-btn#like-btn .btn-count {
        position: absolute;
        top: -8px;   /* Anjak ke atas keluar dari butang */
        right: -8px; /* Anjak ke kanan keluar dari butang */
        background: #3ea6ff;
        color: #0f0f0f;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 10px;
        border: 2px solid #0f172a; /* Warna latar belakang tema gelap anda */
        min-width: 18px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.4);
        z-index: 10; /* Pastikan ia berada di lapisan paling atas */
        margin-left: 0;
    }

    .action-btn#like-btn.active .btn-count {
        background: #ffffff;
        color: #0f0f0f;
    }

            .desc {
                word-break: break-word;
                overflow-wrap: break-word;
                font-size: 0.9rem;
            }

            .watch-sidebar {
                position: static;
                max-height: none;
                width: 100%;
                max-width: 100%;
                padding: 0.75rem;
                overflow-x: hidden;
            }

            .playlist-sidebar-item {
                width: 100%;
                max-width: 100%;
                overflow: hidden;
            }

            .sidebar-info {
                min-width: 0;
                flex: 1;
                overflow: hidden;
            }

            .sidebar-info h4 {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
        
        /* ===== Playlist Modal ===== */
#playlist-modal .modal-box {
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#playlist-modal .modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid #272727;
    margin: 0;
}

#playlist-modal .modal-head h2 {
    font-size: 16px;
    font-weight: 700;
}

/* Senarai playlist */
.playlist-list-modal {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 320px;
    flex: 1;
}

.playlist-item-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 10px;
    transition: border-color 0.15s, background 0.15s;
}

.playlist-item-modal:hover {
    border-color: #3a3a3a;
    background: #161616;
}

.playlist-item-modal.saved {
    border-color: #1a3a2a;
    background: #0f1a14;
}

.playlist-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.playlist-item-info strong {
    font-size: 14px;
    color: #f1f1f1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-item-info small {
    font-size: 12px;
    color: #888;
}

/* Butang dalam item */
.playlist-item-modal .btn-xs {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #272727;
    background: #272727;
    color: #f1f1f1;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}

.playlist-item-modal .btn-xs:hover {
    background: #3a3a3a;
    border-color: #3a3a3a;
}

.playlist-item-modal .btn-xs.saved {
    background: #1a3a2a;
    border-color: #2a5a3a;
    color: #4ade80;
}

.playlist-item-modal .btn-xs.saved:hover {
    background: #2a4a3a;
    border-color: #3a6a4a;
}

/* Section cipta playlist */
.playlist-create-section {
    padding: 12px 16px 16px;
    border-top: 1px solid #272727;
    margin: 0;
}

.playlist-create-section .btn-secondary {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #272727;
    color: #f1f1f1;
    border: 1px dashed #3a3a3a;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.playlist-create-section .btn-secondary:hover {
    background: #3a3a3a;
    border-color: #3ea6ff;
    color: #3ea6ff;
}

/* Form cipta playlist baru */
#new-playlist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

#new-playlist-form input {
    padding: 10px 12px;
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 14px;
}

#new-playlist-form input:focus {
    outline: none;
    border-color: #3ea6ff;
}

#new-playlist-form .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

#new-playlist-form .modal-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#new-playlist-form .btn-secondary {
    background: #272727;
    color: #f1f1f1;
}

#new-playlist-form .btn-secondary:hover {
    background: #3a3a3a;
}

#new-playlist-form .btn-primary {
    background: #3ea6ff;
    color: #0f0f0f;
}

#new-playlist-form .btn-primary:hover {
    background: #58b3ff;
}

/* Empty state */
.playlist-list-modal .hint {
    padding: 24px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 640px) {
    #playlist-modal .modal-box {
        max-width: 100%;
        max-height: 85vh;
    }

    .playlist-list-modal {
        max-height: none;
    }
}


/* ===== DMCA Form ===== */
.dmca-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding: 24px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #272727;
}

.dmca-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f1f1f1;
    margin-bottom: -6px;
}

.dmca-form input[type="text"],
.dmca-form input[type="email"],
.dmca-form input[type="url"],
.dmca-form textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #272727;
    color: #f1f1f1;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.dmca-form input:focus,
.dmca-form textarea:focus {
    outline: none;
    border-color: #3ea6ff;
}

.dmca-form textarea {
    resize: vertical;
    min-height: 100px;
}

.dmca-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #272727;
    margin-top: 8px;
}

.dmca-checkboxes .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.dmca-checkboxes .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: #3ea6ff;
    cursor: pointer;
}

.dmca-checkboxes .checkbox-label strong {
    color: #f1f1f1;
}

.dmca-form .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.dmca-form .btn-primary {
    padding: 12px 24px;
    background: #3ea6ff;
    color: #0f0f0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.dmca-form .btn-primary:hover {
    background: #58b3ff;
}

/* Mobile */
@media (max-width: 640px) {
    .dmca-form {
        padding: 16px;
    }

    .dmca-checkboxes {
        padding: 12px;
    }

    .dmca-checkboxes .checkbox-label {
        font-size: 12px;
    }
}


/* ===== Notification Bell ===== */
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.15s;
}

.notif-bell:hover {
    background: #1a1a1a;
    color: #f1f1f1;
}

.notif-bell.active {
    color: #3ea6ff;
    background: #1a2a3a;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Notification List ===== */
.notif-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    align-items: start;
    transition: all 0.15s;
}

.notif-item.unread {
    background: #1a2332;
    border-color: #2a4a6a;
}

.notif-item:hover {
    border-color: #3a3a3a;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.type-video_report {
    background: #3a2020;
    color: #ff6b6b;
}

.notif-icon.type-dmca_report {
    background: #3a2a1a;
    color: #f5a623;
}

.notif-icon.type-comment_report {
    background: #1a2a3a;
    color: #3ea6ff;
}

.notif-icon.type-new_user {
    background: #1a3a2a;
    color: #4ade80;
}

.notif-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.notif-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-head strong {
    font-size: 14px;
    color: #f1f1f1;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: #3ea6ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.notif-msg {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
    word-break: break-word;
    margin: 0;
}

.notif-time {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0;
}

.notif-actions-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .notif-item {
        grid-template-columns: 32px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .notif-icon {
        width: 32px;
        height: 32px;
    }

    .notif-actions-cell {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #272727;
    }
}

 /* ===== Admin Reports ===== */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 10px;
    transition: border-color 0.15s;
}

.report-card:hover {
    border-color: #3a3a3a;
}

.report-card.status-pending {
    border-left: 3px solid #f5a623;
}

.report-card.status-reviewed {
    border-left: 3px solid #4ade80;
}

.report-card.status-dismissed {
    border-left: 3px solid #666;
    opacity: 0.75;
}

/* Thumbnail */
.report-thumb {
    position: relative;
    width: 160px;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    border-radius: 8px;
    overflow: hidden;
}

.report-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deleted-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content */
.report-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.report-video-title {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.report-video-title:hover {
    color: #3ea6ff;
}

.report-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #aaa;
}

.report-meta strong {
    color: #888;
    font-weight: 600;
}

.report-reason {
    text-transform: capitalize;
}

.report-note {
    background: #0f0f0f;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #ddd;
    border-left: 2px solid #3ea6ff;
    font-style: italic;
    line-height: 1.5;
    word-break: break-word;
}

.report-uploader {
    font-size: 13px;
    color: #888;
}

.report-uploader strong {
    color: #aaa;
}

/* Actions */
.report-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #272727;
    margin-top: 4px;
}

/* Status badges */
.badge-pending {
    background: #f5a623;
    color: #0f0f0f;
}

.badge-reviewed {
    background: #4ade80;
    color: #0f0f0f;
}

.badge-dismissed {
    background: #666;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .report-card {
        grid-template-columns: 1fr;
    }

    .report-thumb {
        width: 100%;
        max-width: 280px;
    }

    .report-meta {
        flex-direction: column;
        gap: 4px;
    }
}  

/* ===== Filter Tabs (untuk admin) ===== */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: fit-content;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 14px;
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;      /* ← INI hilangkan underline */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #272727;
    color: #f1f1f1;
    text-decoration: none;      /* ← pastikan tak underline bila hover */
}

.filter-tab.active {
    background: #3ea6ff;
    color: #0f0f0f;
}

.filter-tab.active:hover {
    color: #0f0f0f;
}

.count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.filter-tab.active .count-badge {
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex-shrink: 0;
    }
}


/* Tetapkan ketinggian sidebar agar muat sekitar 5 lagu dan ada scrollbar kemas */
    .playlist-sidebar-list {
        max-height: 420px; /* Anggaran ketinggian untuk ~5 item video */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) var(--bg-card);
    }

    /* Stail scrollbar untuk pelayar web moden */
    .playlist-sidebar-list::-webkit-scrollbar {
        width: 6px;
    }
    .playlist-sidebar-list::-webkit-scrollbar-track {
        background: var(--bg-card);
        border-radius: 4px;
    }
    .playlist-sidebar-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }
    .playlist-sidebar-list::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }
    
    /* ===== Source badge Facebook ===== */
.source-badge.source-badge-fb,
.source-badge-fb {
    background: #1877f2;
    color: #fff;
}


/* Facebook player — semua orientation */
.player-facebook {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;   /* ← Kekal 16:9 */
    background: #000;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Buang override untuk vertical */
.player-facebook[data-orientation="vertical"] {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: #000;
}

.player-facebook iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* Facebook tag dalam meta */
.source-tag-fb {
    display: inline-block;
    background: #1877f2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Facebook badge dalam sidebar */
.source-badge-fb {
    background: #1877f2;
    color: #fff;
}

/* ===== admin/Settings Page ===== */
.settings-form {
    max-width: 600px;
}

.settings-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-group h2 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.settings-group .form-label {
    margin-top: 12px;
}

.settings-group input[type="number"],
.settings-group input[type="text"] {
    margin-bottom: 4px;
}

.settings-group .hint {
    margin: 4px 0 0 0;
    font-size: 12px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.settings-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    background: var(--accent);
    color: var(--bg-dark);
}

.settings-actions button:hover {
    background: var(--accent-hover);
}

/* ===== Custom Video Player ===== */
.vv-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
}

.vv-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Logo VidVira */
.vv-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 5;
}

.vv-logo:hover {
    opacity: 1;
    text-decoration: none;
}

.vv-logo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Loading Spinner */
.vv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 4;
    pointer-events: none;
}

.vv-loading.active {
    display: block;
}

.vv-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #3ea6ff;
    border-radius: 50%;
    animation: vv-spin 0.8s linear infinite;
}

@keyframes vv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Big Play Button */
.vv-big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
    padding: 0;
    padding-left: 8px;
}

.vv-big-play:hover {
    background: rgba(62, 166, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.vv-big-play.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Controls */
.vv-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 4;
}

.vv-player:hover .vv-controls,
.vv-player.paused .vv-controls {
    opacity: 1;
}

/* Progress Bar */
.vv-progress {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: height 0.15s;
}

.vv-progress:hover {
    height: 8px;
}

.vv-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    width: 0;
}

.vv-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #3ea6ff;
    border-radius: 3px;
    width: 0;
}

.vv-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #3ea6ff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.vv-progress:hover .vv-progress-handle {
    opacity: 1;
}

/* Controls Row */
.vv-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.vv-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.vv-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vv-time {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    margin-left: 4px;
}

.vv-spacer {
    flex: 1;
}

.vv-volume {
    width: 80px;
    height: 4px;
    accent-color: #3ea6ff;
    cursor: pointer;
}

/* Fullscreen */
.vv-player:fullscreen {
    border-radius: 0;
    aspect-ratio: auto;
    height: 100vh;
}

.vv-player:fullscreen video {
    object-fit: contain;
}

/* Mobile */
@media (max-width: 640px) {
    .vv-logo {
        font-size: 11px;
        padding: 4px 8px;
    }
    .vv-logo img {
        width: 16px;
        height: 16px;
    }
    .vv-big-play {
        width: 70px;
        height: 70px;
    }
    .vv-big-play svg {
        width: 56px;
        height: 56px;
    }
    .vv-volume {
        display: none;
    }
    .vv-time {
        font-size: 12px;
    }
}

/* ===== My Videos Page ===== */
.my-videos-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.my-stats {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-bottom: 24px;
}

.my-videos-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.my-videos-toolbar .admin-search {
    flex: 1;
    max-width: 400px;
    margin-bottom: 0;
}

/* List */
.my-videos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-video-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 16px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.15s;
    align-items: center;
}

.my-video-row:hover {
    border-color: var(--border-light);
}

.my-video-row.deleted {
    opacity: 0.6;
    border-style: dashed;
}

.my-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.my-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-video-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.my-video-title {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.my-video-title:hover {
    color: var(--accent);
    text-decoration: none;
}

.my-video-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.my-video-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
    .my-videos-page {
        padding: 16px 12px;
    }

    .my-video-row {
        grid-template-columns: 120px 1fr;
        gap: 10px;
        padding: 8px;
    }

    .my-video-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
        margin-top: 4px;
    }

    .my-video-title {
        font-size: 14px;
    }

    .my-video-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .my-video-row {
        grid-template-columns: 1fr;
    }

    .my-video-thumb {
        max-width: 200px;
    }
}

.player-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.player-poster-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: .92;
}
.player-poster-overlay {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55));
    transition: background .15s;
}
.player-poster:hover .player-poster-overlay { background: rgba(0,0,0,.45); }
.player-poster-play {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #000;
    display: grid; place-items: center;
    font-size: 32px;
    box-shadow: 0 6px 24px rgba(0,0,0,.5);
    transition: transform .15s;
}
.player-poster:hover .player-poster-play { transform: scale(1.06); }
.player-source-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
}
@media (max-width: 768px) {
    .player-poster-play { width: 68px; height: 68px; font-size: 26px; }
}

/* Sorok PC player pada skrin kecil */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* Sorok Mobile poster pada skrin besar */
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}

/* Pastikan iframe PC responsif */
.desktop-only iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
}

/* Pastikan video MP4 PC responsif dan penuh frame */
.desktop-only video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
    object-fit: contain;
    background: #000;
    display: block;
}