/* ============================================
   Liquid Glass Design Tokens (Ref: Teal/Mint Mockup)
   ============================================ */

:root {
    --bg-base: #060e11;
    --bg-surface: #081417;
    --bg-sidebar: #071215;
    --bg-card: rgba(14, 28, 32, 0.6);
    --bg-card-hover: rgba(18, 36, 41, 0.75);
    --bg-input: rgba(7, 16, 20, 0.6);
    --bg-input-focus: rgba(10, 22, 27, 0.8);

    --border-subtle: rgba(54, 179, 156, 0.1);
    --border-card: rgba(54, 179, 156, 0.18);
    --border-focus: rgba(54, 179, 156, 0.5);

    --text-primary: #e6f1f0;
    --text-secondary: #7f9b98;
    --text-muted: #4b6663;

    --accent-mint: #36b39c;
    --accent-mint-hover: #42c7af;
    --accent-mint-glow: rgba(54, 179, 156, 0.25);
    --accent-dark: #050d0f;

    --success: #36b39c;
    --error: #fb7185;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 50px rgba(54, 179, 156, 0.08);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms;
    --t-normal: 250ms;
}

/* ============================================
   Reset & Core Layout
   ============================================ */

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-mint);
    text-decoration: none;
}

/* ============================================
   Background Orbs (Liquid Glow)
   ============================================ */

.glass-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glass-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(54, 179, 156, 0.14) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.glass-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 70, 75, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

/* ============================================
   Dashboard Layout (Sidebar + Main)
   ============================================ */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 20;
    flex-shrink: 0;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 28px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
    font-size: 2.2rem;
    color: var(--accent-mint);
    filter: drop-shadow(0 0 10px var(--accent-mint-glow));
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--t-fast) var(--ease);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    background: rgba(54, 179, 156, 0.12);
    color: var(--accent-mint);
    border-color: rgba(54, 179, 156, 0.25);
    font-weight: 600;
}

.sidebar__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(54, 179, 156, 0.15);
    color: var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--border-card);
}

.logout-btn {
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
}

.logout-btn:hover {
    color: var(--error);
    background: rgba(251, 113, 133, 0.1);
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    z-index: 1;
    padding: 24px 32px;
}

/* Top Main Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.main-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn--badge {
    background: rgba(54, 179, 156, 0.1);
    border: 1px solid rgba(54, 179, 156, 0.25);
    color: var(--accent-mint);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-card);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    background: rgba(7, 18, 22, 0.6);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    width: fit-content;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(54, 179, 156, 0.15);
    border-color: rgba(54, 179, 156, 0.3);
    color: var(--accent-mint);
}

/* ============================================
   Glass Cards & Sections
   ============================================ */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card-header {
    margin-bottom: 18px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 12px;
}

.flex-1 { flex: 1; }

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
    transition: color var(--t-fast);
}

.input-with-icon input:focus ~ .input-icon,
.input-with-icon:focus-within .input-icon {
    color: var(--accent-mint);
}

.input-with-icon input,
.form-group .input-with-icon input {
    width: 100%;
    padding: 13px 16px 13px 46px !important;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all var(--t-fast) var(--ease);
}

.input-with-icon input::placeholder {
    color: var(--text-muted);
}

.input-with-icon input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-mint-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    outline: none;
}

.btn--accent {
    background: var(--accent-mint);
    color: var(--accent-dark);
    font-weight: 700;
    box-shadow: 0 4px 20px var(--accent-mint-glow);
}

.btn--accent:hover {
    background: var(--accent-mint-hover);
    box-shadow: 0 6px 24px rgba(54, 179, 156, 0.4);
    transform: translateY(-1px);
}

.btn--accent:active {
    transform: translateY(0);
}

.btn--outline {
    background: rgba(14, 28, 32, 0.4);
    border: 1px solid rgba(54, 179, 156, 0.3);
    color: var(--text-primary);
}

.btn--outline:hover {
    background: rgba(54, 179, 156, 0.1);
    border-color: var(--accent-mint);
}

.btn--full { width: 100%; }

.btn--loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn--loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--accent-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Video Preview Section */
.video-preview-layout {
    display: flex;
    gap: 24px;
}

.preview-thumb {
    position: relative;
    width: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-card);
}

.preview-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.thumb-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(5, 13, 15, 0.85);
    color: var(--accent-mint);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-card);
}

.preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-details h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.preview-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-tag i { color: var(--accent-mint); }

.controls-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.select-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.select-arrow {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.select-box select {
    width: 100%;
    appearance: none;
    padding: 12px 38px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all var(--t-fast);
}

.select-box select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-mint-glow);
}

/* Progress Card */
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.progress-status { color: var(--text-secondary); font-weight: 500; }
.progress-percent { color: var(--accent-mint); font-weight: 700; }

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1b6355, var(--accent-mint));
    border-radius: var(--radius-full);
    transition: width var(--t-normal) var(--ease);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Library Grid
   ============================================ */

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title-bar h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.section-title-bar h2 i { color: var(--accent-mint); }

.count-pill {
    background: rgba(54, 179, 156, 0.15);
    color: var(--accent-mint);
    border: 1px solid var(--border-card);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

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

/* Video Card */
.video-card {
    padding: 0;
    transition: all var(--t-normal) var(--ease);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(54, 179, 156, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(54, 179, 156, 0.12);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050d0f;
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(5, 13, 15, 0.85);
    color: var(--accent-mint);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card__channel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.video-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: auto;
}

.video-card__actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--t-fast);
    border: 1px solid transparent;
}

.action-btn--download {
    flex: 1;
    background: rgba(54, 179, 156, 0.12);
    color: var(--accent-mint);
    border-color: rgba(54, 179, 156, 0.25);
    justify-content: center;
}

.action-btn--download:hover {
    background: var(--accent-mint);
    color: var(--accent-dark);
}

.action-btn--danger {
    background: rgba(251, 113, 133, 0.08);
    color: var(--error);
    border-color: rgba(251, 113, 133, 0.2);
}

.action-btn--danger:hover {
    background: rgba(251, 113, 133, 0.2);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.empty-state span {
    font-size: 0.85rem;
}

/* ============================================
   Auth Page Layout (Login / Register)
   ============================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-base);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(54, 179, 156, 0.12);
    border: 1px solid var(--border-card);
    color: var(--accent-mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all var(--t-fast) var(--ease);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-mint-glow);
}

.form-hint {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.auth-footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 24px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 820px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .sidebar__brand {
        padding: 0;
        margin: 0;
        border: none;
    }

    .sidebar__nav {
        flex-direction: row;
        flex: none;
    }

    .sidebar__nav span { display: none; }

    .sidebar__footer {
        padding: 0;
        border: none;
        gap: 10px;
    }

    .main-wrapper {
        padding: 20px 16px;
    }

    .video-preview-layout {
        flex-direction: column;
    }

    .preview-thumb { width: 100%; }

    .search-box {
        flex-direction: column;
    }
}

/* ============================================
   Modal Overlay & Glass Card Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    max-width: 440px;
    width: 100%;
    position: relative;
    padding: 32px;
    text-align: center;
    margin-bottom: 0;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--t-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(54, 179, 156, 0.15);
    border: 1px solid var(--border-card);
    color: var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 18px;
    box-shadow: 0 0 30px var(--accent-mint-glow);
}

.modal-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn--sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

/* Play Action Button */
.action-btn--play {
    flex: 1;
    background: var(--accent-mint);
    color: var(--accent-dark);
    border-color: var(--accent-mint);
    justify-content: center;
    font-weight: 700;
}

.action-btn--play:hover {
    background: var(--accent-mint-hover);
    box-shadow: 0 4px 16px var(--accent-mint-glow);
}

/* Player Modal Card */
.player-modal-card {
    position: relative;
    z-index: 1001;
    max-width: 800px;
    width: 95%;
    padding: 24px;
    margin: 0;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.player-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.player-media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Audio Player Container */
.player-audio-container {
    width: 100%;
    padding: 10px 0 0;
}

.audio-card-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(7, 16, 20, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
}

.audio-cover-art {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
}

.audio-icon {
    font-size: 1.8rem;
    color: var(--accent-mint);
    flex-shrink: 0;
}

/* ============================================
   Playlist Design System
   ============================================ */

.justify-between {
    justify-content: space-between;
}

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

.playlist-card-icon {
    height: 120px;
    background: rgba(54, 179, 156, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.playlist-card-icon i {
    font-size: 3.5rem;
    color: var(--accent-mint);
    opacity: 0.8;
}

.playlist-card-icon .count-pill {
    position: absolute;
    top: 12px;
    right: 12px;
}

.action-btn--playlist {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.action-btn--playlist:hover {
    background: rgba(54, 179, 156, 0.15);
    color: var(--accent-mint);
    border-color: var(--border-card);
}

/* Playlist Select List (Modal) */
.playlist-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 10px;
}

.playlist-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(7, 16, 20, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-fast);
}

.playlist-select-item:hover {
    background: rgba(54, 179, 156, 0.15);
    border-color: var(--accent-mint);
}

.playlist-select-item i {
    font-size: 1.4rem;
    color: var(--accent-mint);
}

/* Playlist Detail Items List */
.playlist-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
}

.playlist-track-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(7, 16, 20, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
}

.playlist-track-row:hover {
    background: rgba(18, 36, 41, 0.75);
    border-color: var(--border-card);
}

.playlist-track-row.active-track {
    background: rgba(54, 179, 156, 0.18);
    border-color: var(--accent-mint);
}

.track-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.track-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.track-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.track-channel {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Info Banner Hero Card */
.hero-info-card {
    background: linear-gradient(135deg, rgba(14, 30, 36, 0.85) 0%, rgba(8, 22, 26, 0.95) 100%);
    border: 1px solid rgba(54, 179, 156, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(54, 179, 156, 0.12);
    margin-top: 0;
    margin-bottom: 24px;
    padding: 28px;
}

.info-banner-header {
    margin-bottom: 24px;
}

.info-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(54, 179, 156, 0.15);
    color: var(--accent-mint);
    border: 1px solid var(--border-card);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.hero-info-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.info-banner-intro {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
}

/* Features Grid */
.info-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.info-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(7, 16, 20, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--t-fast) var(--ease);
}

.info-feature-item:hover {
    background: rgba(18, 38, 44, 0.7);
    border-color: var(--border-card);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(54, 179, 156, 0.15);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--accent-mint);
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ============================================
   Floating Player & Picture-in-Picture Mode
   ============================================ */

.player-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity var(--t-normal) var(--ease);
}

.player-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--t-fast);
}

.player-ctrl-btn:hover {
    color: var(--accent-mint);
    background: rgba(54, 179, 156, 0.15);
    border-color: var(--border-card);
}

/* Minimizado a la esquina inferior derecha (Flotante) */
.player-wrapper.is-minimized {
    pointer-events: none;
}

.player-wrapper.is-minimized .modal-overlay-backdrop {
    opacity: 0;
    pointer-events: none;
}

.player-wrapper.is-minimized .player-modal-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    max-width: 90vw;
    margin: 0;
    padding: 18px;
    pointer-events: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(54, 179, 156, 0.25);
    border-color: rgba(54, 179, 156, 0.35);
    animation: floatUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-wrapper.is-minimized .audio-cover-art {
    width: 60px;
    height: 60px;
}

.player-wrapper.is-minimized video {
    max-height: 200px !important;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}






