.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0 0.5rem 0;
    padding: 0.7em 1.2em;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: none;
}

.category-header {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-left: 0.5em;
    border-left: 3px solid #3b82f6;
    background: rgba(60, 70, 100, 0.15);
    border-radius: 4px;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Show ✓ for all done status icons */
.status-icon.done::before {
    content: "\2713";
    /* Unicode for ✓ */
    color: #4CAF50;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Show × for all pending status icons */
.status-icon.pending::before {
    content: "\00D7";
    /* Unicode for × */
    color: #FF0000;
    font-size: 30px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 350;
}

/* Mobile auth form styles */
@media (max-width: 600px) {
    .auth-page .auth-container {
        width: 95vw;
        min-width: unset;
        max-width: 420px;
        padding: 24px 8px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .auth-page .auth-form input,
    .auth-page .auth-form button {
        font-size: 1.1rem;
        height: 48px;
    }

    .auth-page .auth-logo {
        max-width: 80vw;
        height: auto;
        margin-bottom: 18px;
    }
}

/* Playlist drag handle horizontal dots */
/* Removed drag-handle-horizontal styles (rollback) */
/* ===== Styles from contact.php ===== */
.settings-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    border-left: 4px solid #10b981;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-left: 4px solid #3b82f6;
}

.settings-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group select option {
    background: #1a1a2e;
    color: #fff;
    padding: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 10px 25px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.success-message {
    display: none;
}

.success-message.show {
    display: block;
}


.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    line-height: 1.6;
}

.error-message.show {
    display: block;
}

/* ===== Styles from browse.php ===== */
.video-type-badge-topleft {
    left: 0;
    right: auto;
    top: 0;
    position: absolute;
    margin: 10px 0 0 10px;
    z-index: 2;
}

/* ===== Styles from admin/dashboard.php ===== */
.badge-clickable {
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
}

.badge-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-clickable:active {
    transform: scale(0.98);
}

.badge-clickable.badge-free {
    background: #10b981;
}

.badge-clickable.badge-edu {
    background: #3b82f6;
}

.badge-clickable.badge-pro {
    background: #FF0000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #10b981;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input:checked+.slider {
    background-color: #ef4444;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* ===== Styles from about.php ===== */
.settings-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

.status-intro {
    margin-bottom: 2rem;
}

.status-intro h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
    margin-top: 0;
}

.status-intro p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.summary-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-number {
    font-weight: 600;
    color: #3b82f6;
}

.summary-item.pending .summary-number {
    color: #FF0000;
}

.summary-item.done .summary-number {
    color: #4CAF50;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.status-grid .pro {
    order: 2;
}

.status-grid .edu {
    order: 1;
}

.status-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.status-section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.section-header {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-badge {
    position: static;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25em;
}

.status-section.pro .header-badge {
    background: linear-gradient(135deg, #FF0000 0%, #D62D20 100%);
}

.status-section.edu .header-badge {
    background: #3b82f6;
}

.header-summary {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.status-section.pro .summary-item.pending {
    color: #fff;
}

.status-section.pro .summary-item.pending .summary-number {
    color: #FF0000;
}

.status-section.pro .summary-item.pending span {
    color: #FF0000;
}

.status-section.edu .summary-item.pending {
    color: #fff;
}

.status-section.edu .summary-item.pending .summary-number {
    color: #FF0000;
}

.status-section.edu .summary-item.pending span {
    color: #FF0000;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-header {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    background: none;
    border-left: none;
    padding: 0;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.video-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.status-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.status-icon.done {
    color: #4CAF50;
}

.status-icon.pending {
    color: #FF0000;
}

.video-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }

    .header-summary {
        gap: 1rem;
    }
}

/* Mobile-friendly auth form styles */
@media (max-width: 600px) {
    .auth-container {
        width: 95vw !important;
        min-width: unset !important;
        max-width: 420px;
        padding: 24px 8px !important;
        box-sizing: border-box;
    }

    .auth-form input,
    .auth-form button {
        font-size: 1.1rem;
        height: 48px;
    }

    .auth-logo {
        max-width: 80vw;
        height: auto;
    }
}

/* Ensure add-btn rotates when active (for playlist dropdown) */
.add-btn {
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
}

.add-btn.active {
    transform: rotate(90deg);
}

.playlist-item[data-playlist-id="favorites"] .favorite-icon[data-fav="1"] {
    width: 20px;
    height: 20px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure Favorites dropdown icon is always same size */
.playlist-item[data-playlist-id="favorites"] .favorite-icon {
    width: 20px;
    height: 20px;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =============================== */
/* FAVORITE HEART ICON (GLOBAL)    */
/* BIN ICON (FAVORITES PAGE) */
.bin-icon {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    pointer-events: none;
    font-size: 22.5px;
    color: #ee005f;
}

/* =============================== */
.favorite-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ee005f;
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    pointer-events: auto;
    line-height: 1;
    flex-shrink: 0;
    flex-grow: 0;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.favorite-icon {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* ================================= */
/* RESET */
/* ================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    background: #141414;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    min-height: 100vh;
}

/* ================================= */
/* LINKS */
/* ================================= */
a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ================================= */
/* HEADER (USER PAGES ONLY) */
/* ================================= */
.user-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-page header img {
    height: 80px;
}

.user-page header nav a {
    margin-left: 20px;
    font-weight: bold;
    color: #b3b3b3;
    transition: color 0.3s;
}

.user-page header nav a:hover {
    color: #fff;
}

/* ================================= */
/* AUTH PAGES (LOGIN / REGISTER) */
/* ================================= */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.auth-logo {
    height: 150px;
    margin-bottom: 25px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border: 1px solid #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-form button {
    width: 100%;
    padding: 12px 15px;
    background: #ee005f;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ee005f;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.auth-form button:hover {
    background: #d60052;
    border-color: #d60052;
    transform: translateY(-2px);
}

.auth-form .error {
    background: rgba(239, 68, 68, 0.15);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-form .success {
    background: rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-form p {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-form p a {
    color: #ee005f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-form p a:hover {
    color: #ff3385;
    text-decoration: underline;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    text-align: center;
}

.auth-links p {
    margin: 0;
}

.auth-page .forgot-link {
    color: #3b82f6;
}

.auth-page .forgot-link:hover {
    color: #60a5fa;
}

.auth-form h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

/* ================================= */
/* VIDEO GRID (BROWSE) */
/* ================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 50px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.04);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Thumbnail */
.thumbnail-block {
    position: relative;
}

.thumbnail-block img {
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
}

/* Play button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
}

.thumbnail-block:hover .play-btn {
    display: flex;
}

/* Premium badge (BLUE) */
.premium {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3498db;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
}

/* Video Type Badges */
.video-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.badge-free {
    background: #10b981;
}

.badge-edu {
    background: #3b82f6;
}

.badge-pro {
    background: #ef4444;
}

/* Table badges for admin */
.admin-page table .badge-free,
.admin-page table .badge-edu,
.admin-page table .badge-pro {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    font-size: 12px;
}

/* Title */
.video-info {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Buttons UNDER thumbnail */
.button-container {
    padding: 0 10px 10px;
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
}

.btn-add {
    background: #2ecc71;
}

.btn-add:hover {
    background: #27ae60;
}

.btn-remove {
    background: #e74c3c;
}

.btn-remove:hover {
    background: #c0392b;
}

/* ================================= */
/* WATCH PAGE */
/* ================================= */
.watch-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #fff;
}

.watch-page .browse-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watch-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.player-section {
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    background: #000;
    margin: 8px 15px 8px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    min-height: 400px;
}

/* Hide unwanted video controls - keep only play, timeline, and volume */
/* WebKit browsers (Chrome, Safari, Edge) */
.video-wrapper video::-webkit-media-controls-mute-button,
.video-wrapper video::-webkit-media-controls-volume-slider,
.video-wrapper video::-webkit-media-controls-volume-slider-container,
.video-wrapper video::-webkit-media-controls-current-time-display,
.video-wrapper video::-webkit-media-controls-time-remaining-display,
.video-wrapper video::-webkit-media-controls-toggle-closed-captions-button,
.video-wrapper video::-webkit-media-controls-download-button,
.video-wrapper video::-webkit-media-controls-overflow-menu-button,
.video-wrapper video::-webkit-media-controls-overflow-menu-list,
.video-wrapper video::-webkit-media-controls-picture-in-picture-button,
.video-wrapper video::-webkit-media-controls-fullscreen-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Firefox */
.video-wrapper video::-moz-media-controls-mute-button,
.video-wrapper video::-moz-media-controls-volume-control,
.video-wrapper video::-moz-media-controls-time-display,
.video-wrapper video::-moz-media-controls-status-panel,
.video-wrapper video::-moz-media-controls-fullscreen-button {
    display: none !important;
}

/* Fullscreen title overlay - hidden by default, shown via JavaScript in fullscreen */
.fullscreen-title-overlay {
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-title-overlay h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Custom fullscreen button */
.custom-fullscreen-btn {
    position: absolute;
    bottom: 45px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

/* Show button on video wrapper hover */
.video-wrapper:hover .custom-fullscreen-btn {
    opacity: 1;
}

.custom-fullscreen-btn:hover {
    opacity: 0.8;
}

.custom-fullscreen-btn:active {
    opacity: 0.6;
}

.video-wrapper:fullscreen .custom-fullscreen-btn,
.video-wrapper:-webkit-full-screen .custom-fullscreen-btn,
.video-wrapper:-moz-full-screen .custom-fullscreen-btn,
.video-wrapper:-ms-fullscreen .custom-fullscreen-btn {
    z-index: 2000;
}

.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen,
.video-wrapper:-moz-full-screen,
.video-wrapper:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 999999;
}

.video-wrapper:fullscreen video,
.video-wrapper:-webkit-full-screen video,
.video-wrapper:-moz-full-screen video,
.video-wrapper:-ms-fullscreen video {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Logo Overlay - positioned at top-left for both normal and fullscreen view */
.logo-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 50;
    pointer-events: none;
}

.overlay-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    border-radius: 4px;
    transition: max-width 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
}

/* Custom Fullscreen Button */
.custom-fs-btn {
    position: absolute;
    bottom: 30px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 3px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease;
    padding: 0;
}

/* Show button on video wrapper hover */
.video-wrapper:hover .custom-fs-btn {
    opacity: 1;
    pointer-events: auto;
}

.custom-fs-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    pointer-events: auto;
}

.custom-fs-btn:active {
    background: rgba(0, 0, 0, 0.6);
}

/* Logo overlay positioning for fullscreen */
.logo-overlay.in-fullscreen {
    position: fixed;
    z-index: 9998;
    bottom: 30px;
    right: 30px;
}

.playlist-controls {
    background: #2a3f5f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 8px 15px 8px 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.mode-toggle-btn.active {
    background: rgba(238, 0, 95, 0.15);
    border-color: #ee005f;
    color: #ee005f;
}

.control-group .mode-toggle-btn {
    width: 50px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.control-group input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.playlist-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    margin-bottom: 10px;
    grid-column: 1 / -1;
}

.loop-info {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.video-queue {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-queue h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #ee005f;
    font-weight: 600;
    text-transform: uppercase;
}

#queueList {
    max-height: 150px;
    overflow-y: auto;
}

#queueList::-webkit-scrollbar {
    width: 6px;
}

#queueList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#queueList::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

#queueList::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.video-info-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 8px 15px 15px 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.video-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.video-type-badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.video-type-badge.badge-free {
    background-color: #10b981;
    color: #fff;
}

.video-type-badge.badge-edu {
    background-color: #3b82f6;
    color: #fff;
}

.video-type-badge.badge-pro {
    background-color: #ef4444;
    color: #fff;
}

.video-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.video-actions .btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-actions .btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #c20812 100%);
    color: #fff;
}

.video-actions .btn-primary:hover {
    background: linear-gradient(135deg, #f51415 0%, #d91014 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(229, 9, 20, 0.3);
}

.video-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.watch-playlist-controls {
    flex: 1;
    position: relative;
    display: flex;
}

.watch-playlist-controls .add-btn-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(42, 63, 95, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    transform: none;
}

.watch-playlist-controls .add-btn-text:hover {
    background: #35527a;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.watch-playlist-controls .add-btn-text.active {
    transform: none;
}

.add-btn-text-label {
    flex-grow: 1;
    text-align: left;
}

.add-btn-icon {
    color: #ee005f;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1;
}

.watch-playlist-controls .add-btn-text .add-btn-icon:first-child {
    margin-left: 0;
    margin-right: 6px;
    font-size: 16px;
}

.watch-playlist-controls .add-btn-text .add-btn-icon:last-child {
    margin-left: auto;
    margin-right: 0;
}

.watch-playlist-controls .add-btn-text.active .add-btn-icon {
    transform: rotate(-90deg);
}

.watch-playlist-controls .playlist-select {
    width: 100%;
    padding: 12px 15px;
    background: #2a3f5f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.watch-playlist-controls .playlist-select:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: #35527a;
}

.watch-playlist-controls .playlist-select:focus {
    outline: none;
    border-color: #ee005f;
    box-shadow: 0 0 0 3px rgba(238, 0, 95, 0.2);
}

.watch-playlist-controls .playlist-select option {
    background: #2a3f5f;
    color: #fff;
}

.video-metadata {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.metadata-item {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 0.95rem;
}

.metadata-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    min-width: 120px;
}

.metadata-value {
    color: #fff;
}

.video-description {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-description h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.video-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ======= RESPONSIVE ======== */
@media (max-width: 1200px) {
    .watch-container {
        margin: 30px auto;
    }

    .video-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .watch-page .browse-header {
        padding: 12px 20px;
    }

    .watch-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .video-wrapper video {
        min-height: 300px;
    }

    .video-info-section {
        padding: 20px;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-title-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-actions {
        flex-direction: column;
    }

    .video-actions .btn {
        width: 100%;
        text-align: center;
    }

    .metadata-item {
        flex-direction: column;
        gap: 5px;
    }

    .metadata-label {
        min-width: auto;
    }
}

/* ================================= */
/* ADMIN DASHBOARD (ISOLATED) */
/* ================================= */
.admin-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    min-height: 100vh;
}

.admin-page .container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.admin-page h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-page th,
.admin-page td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.admin-page th {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.admin-page img {
    height: 60px;
}

.admin-page form {
    display: inline;
}

/* Admin buttons */
.admin-page .btn {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-page .btn-delete {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: #fff;
}

.admin-page .btn-delete:hover {
    background: #dc2626;
    border: 1px solid #dc2626;
}

.admin-page .btn-toggle {
    background: #ee005f;
    border: 1px solid #ee005f;
    color: #fff;
}

.admin-page .btn-toggle:hover {
    background: #d60052;
    border: 1px solid #d60052;
}

.admin-page .btn-upload {
    background: #ee005f;
    border: 1px solid #ee005f;
    color: #fff;
}

.admin-page .btn-upload:hover {
    background: #ff3385;
    border: 1px solid #ff3385;
}

/* Upload form */
.admin-page .upload-form {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.admin-page input[type=text],
.admin-page input[type=file] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-page input[type=text]:focus,
.admin-page input[type=file]:focus {
    outline: none;
    border: 1px solid #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.admin-page select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-page select option {
    background: #000;
    color: #fff;
}

.admin-page select:focus {
    outline: none;
    border: 1px solid #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.admin-page input[name="upload"] {
    background: rgba(238, 0, 95, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid rgba(238, 0, 95, 0.5);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-page input[name="upload"]:hover {
    background: rgba(238, 0, 95, 0.4);
    border: 1px solid rgba(238, 0, 95, 0.7);
}

/* ================================= */
/* LANDING PAGE */
/* ================================= */
.landing-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
}

/* Landing Navbar */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 110px;
}

.navbar-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #667eea;
    text-decoration: none;
}

.nav-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 50px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 50px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 16px 40px;
    border: 2px solid #ee005f;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    border-color: #ee005f;
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* Hero Visual */
.hero-visual {
    width: 90%;
    max-width: 1400px;
    position: relative;
    aspect-ratio: 16 / 9;
}

.hero-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(245, 87, 108, 0.3) 0%, transparent 50%);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(245, 87, 108, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-card-pro {
    background: linear-gradient(135deg, rgba(238, 0, 95, 0.1) 0%, rgba(255, 51, 133, 0.05) 100%);
    border: 1px solid rgba(238, 0, 95, 0.3);
}

.feature-card-pro:hover {
    border-color: rgba(238, 0, 95, 0.6);
    box-shadow: 0 20px 40px rgba(238, 0, 95, 0.3);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 15px;
}

/* Categories Section */
.categories {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.categories h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.category-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.category-item:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}

.category-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.category-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: all 0.3s;
}

.category-item:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-item h4 {
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    margin: 0;
    text-decoration: none !important;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 50px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Landing Footer */
/* ================================= */
/* NETFLIX-STYLE BROWSE PAGE */
/* ================================= */
.browse-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.browse-page .container {
    flex: 1;
}

/* Browse Header */
.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo img {
    height: 110px;
    display: block;
}

.header-nav {
    display: flex;
    gap: 40px;
    flex: 1;
    margin-left: 50px;
}

.nav-link {
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-active {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.nav-link:hover,
.nav-active:hover {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.user-details {
    text-align: right;
}

.user-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.user-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 3px;
}

.user-details-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-details-link:hover .user-details {
    transform: scale(1.05);
}

.user-details-link:hover .user-name {
    color: #fff;
}

.user-tier-free {
    color: #10b981;
}

.user-tier-edu {
    color: #3b82f6;
}

.user-tier-pro {
    color: #ef4444;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Featured Section */
.featured-section {
    position: relative;
    height: 450px;
    margin-bottom: 40px;
    overflow: hidden;
}

.featured-content {
    position: relative;
    height: 100%;
}

.featured-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.featured-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 500px;
    z-index: 10;
}

.featured-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.featured-description {
    font-size: 16px;
    color: #b3b3b3;
    margin-bottom: 25px;
    line-height: 1.5;
}

.featured-buttons {
    display: flex;
    gap: 15px;
}

.btn-play {
    background: #fff;
    color: #000;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.05);
}

.btn-info {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Browse Container */
.browse-container {
    padding: 0 50px 80px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
    justify-content: flex-end;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.filter-active {
    color: #fff;
}

.filter-all.filter-active {
    background: #ee005f;
    border-color: #ee005f;
}

.filter-free.filter-active {
    background: #10b981;
    border-color: #10b981;
}

.filter-edu.filter-active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.filter-pro.filter-active {
    background: #ef4444;
    border-color: #ef4444;
}

/* Section Styling */
.video-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.video-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    color: white;
}

.video-type-free {
    background-color: #10b981;
}

.video-type-edu {
    background-color: #3b82f6;
}

.video-type-pro {
    background-color: #ef4444;
}

.video-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* Netflix-style Cards */
.netflix-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    overflow: visible;
    transition: all 0.3s ease-out;
}

.netflix-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 50;
}

.netflix-card:has(.add-btn.active) {
    z-index: 10000;
}

.netflix-card.locked {
    opacity: 0.7;
}


.playlist-card-dragwrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 8px;
}

.drag-handle-outside {
    position: relative;
    top: 28px;
    left: 0;
    margin-bottom: 0;
    margin-left: 8px;
    background: transparent;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: bold;
    cursor: grab;
    z-index: 20;
    user-select: none;
    box-shadow: none;
    opacity: 1;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle-outside:hover {
    background: rgba(255, 255, 255, 0.08);
}

.netflix-card-inner {
    width: 100%;
}

.card-img-container-large {
    aspect-ratio: 16/9;
    min-height: unset;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.card-img-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netflix-card.drag-over {
    border-color: #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.card-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #1a1a1a;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3;
}

.netflix-card:hover .card-overlay,
.playlist-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.playlist-view-flow .play-circle,
.favorite-draggable .play-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.netflix-card:hover .play-circle,
.playlist-card:hover .play-circle {
    opacity: 1;
    transform: scale(1.1);
}

.play-circle:hover {
    background: rgba(255, 255, 255, 0.75);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lock-icon {
    font-size: 40px;
}

.lock-overlay p {
    font-size: 14px;
    color: #fff;
    margin: 0;
}

.card-title-group {
    padding: 12px 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    position: relative;
}

.card-buttons-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 10px 8px 10px;
    justify-content: center;
}

.favorite-draggable .card-buttons-row {
    justify-content: center;
    position: relative;
    padding: 2px 10px 4px 10px;
}

.favorite-draggable .card-buttons-row .card-button-wrapper {
    display: flex;
    justify-content: center;
}

.favorite-draggable .card-buttons-row .favorite-btn {
    position: absolute;
    right: 10px;
}

.netflix-card:has(.drag-handle-outside) .card-buttons-row {
    padding: 2px 10px 4px 10px;
}

.netflix-card:has(.drag-handle-outside):not(.favorite-draggable) .playlist-dropdown {
    margin-top: 22px;
}

.favorite-draggable .playlist-dropdown {
    margin-top: 18px;
}

.card-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 12px 10px 4px 10px;
    min-height: 64px;
}

.favorite-draggable .card-title {
    min-height: 64px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.add-btn {
    flex-shrink: 0;
    flex-grow: 0;
    background: transparent;
    border: none;
    color: #ee005f;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s cubic-bezier(.4, 2, .6, 1);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.add-btn.active {
    transform: rotate(90deg);
}

.playlist-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: #1d2b42;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 210px;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.playlist-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playlist-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
    font-family: inherit;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.playlist-item.selected {
    background: rgba(238, 0, 95, 0.2);
    border-color: rgba(238, 0, 95, 0.6);
    color: #fff;
}

.card-playlist-controls {
    padding: 0 8px 10px;
}

.playlist-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.playlist-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.16);
    border-color: #ee005f;
}

.playlist-select option {
    background: #141414;
    color: #fff;
}

/* ================================= */
/* RESPONSIVE FOR BROWSE */
/* ================================= */
@media (max-width: 1200px) {
    .browse-container {
        padding: 0 30px 80px;
    }

    .featured-info {
        left: 30px;
        bottom: 30px;
        max-width: 400px;
    }

    .featured-title {
        font-size: 36px;
    }

    .featured-description {
        font-size: 14px;
    }

    .video-row {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .browse-header {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-nav {
        margin-left: 20px;
        gap: 20px;
        font-size: 14px;
    }

    .header-right {
        gap: 10px;
    }

    .user-info {
        padding-right: 10px;
        border-right-width: 1px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-tier {
        font-size: 10px;
        padding: 1px 6px;
        border-radius: 3px;
    }

    .logout-btn {
        padding: 6px 15px;
        font-size: 12px;
    }

    .featured-section {
        height: 250px;
        margin-bottom: 30px;
    }

    .featured-info {
        left: 20px;
        bottom: 20px;
        max-width: 300px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .featured-buttons {
        gap: 10px;
    }

    .btn-play,
    .btn-info {
        padding: 8px 16px;
        font-size: 13px;
    }

    .browse-container {
        padding: 0 20px 40px;
    }

    .section-title {
        font-size: 18px;
    }

    .video-type-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }

    .video-row {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
    }

    .netflix-card:hover {
        transform: scale(1.02);
    }
}

/* ================================= */
/* RESPONSIVE */
/* ================================= */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 60px 30px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-visual {
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .navbar-left {
        gap: 10px;
    }

    .navbar-logo {
        height: 90px;
    }

    .navbar-title {
        font-size: 18px;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .nav-cta {
        padding: 8px 20px;
        font-size: 14px;
    }

    .hero {
        padding: 40px 20px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-cta {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .features,
    .categories,
    .final-cta {
        padding: 60px 20px;
    }

    .features h2,
    .categories h2,
    .final-cta h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .video-grid {
        padding: 20px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .watch-page {
        padding: 0 20px;
    }

    .user-page header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================= */
/* PLAYLIST MANAGEMENT */
/* ================================= */
.playlists-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 50px 0;
}

.playlists-header h1 {
    font-size: 32px;
    margin: 0;
}

.btn-create-playlist {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-create-playlist:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 50px;
    margin-bottom: 40px;
}

.playlist-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.playlist-card-create {
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.playlist-card-create .playlist-create-text {
    text-decoration: none;
}

.playlist-card-create:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.playlist-create-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-create-text {
    text-align: center;
    color: #fff;
}

.playlist-create-title {
    font-size: 16px;
    font-weight: 700;
}

.playlist-create-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.playlist-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.playlist-cover {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    overflow: hidden;
}

.playlist-cover .cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.8;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.playlist-card:hover .cover-overlay {
    opacity: 1;
}

.cover-link {
    background: #2ecc71;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.cover-link:hover {
    background: #27ae60;
}

.playlist-thumbnails-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2px;
    background: #0a0a0a;
    padding: 0;
}

.thumbnail-cell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.netflix-card:hover .card-overlay,
.playlist-card:hover .card-overlay {
    opacity: 1;
}

.playlist-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.playlist-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-desc {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-meta {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #bbb;
}

.playlist-actions {
    padding: 12px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-small.btn-primary {
    background: #ee005f;
    color: #fff;
}

.btn-small.btn-primary:hover {
    background: #d60052;
    transform: translateY(-2px);
}

.btn-small.btn-edit {
    background: rgba(42, 63, 95, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 125px;
}

.btn-small.btn-edit:hover {
    background: #35527a;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-small.btn-secondary {
    background: #6366f1;
    color: #fff;
}

.btn-small.btn-secondary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-small.btn-delete {
    background: #ef4444;
    color: #fff;
}

.btn-small.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #ef4444;
    color: #fff;
    padding: 10px 16px;
    border: 1px solid #ef4444;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.playlist-actions form {
    margin-left: auto;
    width: auto;
}

.playlist-actions button {
    width: auto;
}

.playlist-actions .btn-delete {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.playlist-actions .btn-delete:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
}

.playlist-actions .btn-delete .bin-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Form Styling */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
}

.form-container h1 {
    margin-bottom: 30px;
    font-size: 28px;
}

.edit-form-container {
    max-width: 600px;
    margin: 30px 0 40px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.edit-form-container h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.playlist-view-flow {
    display: block;
    padding: 12px 16px 30px;
}

.playlist-view-flow::after {
    content: "";
    display: table;
    clear: both;
}

.playlist-view-flow .edit-form-container {
    /* Width = 3 cards (130px) + 2 gaps (8px) + margin = ~420px */
    float: left;
    width: 406px;
    max-width: 406px;
    margin: 0 12px 12px 0;
    padding: 30px;
    box-sizing: border-box;
    /* Height = 2 cards (221px each) + 1 gap (12px) */
    height: 454px;
}

.playlist-view-flow .netflix-card {
    float: left;
    width: 130px;
    margin: 0 8px 12px 0;
}

.playlist-view-flow .playlist-card-dragwrap {
    margin-bottom: 0;
}

.playlist-empty-state {
    grid-column: 2 / -1;
    min-height: 200px;
    margin: 0;
}

@media (max-width: 600px) {
    .playlist-view-flow {
        display: block;
        padding: 16px 20px 30px;
    }

    .playlist-view-flow .edit-form-container {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .playlist-view-flow .netflix-card {
        width: 130px;
    }

    .playlist-empty-state {
        float: none;
        width: 100%;
    }
}

.playlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.form-actions button,
.form-actions a {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state p {
    font-size: 18px;
    color: #b3b3b3;
    margin-bottom: 30px;
}

/* PLAYLIST VIEW PAGE */
.playlist-header-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.playlist-header-content {
    max-width: 100%;
}

.back-btn {
    color: #ee005f;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 0;
    transition: color 0.2s;
    text-decoration: none;
}

.back-btn:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.playlist-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.playlist-view-header .playlist-desc {
    color: #b3b3b3;
    font-size: 15px;
    margin: 10px 0 20px 0;
}

.playlist-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.video-count {
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
}

.btn-remove-playlist {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-remove-playlist:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .playlist-header-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .playlist-title {
        font-size: 24px;
    }

    .playlist-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.form-container {
    margin: 20px;
    padding: 20px;
}

.playlist-view-header {
    flex-direction: column;
    margin-bottom: 30px;
}

.header-actions {
    margin-top: 15px;
    width: auto;
}

.header-actions .btn-secondary {
    padding: 8px 20px;
}

.playlist-remove-btn {
    padding: 8px 0;
}

.playlist-remove-btn .btn-small {
    width: 100%;
}

/* ================================= */
/* SUBSCRIPTION PLANS PAGE */
/* ================================= */
.subscription-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #fff;
}

.subscription-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.subscription-hero {
    text-align: center;
    margin-bottom: 50px;
}

.subscription-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subscription-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.current-tier-banner {
    background: rgba(238, 0, 95, 0.1);
    border: 1px solid rgba(238, 0, 95, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 40px;
    text-align: center;
    color: #ee005f;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover:not(.purchased) {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.purchased {
    border-color: #ee005f;
    background: rgba(238, 0, 95, 0.1);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-card.basic .card-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pricing-card.pro .card-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.pricing-card.edu .card-badge {
    background: #3b82f6;
}

.pricing-card h2 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.pricing-card .price span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-card .features {
    list-style: none;
    margin: 25px 0;
    flex-grow: 1;
}

.pricing-card .features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card .features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    color: #fff;
}

.pricing-card .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(238, 0, 95, 0.3);
}

.pricing-card .btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* FAQ Section */
.subscription-faq {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.subscription-faq h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: #fff;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================= */
/* ACCESS DENIED PAGE */
/* ================================= */
.access-denied-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #fff;
}

.access-denied-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.denied-content {
    text-align: center;
}

.denied-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.denied-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.denied-message {
    font-size: 1.1rem;
    color: #fca5a5;
    margin-bottom: 40px;
    background: rgba(239, 68, 68, 0.15);
    padding: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
}

.tier-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.tier-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tier-info ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.tier-info li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.upgrade-section {
    margin-bottom: 40px;
}

.upgrade-cta {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ee005f 0%, #ff3385 100%);
    color: #fff;
    display: inline-block;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(238, 0, 95, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-block;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-section {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
}

.contact-section a {
    color: #ee005f;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #ff3385;
}

/* ================================= */
/* RESPONSIVE - SUBSCRIPTION */
/* ================================= */
@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subscription-hero h1 {
        font-size: 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    .subscription-faq {
        padding: 20px;
    }

    .subscription-faq h3 {
        font-size: 1.5rem;
    }

    .faq-items {
        gap: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .denied-content h1 {
        font-size: 2rem;
    }

    .access-denied-container {
        margin: 40px auto;
    }
}

.playlist-card-create:hover {
    text-decoration: none;
}

/* ================================= */
/* FOOTER */
/* ================================= */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 50px 30px 30px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: stretch;
    justify-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    min-width: 0;
    gap: 12px;
}

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 210px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #ee005f;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px 20px;
        margin-top: auto;
    }

    .footer-content {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================= */
/* CONTACT & FAQ PAGES */
/* ================================= */
.contact-container,
.faq-container {
    flex: 1;
}

/* ================================= */
/* UTILITY CLASSES */
/* ================================= */

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

/* Gap utilities */
.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 10px;
}

.gap-4 {
    gap: 12px;
}

.gap-5 {
    gap: 15px;
}

.gap-6 {
    gap: 20px;
}

/* Width & Height utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.w-auto {
    width: auto;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.absolute-tl {
    position: absolute;
    top: 0;
    left: 0;
}

.absolute-tr {
    position: absolute;
    top: 0;
    right: 0;
}

.absolute-bl {
    position: absolute;
    bottom: 0;
    left: 0;
}

.absolute-br {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Display utilities */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Alignment utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Margin utilities */
.mt-0 {
    margin-top: 0;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 10px;
}

.mb-4 {
    margin-bottom: 12px;
}

.mb-5 {
    margin-bottom: 15px;
}

/* Padding utilities */
.p-0 {
    padding: 0;
}

/* Object fit utilities */
.object-cover {
    object-fit: cover;
}

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Border radius utilities */
.rounded-none {
    border-radius: 0;
}

.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 6px;
}

.rounded-full {
    border-radius: 50%;
}

/* Vertical align */
.align-middle {
    vertical-align: middle;
}

/* Cursor utilities */
.cursor-pointer {
    cursor: pointer;
}

.cursor-block {
    cursor: block;
}

.cursor-grab {
    cursor: grab;
}

/* Sizing specific */
.icon-small {
    width: 18px;
    height: 18px;
}

.icon-medium {
    width: 22px;
    height: 22px;
}

.icon-lg {
    width: 27px;
    height: 27px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

.icon-xxl {
    width: 40px;
    height: 40px;
}

/* Specific combinations */
.flex-inline-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.flex-inline-gap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Video description box */
.video-description-box {
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(24, 28, 44, 0.92);
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.10), 0 1.5px 4px 0 rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    margin-top: 28px;
    margin-bottom: 0;
}

.video-description-box p {
    margin: 0;
    color: #d0d6f4;
    line-height: 1.7;
    font-size: 15px;
}

/* Verify email code input styles */
.code-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: bold;
}

.code-digit:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Auth links group */
.auth-links-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* ===== COMPREHENSIVE UTILITY CLASSES ===== */

/* TEXT / TYPOGRAPHY UTILITIES */
.text-white {
    color: #fff;
}

.text-gray-50 {
    color: #f9fafb;
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-green-500 {
    color: #10b981;
}

.text-emerald-500 {
    color: #51cf66;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-pink-500 {
    color: #ee005f;
}

.text-cyan-500 {
    color: #cbd5f5;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.6;
}

.leading-loose {
    line-height: 1.75;
}

.text-right {
    text-align: right;
}

.lowercase {
    text-transform: lowercase;
}

.uppercase {
    text-transform: uppercase;
}

.capitalize {
    text-transform: capitalize;
}

.underline {
    text-decoration: underline;
}

.no-underline {
    text-decoration: none;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.tracking-normal {
    letter-spacing: 0;
}

.tracking-wide {
    letter-spacing: 0.02em;
}

.tracking-wider {
    letter-spacing: 1px;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.break-words {
    word-break: break-word;
}

/* DISPLAY & LAYOUT UTILITIES */
.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-1 {
    flex: 1;
}

.flex-auto {
    flex: auto;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.items-baseline {
    align-items: baseline;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 10px;
}

.gap-4 {
    gap: 12px;
}

.gap-5 {
    gap: 15px;
}

.gap-6 {
    gap: 20px;
}

.gap-8 {
    gap: 24px;
}

.gap-10 {
    gap: 30px;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* SPACING UTILITIES - MARGIN */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 4px;
}

.m-2 {
    margin: 8px;
}

.m-3 {
    margin: 12px;
}

.m-4 {
    margin: 16px;
}

.m-5 {
    margin: 20px;
}

.m-6 {
    margin: 24px;
}

.m-8 {
    margin: 32px;
}

.m-auto {
    margin: auto;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-5 {
    margin-top: 20px;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.mt-10 {
    margin-top: 40px;
}

.mt-15 {
    margin-top: 60px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 20px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-15 {
    margin-bottom: 60px;
}

.mr-0 {
    margin-right: 0;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-4 {
    margin-right: 16px;
}

.mr-6 {
    margin-right: 24px;
}

.ml-0 {
    margin-left: 0;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.ml-4 {
    margin-left: 16px;
}

.ml-auto {
    margin-left: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* SPACING UTILITIES - PADDING */
.p-0 {
    padding: 0;
}

.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

.p-6 {
    padding: 24px;
}

.p-8 {
    padding: 32px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-6 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.pt-1 {
    padding-top: 4px;
}

.pt-2 {
    padding-top: 8px;
}

.pt-4 {
    padding-top: 16px;
}

/* SIZING UTILITIES */
.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

.w-screen {
    width: 100vw;
}

.w-min {
    width: fit-content;
}

.h-auto {
    height: auto;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.h-min {
    height: fit-content;
}

.min-h-full {
    min-height: 100%;
}

.min-h-250 {
    min-height: 250px;
}

.max-w-full {
    max-width: 100%;
}

.max-h-200 {
    max-height: 200px;
}

/* BORDER & RADIUS UTILITIES */
.rounded-none {
    border-radius: 0;
}

.rounded-sm {
    border-radius: 2px;
}

.rounded {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-full {
    border-radius: 50%;
}

.border {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-none {
    border: none;
}

.border-blue {
    border: 2px dashed #3b82f6;
}

/* BACKGROUND & COLORS */
.bg-transparent {
    background: transparent;
}

.bg-black {
    background: #000;
}

.bg-dark-800 {
    background: #181c2c;
}

.bg-dark-light {
    background: rgba(255, 255, 255, 0.05);
}

.bg-blue-light {
    background: rgba(59, 130, 246, 0.1);
}

.bg-gray-overlay {
    background: rgba(0, 0, 0, 0.18);
}

.bg-gray-overlay-dark {
    background: rgba(0, 0, 0, 0.3);
}

/* SHADOW & VISUAL EFFECTS */
.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.shadow-md {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1), 0 1.5px 4px rgba(0, 0, 0, 0.08);
}

.shadow-none {
    box-shadow: none;
}

.box-shadow-video {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-fill {
    object-fit: fill;
}

/* POSITION & PLACEMENT */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.static {
    position: static;
}

.absolute-tl {
    position: absolute;
    top: 0;
    left: 0;
}

.absolute-tr {
    position: absolute;
    top: 0;
    right: 0;
}

.absolute-bl {
    position: absolute;
    bottom: 0;
    left: 0;
}

.absolute-br {
    position: absolute;
    bottom: 0;
    right: 0;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.left-auto {
    left: auto;
}

.right-auto {
    right: auto;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Z-INDEX */
.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.z-10 {
    z-index: 10;
}

/* CURSOR & INTERACTION */
.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.cursor-grabbing {
    cursor: grabbing;
}

/* OPACITY */
.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* TRANSITIONS & ANIMATIONS */
.transition {
    transition: all 0.2s ease;
}

.transition-fast {
    transition: all 0.1s ease;
}

.transition-slow {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: background 0.2s;
}

/* VERTICAL ALIGNMENT */
.align-middle {
    vertical-align: middle;
}

.align-baseline {
    vertical-align: baseline;
}

/* SPECIFIC COMPONENT UTILITIES */

/* FAQ/Q&A Styles (removed - conflicts with subscription-faq 3-column layout) */

/* Empty State Messages */
.empty-state-text {
    color: #999;
    font-size: 13px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-item-img {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 13px;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item-index {
    color: #999;
}

/* Modal/Overlay Backgrounds */
.modal-bg {
    background: rgba(0, 0, 0, 0.5);
}

/* DISPLAY NONE VARIANT */
.display-none {
    display: none;
}

.display-inline {
    display: inline;
}

.display-block {
    display: block;
}

.display-flex {
    display: flex;
}

.display-grid {
    display: grid;
}

/* BUTTON COLOR UTILITIES */
.bg-pink-600 {
    background: #ee005f;
}

.bg-pink-hover:hover {
    background: #d60050;
}

/* LIST ITEM CHECKS & CROSSES */
.check-green {
    color: #22c55e;
}

.cross-red {
    color: #ef4444;
}

/* Link utilities */
.link-blue {
    color: #3b82f6;
    text-decoration: none;
}

.link-blue:hover {
    color: #60a5fa;
}