:root {
    --sp-bg-black: #08090d;
    --sp-bg-surface: #121319;
    --sp-bg-card: #181a24;
    --sp-bg-card-hover: #222634;
    --sp-bg-glass: rgba(18, 19, 25, 0.88);
    
    --sp-green: #1db954;
    --sp-green-bright: #1ed760;
    --sp-purple: #8b5cf6;
    
    --sp-text-main: #ffffff;
    --sp-text-sub: #a1a1aa;
    --sp-text-mute: #71717a;
    
    --sp-border-subtle: rgba(255, 255, 255, 0.07);
    --sp-border-active: rgba(29, 185, 84, 0.4);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --sp-ease: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sp: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--sp-bg-black);
    color: var(--sp-text-main);
    font-family: var(--font-sp);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sp-app-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.mobile-topbar-brand {
    display: none;
}

.mobile-player-progress-bar {
    display: none;
}

.mobile-player-modal {
    display: none;
}

.row-artist-sub {
    display: none;
}

/* Ambient Backdrops */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.bg-glow-green {
    top: -100px;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--sp-green) 0%, transparent 70%);
}

.bg-glow-purple {
    top: 30%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--sp-purple) 0%, transparent 70%);
}

/* DESKTOP GRID */
.sp-grid-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: calc(100vh - 86px);
    width: 100%;
    padding: 8px 8px 0 8px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* SIDEBAR */
.sp-sidebar {
    background: var(--sp-bg-surface);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow: hidden;
    border: 1px solid var(--sp-border-subtle);
}

.sidebar-brand {
    padding: 0 8px 18px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--sp-green);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    font-family: var(--font-sp);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--sp-ease);
    text-align: left;
}

.side-link:hover {
    color: var(--sp-text-main);
    background: rgba(255, 255, 255, 0.04);
}

.side-link.active {
    color: var(--sp-text-main);
    background: rgba(29, 185, 84, 0.12);
}

.side-link.active svg {
    color: var(--sp-green);
}

.sidebar-separator {
    height: 1px;
    background: var(--sp-border-subtle);
    margin: 14px 6px;
}

/* Sidebar Liked Card */
.side-liked-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sp-border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--sp-ease);
    text-align: left;
}

.side-liked-card:hover, .side-liked-card.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(29, 185, 84, 0.3);
}

.liked-heart-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #450af5, #c4efd9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.liked-text-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.liked-main-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sp-text-main);
}

.liked-sub-text {
    font-size: 0.75rem;
    color: var(--sp-text-mute);
}

/* Curated Playlists list */
.sidebar-playlists-scroll {
    flex: 1;
    overflow-y: auto;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}

.side-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--sp-text-mute);
    letter-spacing: 1px;
    padding: 6px 10px;
}

.playlist-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pl-item {
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--sp-text-sub);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--sp-ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-item:hover {
    color: var(--sp-text-main);
    background: rgba(255, 255, 255, 0.04);
}

/* Sidebar Bottom info */
.sidebar-bottom-info {
    padding-top: 10px;
}

.live-stream-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sp-green);
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.25);
    padding: 6px 10px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-green);
    box-shadow: 0 0 8px var(--sp-green);
}

/* MAIN VIEWPORT */
.sp-main-view {
    background: var(--sp-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--sp-border-subtle);
}

/* TOPBAR */
.sp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(18, 19, 25, 0.8);
    backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--sp-border-subtle);
}

.topbar-nav {
    display: flex;
    gap: 8px;
}

.nav-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--sp-text-main);
    border: 1px solid var(--sp-border-subtle);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sp-ease);
}

.nav-circle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.topbar-search-bar {
    display: flex;
    align-items: center;
    background: #202330;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    width: 340px;
    transition: var(--sp-ease);
}

.topbar-search-bar:focus-within {
    border-color: #ffffff;
    background: #262a3a;
}

.topbar-search-bar svg {
    color: var(--sp-text-sub);
    margin-right: 10px;
    flex-shrink: 0;
}

.topbar-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--sp-text-main);
    font-family: var(--font-sp);
    font-size: 0.9rem;
    width: 100%;
}

.topbar-search-bar input::placeholder {
    color: var(--sp-text-mute);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    font-size: 0.85rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sp-border-subtle);
    padding: 5px 12px 5px 6px;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--sp-text-main);
    font-family: var(--font-sp);
    font-size: 0.82rem;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-install-pwa {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.35);
    color: var(--sp-green);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--sp-ease);
}

.btn-install-pwa:hover {
    background: var(--sp-green);
    color: black;
    transform: scale(1.04);
}

.btn-download-song {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--sp-ease);
}

.btn-download-song:hover {
    color: var(--sp-green);
    transform: scale(1.15);
}

.track-dl-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--sp-ease);
}

.track-dl-btn:hover {
    color: var(--sp-green);
}

.avatar-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* SCROLL CONTENT */
.sp-viewport-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* TAB 1: HOME */
.hero-jumbotron {
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(29, 185, 84, 0.18) 0%, rgba(18, 19, 25, 0) 100%);
    position: relative;
}

.jumbo-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--sp-green);
    background: rgba(29, 185, 84, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.jumbo-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 10px 0 6px;
}

.jumbo-content p {
    color: var(--sp-text-sub);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.jumbo-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-green);
    color: black;
    border: none;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--sp-ease);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.jumbo-play-btn:hover {
    background: var(--sp-green-bright);
    transform: scale(1.04);
}

/* Quick Picks Shelf */
.quick-picks-shelf {
    padding: 0 2rem 1.5rem;
}

.quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.q-pick-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--sp-ease);
    height: 60px;
    position: relative;
}

.q-pick-card:hover {
    background: rgba(255, 255, 255, 0.14);
}

.q-pick-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.q-pick-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.q-pick-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    opacity: 0;
    transform: scale(0.85);
    transition: var(--sp-ease);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.q-pick-card:hover .q-pick-play {
    opacity: 1;
    transform: scale(1);
}

/* MUSIC SHELVES */
.music-shelf {
    padding: 0 2rem 2.5rem;
}

.shelf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.shelf-head h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.shelf-more-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--sp-ease);
}

.shelf-more-btn:hover {
    text-decoration: underline;
    color: var(--sp-text-main);
}

.shelf-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* SPOTIFY STYLE CARD */
.music-card {
    background: var(--sp-bg-card);
    border: 1px solid var(--sp-border-subtle);
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--sp-ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.music-card:hover {
    background: var(--sp-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.music-card.playing-active {
    border-color: var(--sp-green);
    box-shadow: 0 0 18px rgba(29, 185, 84, 0.3);
}

.card-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    background: #202330;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.music-card:hover .card-img-box img {
    transform: scale(1.04);
}

.card-float-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(8px);
    transition: var(--sp-ease);
}

.music-card:hover .card-float-play {
    opacity: 1;
    transform: translateY(0);
}

.card-float-play:hover {
    background: var(--sp-green-bright);
    transform: scale(1.06);
}

.card-song-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--sp-text-main);
}

.card-song-artist {
    font-size: 0.8rem;
    color: var(--sp-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TAB 2: SEARCH VIEW */
.search-view-container {
    padding: 2rem 2rem 3rem;
}

.search-hero-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.big-search-box {
    display: flex;
    align-items: center;
    background: #222634;
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 18px;
    max-width: 620px;
    border: 1px solid var(--sp-border-subtle);
    transition: var(--sp-ease);
}

.big-search-box:focus-within {
    border-color: #ffffff;
    background: #2a2e40;
}

.big-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--sp-text-main);
    font-family: var(--font-sp);
    font-size: 0.95rem;
    padding-left: 10px;
}

.search-execute-btn {
    background: var(--sp-green);
    color: black;
    font-weight: 800;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--sp-ease);
}

.search-execute-btn:hover {
    background: var(--sp-green-bright);
}

/* Browse Categories Tiles */
.browse-categories {
    margin-top: 2.5rem;
}

.browse-categories h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.cat-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.cat-tile {
    background-color: var(--c-bg, #1e3264);
    height: 130px;
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--sp-ease);
}

.cat-tile:hover {
    transform: scale(1.03);
}

.cat-tile span {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.cat-icon {
    position: absolute;
    bottom: -6px;
    right: -4px;
    font-size: 3.2rem;
    transform: rotate(25deg);
}

/* Search results wrapper */
.search-results-wrapper {
    margin-top: 2rem;
}

.search-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Search Tracks List (Spotify List Style) */
.search-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.search-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: var(--sp-ease);
}

.search-track-item:hover, .search-track-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.search-track-item.playing-active {
    background: rgba(29, 185, 84, 0.12);
}

.search-track-item.playing-active .track-name {
    color: var(--sp-green);
}

.track-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.track-num {
    font-size: 0.85rem;
    color: var(--sp-text-mute);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.track-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #202330;
    flex-shrink: 0;
}

.track-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-play-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.search-track-item:hover .track-play-hover {
    opacity: 1;
}

.track-text-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.track-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sp-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.track-sub {
    font-size: 0.78rem;
    color: var(--sp-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.track-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-left: 8px;
}

.track-dur {
    font-size: 0.78rem;
    color: var(--sp-text-mute);
    font-family: monospace;
}

.track-like-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--sp-ease);
}

.track-like-btn:hover {
    color: white;
}

.track-like-btn.liked {
    color: var(--sp-green);
}

.search-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 4rem 1rem;
    color: var(--sp-text-sub);
}

.sp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--sp-green);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* TAB 3: LIKED SONGS VIEW */
.library-header-banner {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 3.5rem 2rem 2rem;
    background: linear-gradient(180deg, #450af5 0%, rgba(18, 19, 25, 0) 100%);
}

.library-art-box {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #450af5, #c4efd9);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.library-meta h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 6px 0;
    letter-spacing: -1px;
}

.lib-sub-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--sp-text-sub);
}

.library-meta p {
    color: var(--sp-text-sub);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.btn-play-all-liked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-green);
    color: black;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--sp-ease);
}

.btn-play-all-liked:hover {
    background: var(--sp-green-bright);
    transform: scale(1.04);
}

/* Library Table */
.library-table-container {
    padding: 1rem 2rem 3rem;
}

.sp-table-header {
    display: grid;
    grid-template-columns: 40px 3fr 2fr 90px 40px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--sp-border-subtle);
    color: var(--sp-text-mute);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-table-body {
    display: flex;
    flex-direction: column;
}

.table-song-row {
    display: grid;
    grid-template-columns: 40px 3fr 2fr 90px 40px;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--sp-ease);
    font-size: 0.9rem;
}

.table-song-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-song-row.active {
    color: var(--sp-green);
}

.row-index {
    color: var(--sp-text-mute);
}

.row-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.row-title-box img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.row-title-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-channel-text {
    color: var(--sp-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-time-text {
    color: var(--sp-text-mute);
    font-size: 0.82rem;
}

.btn-del-like {
    background: transparent;
    border: none;
    color: var(--sp-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-library {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--sp-text-sub);
}

.empty-library p {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

/* QUEUE DRAWER PANEL */
.queue-drawer-panel {
    position: fixed;
    top: 8px;
    right: -340px;
    width: 320px;
    height: calc(100vh - 102px);
    background: #181a24;
    border-radius: var(--radius-md);
    border: 1px solid var(--sp-border-subtle);
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 70;
}

.queue-drawer-panel.open {
    right: 8px;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    font-size: 1.1rem;
}

.drawer-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--sp-ease);
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.drawer-item.active {
    background: rgba(29, 185, 84, 0.15);
}

.drawer-item img {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.drawer-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-sub {
    font-size: 0.75rem;
    color: var(--sp-text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BOTTOM PLAYER BAR */
.sp-bottom-player {
    height: 86px;
    background-color: var(--sp-bg-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 50;
    border-top: 1px solid var(--sp-border-subtle);
}

/* Left: Track Meta */
.player-col-left {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 30%;
    min-width: 170px;
}

.player-cover-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #202330;
    flex-shrink: 0;
}

.player-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-song-meta {
    min-width: 0;
    flex: 1;
}

.song-title-text {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist-text {
    font-size: 0.75rem;
    color: var(--sp-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.btn-heart-like {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: var(--sp-ease);
}

.btn-heart-like:hover {
    color: var(--sp-text-main);
    transform: scale(1.15);
}

.btn-heart-like.liked {
    color: var(--sp-green);
}

.btn-heart-like.liked svg {
    fill: var(--sp-green);
}

/* Center: Controls */
.player-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 40%;
    max-width: 650px;
}

.center-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--sp-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sp-ease);
}

.ctrl-btn:hover {
    color: var(--sp-text-main);
}

.ctrl-btn.active {
    color: var(--sp-green);
}

.btn-round-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.btn-round-play:hover {
    transform: scale(1.08);
}

/* Progress scrubber */
.progress-scrub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.scrub-time {
    font-size: 0.72rem;
    color: var(--sp-text-mute);
    font-family: monospace;
    min-width: 32px;
}

.scrub-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.1s ease;
}

.scrub-track:hover {
    height: 6px;
}

.scrub-fill {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    position: relative;
}

.scrub-track:hover .scrub-fill {
    background: var(--sp-green);
}

.scrub-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.1s ease;
}

.scrub-track:hover .scrub-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Right: Tools */
.player-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 30%;
}

.stream-quality-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sp-green);
    background: rgba(29, 185, 84, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.green-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-green);
    box-shadow: 0 0 6px var(--sp-green);
}

.volume-slider-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-box input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* MOBILE BOTTOM NAVIGATION BAR */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(18, 19, 25, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--sp-border-subtle);
    z-index: 90;
    align-items: center;
    justify-content: space-around;
}

.mob-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--sp-text-mute);
    font-family: var(--font-sp);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    transition: var(--sp-ease);
}

.mob-tab-btn.active {
    color: var(--sp-green);
}

.mob-tab-btn.active svg {
    color: var(--sp-green);
}

/* Toast */
.sp-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sp-green);
    color: black;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* MOBILE RESPONSIVE ADAPTATIONS (Native Spotify Mobile App Experience) */
@media (max-width: 768px) {
    /* 1. App Container & Viewport */
    .sp-grid-container {
        display: block;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        margin: 0;
    }

    .sp-sidebar {
        display: none !important;
    }

    .sp-main-view {
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        background: var(--sp-bg-black);
    }

    /* 2. Mobile Topbar */
    .sp-topbar {
        padding: 10px 14px;
        background: rgba(8, 9, 13, 0.92);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .topbar-nav, .user-profile-badge {
        display: none !important;
    }

    .mobile-topbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-topbar-brand .brand-name {
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .mobile-topbar-brand .brand-name span {
        color: var(--sp-green);
    }

    .topbar-search-bar {
        display: none !important;
    }

    /* 3. Scrollable Viewport with Bottom Padding */
    .sp-viewport-scroll {
        padding-bottom: 155px; /* Ensures last item is completely visible above floating mini-player & bottom nav */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* 4. Home View on Mobile */
    .hero-jumbotron {
        padding: 1.25rem 1rem 0.75rem;
        background: linear-gradient(180deg, rgba(29, 185, 84, 0.22) 0%, rgba(8, 9, 13, 0) 100%);
    }

    .jumbo-tag {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .jumbo-content h1 {
        font-size: 1.65rem;
        margin: 8px 0 4px;
    }

    .jumbo-content p {
        font-size: 0.82rem;
        line-height: 1.35;
        margin-bottom: 0.9rem;
    }

    .jumbo-play-btn {
        padding: 9px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .jumbo-play-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Quick Picks (2-Column Grid like Spotify Mobile) */
    .quick-picks-shelf {
        padding: 0 1rem 1.25rem;
    }

    .quick-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .q-pick-card {
        height: 50px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
    }

    .q-pick-card:active {
        background: rgba(255, 255, 255, 0.16);
        transform: scale(0.98);
    }

    .q-pick-card img {
        width: 50px;
        height: 50px;
    }

    .q-pick-card-title {
        font-size: 0.76rem;
        font-weight: 700;
        padding: 0 8px;
        line-height: 1.2;
    }

    .q-pick-play {
        display: none !important;
    }

    /* 5. Music Shelves (Horizontal Touch Carousel like Spotify Mobile) */
    .music-shelf {
        padding: 0 1rem 1.75rem;
    }

    .shelf-head {
        margin-bottom: 0.85rem;
    }

    .shelf-head h2 {
        font-size: 1.18rem;
    }

    .shelf-more-btn {
        font-size: 0.78rem;
    }

    .shelf-cards-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shelf-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .music-card {
        flex: 0 0 138px;
        width: 138px;
        padding: 9px;
        border-radius: 8px;
        scroll-snap-align: start;
        background: #141620;
    }

    .music-card:active {
        transform: scale(0.97);
    }

    .card-img-box {
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .card-float-play {
        display: none !important;
    }

    .card-song-title {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .card-song-artist {
        font-size: 0.7rem;
    }

    /* 6. Search View on Mobile */
    .search-view-container {
        padding: 1rem 1rem 2rem;
    }

    .search-hero-box h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .big-search-box {
        padding: 4px 6px 4px 14px;
        max-width: 100%;
    }

    .big-search-box svg {
        width: 18px;
        height: 18px;
    }

    .big-search-box input {
        font-size: 0.85rem;
        padding-left: 6px;
    }

    .search-execute-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .browse-categories {
        margin-top: 1.5rem;
    }

    .browse-categories h3 {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }

    .cat-tiles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-tile {
        height: 92px;
        border-radius: 8px;
        padding: 10px;
    }

    .cat-tile span {
        font-size: 0.95rem;
    }

    .cat-icon {
        font-size: 2.3rem;
        bottom: -4px;
        right: -2px;
    }

    /* Results on search view: clean Spotify vertical list on mobile */
    .search-tracks-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .search-track-item {
        padding: 8px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    .track-num {
        display: none !important;
    }

    .track-thumb-box {
        width: 46px;
        height: 46px;
        border-radius: 6px;
    }

    .track-play-hover {
        display: none !important;
    }

    .track-name {
        font-size: 0.88rem;
    }

    .track-sub {
        font-size: 0.74rem;
        margin-top: 2px;
    }

    .track-dur {
        font-size: 0.72rem;
    }

    .track-like-btn {
        padding: 4px;
    }

    /* 7. Liked Songs Library on Mobile */
    .library-header-banner {
        padding: 1.5rem 1rem 1rem;
        gap: 14px;
        align-items: center;
        background: linear-gradient(180deg, rgba(69, 10, 245, 0.45) 0%, rgba(8, 9, 13, 0) 100%);
    }

    .library-art-box {
        width: 72px;
        height: 72px;
        border-radius: 8px;
    }

    .library-art-box svg {
        width: 36px;
        height: 36px;
    }

    .library-meta h1 {
        font-size: 1.65rem;
        margin: 2px 0 4px;
    }

    .library-meta p {
        font-size: 0.78rem;
        margin-bottom: 0.75rem;
    }

    .btn-play-all-liked {
        padding: 8px 20px;
        font-size: 0.82rem;
    }

    .library-table-container {
        padding: 0.5rem 1rem 2rem;
    }

    .sp-table-header {
        display: none !important;
    }

    .table-song-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    .table-song-row:active {
        background: rgba(255, 255, 255, 0.08);
    }

    .row-index {
        display: none !important;
    }

    .row-title-box {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }

    .row-title-box img {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }

    .row-meta-col {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .row-title-text {
        font-size: 0.86rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .row-artist-sub {
        display: block !important;
        font-size: 0.72rem;
        color: var(--sp-text-sub);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .row-channel-text {
        display: none !important;
    }

    .row-time-text {
        font-size: 0.74rem;
        color: var(--sp-text-mute);
    }

    .btn-del-like {
        padding: 6px;
    }

    /* 8. Floating Spotify Mini Player on Mobile */
    .sp-bottom-player {
        position: fixed;
        bottom: 60px;
        left: 8px;
        right: 8px;
        height: 56px;
        padding: 0 10px;
        background: rgba(24, 26, 36, 0.96);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 85;
    }

    .mobile-player-progress-bar {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2.5px;
        background: rgba(255, 255, 255, 0.12);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        overflow: hidden;
    }

    .mob-prog-fill {
        height: 100%;
        width: 0%;
        background: var(--sp-green);
        transition: width 0.2s linear;
    }

    .player-col-left {
        width: auto;
        flex: 1;
        min-width: 0;
        gap: 10px;
        cursor: pointer;
    }

    .player-cover-box {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .song-title-text {
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .song-artist-text {
        font-size: 0.7rem;
        margin-top: 1px;
    }

    .btn-heart-like {
        padding: 4px;
        flex-shrink: 0;
    }

    .player-col-center {
        width: auto;
        flex-shrink: 0;
        gap: 0;
    }

    .center-buttons {
        gap: 8px;
    }

    .btn-round-play {
        width: 34px;
        height: 34px;
    }

    .btn-round-play svg {
        width: 16px;
        height: 16px;
    }

    #btnNext {
        display: flex !important;
        padding: 4px;
    }

    #btnNext svg {
        width: 18px;
        height: 18px;
    }

    .player-col-right, .progress-scrub-row, #btnShuffle, #btnLoop, #btnPrev {
        display: none !important;
    }

    /* 9. Mobile Bottom Navigation Bar (Spotify Native Style) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 54px;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 90;
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mob-tab-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: var(--sp-text-mute);
        font-size: 0.68rem;
        font-weight: 700;
        padding: 4px 0;
    }

    .mob-tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .mob-tab-btn.active {
        color: white;
    }

    .mob-tab-btn.active svg {
        color: white;
    }

    /* 10. Mobile Fullscreen Now Playing Modal (Slide-up Spotify Screen) */
    .mobile-player-modal {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #1c1f2e 0%, #090a0f 100%);
        z-index: 200;
        flex-direction: column;
        justify-content: space-between;
        padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
        transform: translateY(0);
        transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
        overflow-y: auto;
    }

    .mobile-player-modal.hidden {
        transform: translateY(100%) !important;
        pointer-events: none;
    }

    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 44px;
        flex-shrink: 0;
    }

    .modal-down-btn, .modal-queue-btn {
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
    }

    .modal-header-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-sub {
        font-size: 0.68rem;
        letter-spacing: 1.2px;
        color: var(--sp-text-mute);
        font-weight: 800;
    }

    .modal-head-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: white;
    }

    .modal-art-container {
        width: 78vw;
        max-width: 310px;
        aspect-ratio: 1;
        margin: 10px auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
        background: #181a24;
    }

    .modal-art-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .modal-track-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .modal-track-text {
        min-width: 0;
        flex: 1;
        padding-right: 12px;
    }

    .modal-track-text h2 {
        font-size: 1.35rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

    .modal-track-text p {
        font-size: 0.92rem;
        color: var(--sp-text-sub);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-scrub-section {
        margin-bottom: 14px;
        flex-shrink: 0;
    }

    .modal-time-row {
        display: flex;
        justify-content: space-between;
        margin-top: 6px;
        font-size: 0.72rem;
        color: var(--sp-text-mute);
        font-family: monospace;
    }

    .modal-controls-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        margin-bottom: 14px;
        flex-shrink: 0;
    }

    .modal-play-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease;
    }

    .modal-play-btn:active {
        transform: scale(0.94);
    }

    .modal-footer-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.72rem;
        color: var(--sp-green);
        background: rgba(29, 185, 84, 0.1);
        border: 1px solid rgba(29, 185, 84, 0.25);
        padding: 6px 14px;
        border-radius: 9999px;
        width: fit-content;
        margin: 0 auto;
        flex-shrink: 0;
    }

    /* Queue panel on mobile */
    .queue-drawer-panel {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        top: 0;
        right: -100vw;
        border-radius: 0;
        z-index: 300;
    }

    .queue-drawer-panel.open {
        right: 0;
    }
}

/* ==========================================================================
   SPOTIFY PREMIUM SUBSCRIPTION & CHECKOUT STYLES
   ========================================================================== */

/* Topbar Upgrade Button */
.btn-upgrade-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-upgrade-premium:hover {
    transform: scale(1.04);
    background: #f0f0f0;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-upgrade-premium.active-premium {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #121212;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.prem-crown-icon {
    font-size: 0.95rem;
}

/* Hero Banner in Tab 4 */
.premium-hero-banner {
    padding: 3rem 2rem 2.5rem;
    background: linear-gradient(135deg, #1e3264 0%, #161824 60%, #0d0e14 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.prem-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1DB954;
    background: rgba(29, 185, 84, 0.12);
    border: 1px solid rgba(29, 185, 84, 0.3);
    padding: 5px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.prem-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.prem-hero-subtitle {
    font-size: 0.98rem;
    color: #b3b3b3;
    max-width: 680px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.prem-hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-prem-cta {
    background: var(--sp-green);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(29, 185, 84, 0.35);
}

.btn-prem-cta:hover {
    transform: scale(1.04);
    background: #1ed760;
    box-shadow: 0 6px 22px rgba(29, 185, 84, 0.5);
}

.btn-prem-view-plans {
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--sp-ease);
}

.btn-prem-view-plans:hover {
    border-color: #ffffff;
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

.prem-terms {
    font-size: 0.72rem;
    color: #8c8c8c;
}

/* Active Subscription Status Card */
.active-sub-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(29, 185, 84, 0.08) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.8rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sub-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-crown-icon {
    font-size: 2.4rem;
    background: rgba(255, 215, 0, 0.15);
    padding: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.sub-plan-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sub-card-left h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sub-card-left p {
    font-size: 0.85rem;
    color: #b3b3b3;
    margin-bottom: 4px;
}

.sub-date {
    font-size: 0.75rem;
    color: #1DB954;
    font-weight: 600;
}

.btn-cancel-sub {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--sp-ease);
    white-space: nowrap;
}

.btn-cancel-sub:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

/* Perks Section */
.prem-perks-section {
    margin-bottom: 2.8rem;
}

.prem-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.prem-section-sub {
    font-size: 0.92rem;
    color: #a7a7a7;
    margin-bottom: 22px;
}

.prem-perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.prem-perk-card {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.prem-perk-card:hover {
    background: #222222;
    transform: translateY(-4px);
}

.perk-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.prem-perk-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.prem-perk-card p {
    font-size: 0.82rem;
    color: #a7a7a7;
    line-height: 1.45;
}

/* Pricing Plans Grid */
.prem-plans-section {
    margin-bottom: 3rem;
}

.prem-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.prem-card {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.4rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.prem-card.featured {
    background: linear-gradient(180deg, #1a221d 0%, #181818 100%);
    border: 2px solid var(--sp-green);
    box-shadow: 0 8px 30px rgba(29, 185, 84, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 18px;
    background: var(--sp-green);
    color: #000000;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.prem-card-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.plan-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.plan-tag.tag-green {
    background: rgba(29, 185, 84, 0.2);
    color: #1ed760;
}

.plan-tag.tag-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.plan-tag.tag-gold {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.plan-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a7a7a7;
}

.plan-account-info {
    font-size: 0.78rem;
    color: #a7a7a7;
}

.prem-card-body {
    flex: 1;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    font-size: 0.85rem;
    color: #d1d1d1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.feat-check {
    color: var(--sp-green);
    font-weight: 800;
    flex-shrink: 0;
}

.prem-card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-select-plan {
    background: #ffffff;
    color: #000000;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    text-align: center;
}

.btn-select-plan:hover {
    transform: scale(1.03);
    background: #f0f0f0;
}

.btn-select-plan.btn-featured {
    background: var(--sp-green);
    color: #000000;
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
}

.btn-select-plan.btn-featured:hover {
    background: #1ed760;
}

.plan-foot-note {
    font-size: 0.68rem;
    color: #727272;
    text-align: center;
    line-height: 1.3;
}

/* Comparison Table */
.prem-compare-section {
    margin-bottom: 4rem;
}

.prem-compare-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.prem-table-wrap {
    overflow-x: auto;
    background: #181818;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.prem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.prem-table th, .prem-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prem-table th {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 700;
    color: #a7a7a7;
    text-transform: uppercase;
}

.prem-table th.th-prem {
    color: var(--sp-green);
}

.prem-table td.td-prem {
    color: var(--sp-green);
    font-weight: 600;
}

/* ==========================================================================
   CHECKOUT MODAL STYLES
   ========================================================================== */

.checkout-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.25s ease;
}

.checkout-modal-backdrop.hidden {
    display: none !important;
}

.checkout-modal-box {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.checkout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-sub-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--sp-green);
    text-transform: uppercase;
}

.checkout-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 2px 0 4px;
}

.checkout-price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.checkout-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.checkout-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.checkout-body {
    padding: 1.4rem 1.5rem 1.8rem;
}

.payment-tabs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.pay-tab {
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b3b3b3;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--sp-ease);
}

.pay-tab:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.pay-tab.active {
    background: rgba(29, 185, 84, 0.12);
    border-color: var(--sp-green);
    color: #ffffff;
}

.pay-tab.active .pay-icon {
    transform: scale(1.15);
}

.pay-icon {
    font-size: 1.1rem;
    transition: transform 0.15s ease;
}

.pay-panel {
    margin-bottom: 18px;
}

.pay-panel.hidden {
    display: none !important;
}

.upi-apps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.upi-app-btn {
    background: #282828;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--sp-ease);
}

.upi-app-btn:hover {
    background: #323232;
}

.upi-app-btn.active {
    border-color: var(--sp-green);
    background: rgba(29, 185, 84, 0.15);
    color: #1ed760;
}

.upi-input-box, .card-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.upi-input-box label, .card-input-group label, .card-row-split label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a7a7a7;
}

.upi-input-box input, .card-input-group input, .card-row-split input {
    background: #282828;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.upi-input-box input:focus, .card-input-group input:focus, .card-row-split input:focus {
    border-color: var(--sp-green);
}

.upi-verified-badge {
    font-size: 0.72rem;
    color: var(--sp-green);
    font-weight: 600;
    margin-top: 2px;
}

.card-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.card-row-split > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bank-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.bank-pill {
    background: #282828;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d1d1;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--sp-ease);
}

.bank-pill:hover {
    background: #323232;
}

.bank-pill.active {
    border-color: var(--sp-green);
    color: #1ed760;
    background: rgba(29, 185, 84, 0.15);
}

.checkout-summary-box {
    background: #222222;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.summary-line strong {
    color: var(--sp-green);
    font-size: 1.05rem;
}

.summary-sub {
    font-size: 0.75rem;
    color: #8c8c8c;
    line-height: 1.35;
}

.btn-confirm-payment {
    width: 100%;
    background: var(--sp-green);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 18px rgba(29, 185, 84, 0.35);
}

.btn-confirm-payment:hover {
    transform: scale(1.02);
    background: #1ed760;
}

.pay-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #8c8c8c;
    margin-top: 12px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .premium-hero-banner {
        padding: 2rem 1.2rem 1.8rem;
    }

    .prem-hero-title {
        font-size: 1.7rem;
    }

    .prem-cards-grid {
        grid-template-columns: 1fr;
    }

    .active-sub-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }

    .btn-upgrade-premium .prem-top-label {
        display: none;
    }

    .btn-upgrade-premium {
        padding: 6px 10px;
    }
}

/* ==========================================================================
   SOUNDWAVE BROWSER & VIDEO PLAYER STYLES
   ========================================================================== */

.yt-browser-container {
    padding-bottom: 5rem;
}

/* Hero Header */
.yt-search-hero {
    background: linear-gradient(135deg, #1c1012 0%, #141416 60%, #0c0d12 100%);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 0, 0, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.yt-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.yt-brand-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.yt-brand-header p {
    font-size: 0.88rem;
    color: #a7a7a7;
}

.yt-input-group {
    display: flex;
    align-items: center;
    background: #1f1f23;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yt-input-group:focus-within {
    border-color: #ff0000;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.25);
}

.yt-input-group svg {
    color: #a7a7a7;
    flex-shrink: 0;
}

.yt-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.yt-search-btn {
    background: #1db954;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.yt-search-btn:hover {
    background: #1aa34a;
    transform: scale(1.03);
}

/* Chips Row */
.yt-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.yt-chips-row::-webkit-scrollbar {
    display: none;
}

.yt-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--sp-ease);
}

.yt-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.yt-chip.active {
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    border-color: #ffffff;
}

/* Theater Stage / Iframe Player */
.yt-player-theater {
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.yt-player-theater.hidden {
    display: none !important;
}

.yt-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: #000000;
}

.yt-iframe-wrapper video.yt-native-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    border: none;
    outline: none;
    object-fit: contain;
}

.yt-iframe-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-video-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 10;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.yt-video-loader.hidden {
    display: none !important;
}

.yt-video-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 1.2rem 1.6rem;
    background: #141416;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.yt-meta-left {
    min-width: 0;
    flex: 1;
}

.yt-meta-left h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #a7a7a7;
}

.yt-hd-badge {
    background: rgba(255, 0, 0, 0.18);
    color: #ff3333;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.yt-quality-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 10px;
    border-radius: 9999px;
    transition: var(--sp-ease);
}

.yt-quality-picker:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--sp-green);
}

.yt-quality-picker svg {
    color: var(--sp-green);
    flex-shrink: 0;
}

.yt-quality-select {
    background: transparent;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.yt-quality-select option {
    background: #18181c;
    color: #ffffff;
}

.yt-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-yt-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: var(--sp-ease);
}

.btn-switch-audio {
    background: var(--sp-green);
    color: #000000;
}

.btn-switch-audio:hover {
    background: #1ed760;
    transform: scale(1.02);
}

.btn-yt-download {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-yt-download:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-yt-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-yt-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* Video Results Grid */
.yt-videos-section {
    margin-top: 1rem;
}

.yt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.yt-section-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.yt-loading-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 0, 0, 0.2);
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.yt-video-card {
    background: #181818;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.yt-video-card:hover {
    transform: translateY(-4px);
    background: #222222;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.yt-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    overflow: hidden;
}

.yt-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yt-video-card:hover .yt-thumb-box img {
    transform: scale(1.05);
}

.yt-dur-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.yt-card-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.yt-video-card:hover .yt-card-hover-play {
    opacity: 1;
}

.yt-play-bubble {
    width: 44px;
    height: 44px;
    background: #1db954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.yt-video-card:hover .yt-play-bubble {
    transform: scale(1);
}

.yt-card-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.yt-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-channel {
    font-size: 0.78rem;
    color: #a7a7a7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
}

/* Watch Video Buttons in Player Bars */
.btn-player-video {
    background: transparent;
    border: none;
    color: #a7a7a7;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--sp-ease);
}

.btn-player-video:hover {
    color: #ffffff;
    background: rgba(255, 0, 0, 0.15);
}

.btn-player-video svg {
    flex-shrink: 0;
}

.btn-yt-open-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-yt-open-app:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.yt-embed-notice-pill {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.8rem;
    color: #ffd080;
    margin-top: 10px;
    line-height: 1.4;
}

.yt-embed-notice-pill strong {
    color: #ffffff;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .yt-search-hero {
        padding: 1.4rem 1rem;
    }

    .yt-brand-header h2 {
        font-size: 1.25rem;
    }

    .yt-video-meta-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .yt-meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .yt-videos-grid {
        grid-template-columns: 1fr;
    }

    .btn-player-video span {
        display: none;
    }
}

/* ==========================================================================
   FIREBASE CLOUD & AUTH STYLES
   ========================================================================== */

/* Topbar Firebase Cloud Pill */
.btn-firebase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 150, 0, 0.12);
    border: 1px solid rgba(255, 150, 0, 0.35);
    color: #ffb03a;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-firebase-pill:hover {
    background: rgba(255, 150, 0, 0.22);
    border-color: #ff9900;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 150, 0, 0.25);
}

.btn-firebase-pill .fb-fire-icon {
    font-size: 1rem;
    line-height: 1;
}

.btn-firebase-pill .fb-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffaa00;
    box-shadow: 0 0 6px #ffaa00;
}

.btn-firebase-pill.connected {
    background: rgba(29, 185, 84, 0.12);
    border-color: rgba(29, 185, 84, 0.35);
    color: #1ed760;
}

.btn-firebase-pill.connected .fb-pill-dot {
    background: #1ed760;
    box-shadow: 0 0 8px #1ed760;
}

/* Topbar Log In Button */
.btn-top-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 18px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-top-login:hover {
    transform: scale(1.04);
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-top-login svg {
    color: #000000;
}

/* User Profile Badge enhancements */
.user-profile-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px 4px 5px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.user-profile-badge .avatar-photo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #1ed760;
}

.cloud-sync-mini-badge {
    font-size: 0.85rem;
    line-height: 1;
}

/* ==========================================================================
   MODAL 1: AUTH MODAL
   ========================================================================== */
.auth-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    animation: authModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-brand-logo {
    display: inline-flex;
    margin-bottom: 0.8rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    font-size: 0.86rem;
    color: #a7a7a7;
    line-height: 1.4;
}

/* Google Auth Button */
.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #121212;
    border: 1px solid #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-google-auth:hover {
    background: #f2f2f2;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.4rem 0;
    color: #727272;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Form inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.auth-field-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-toggle-password {
    background: none;
    border: none;
    color: #a7a7a7;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-toggle-password:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-field-group input {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.92rem;
    padding: 11px 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field-group input:focus {
    border-color: #1ed760;
    box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.25);
}

.auth-error-banner {
    background: rgba(235, 67, 53, 0.15);
    border: 1px solid rgba(235, 67, 53, 0.35);
    color: #ff6b6b;
    font-size: 0.84rem;
    padding: 10px 14px;
    border-radius: 8px;
    line-height: 1.4;
}

.btn-auth-submit {
    position: relative;
    width: 100%;
    background: #1ed760;
    color: #000000;
    border: none;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 13px;
    border-radius: 9999px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(30, 215, 96, 0.3);
}

.btn-auth-submit:hover {
    background: #1fdf64;
    transform: scale(1.02);
}

.auth-toggle-footer {
    text-align: center;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    color: #a7a7a7;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.auth-link-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.auth-link-btn:hover {
    color: #1ed760;
}

/* ==========================================================================
   MODAL 2: USER PROFILE & CLOUD SYNC MODAL
   ========================================================================== */
.user-profile-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.profile-avatar-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.profile-identity h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-identity p {
    font-size: 0.85rem;
    color: #a7a7a7;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-membership-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    width: fit-content;
}

/* Sync Box */
.profile-sync-status-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1.4rem;
}

.sync-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sync-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1ed760;
    box-shadow: 0 0 8px #1ed760;
}

.sync-mode-pill {
    font-size: 0.74rem;
    background: rgba(29, 185, 84, 0.15);
    color: #1ed760;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
}

.sync-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.sync-stat {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 4px;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.72rem;
    color: #7c7c7c;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-manual-sync {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 9px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-manual-sync:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #1ed760;
}

/* Actions list */
.profile-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-action-btn .action-icon {
    font-size: 1.25rem;
}

.profile-action-btn .action-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-action-btn .action-meta strong {
    font-size: 0.92rem;
    color: #ffffff;
}

.profile-action-btn .action-meta small {
    font-size: 0.76rem;
    color: #727272;
}

.profile-action-btn .action-arrow {
    color: #727272;
    font-size: 1.2rem;
}

.profile-action-btn.btn-danger {
    color: #ff6b6b;
}

.profile-action-btn.btn-danger .action-meta strong {
    color: #ff6b6b;
}

.profile-action-btn.btn-danger:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
}

/* ==========================================================================
   MODAL 3: FIREBASE CONFIGURATION SETTINGS MODAL
   ========================================================================== */
.fb-settings-dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.2rem;
}

.fb-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 150, 0, 0.15);
    border: 1px solid rgba(255, 150, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.fb-settings-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.fb-settings-header p {
    font-size: 0.84rem;
    color: #a7a7a7;
    margin: 0;
    line-height: 1.35;
}

/* Banner */
.fb-connection-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 150, 0, 0.1);
    border: 1px solid rgba(255, 150, 0, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 1.4rem;
}

.banner-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff9900;
    box-shadow: 0 0 8px #ff9900;
    margin-top: 4px;
    flex-shrink: 0;
}

.fb-connection-banner.live {
    background: rgba(30, 215, 96, 0.1);
    border-color: rgba(30, 215, 96, 0.35);
}

.fb-connection-banner.live .banner-status-dot {
    background: #1ed760;
    box-shadow: 0 0 8px #1ed760;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banner-text strong {
    font-size: 0.9rem;
    color: #ffffff;
}

.banner-text span {
    font-size: 0.8rem;
    color: #b3b3b3;
    line-height: 1.35;
}

/* Tabs */
.fb-input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.fb-tab-btn {
    background: none;
    border: none;
    color: #727272;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.fb-tab-pane label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.fb-code-textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #00ff88;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
    padding: 12px;
    border-radius: 10px;
    resize: vertical;
    outline: none;
    line-height: 1.45;
}

.fb-code-textarea:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.25);
}

.fb-helper-hint {
    font-size: 0.78rem;
    color: #a7a7a7;
    margin-top: 6px;
    line-height: 1.35;
}

/* Grid for manual fields */
.fb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-field input {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
}

.fb-field input:focus {
    border-color: #ff9900;
}

/* Instructions card */
.fb-instructions-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 1.2rem 0;
}

.fb-instructions-card h4 {
    font-size: 0.84rem;
    color: #ffffff;
    margin: 0 0 8px;
    font-weight: 700;
}

.fb-instructions-card ol {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.78rem;
    color: #a7a7a7;
    line-height: 1.5;
}

.fb-instructions-card a {
    color: #ffaa00;
    text-decoration: underline;
}

/* Buttons */
.fb-settings-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 1.2rem;
}

.btn-reset-fb {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a7a7a7;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-fb:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-save-fb {
    flex: 1;
    background: linear-gradient(135deg, #ff9900, #ff6b00);
    border: none;
    color: #000000;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.btn-save-fb:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .btn-firebase-pill .fb-pill-text {
        display: none;
    }
    .btn-firebase-pill {
        padding: 6px 9px;
    }
    .auth-dialog,
    .user-profile-dialog,
    .fb-settings-dialog {
        padding: 1.8rem 1.4rem;
        border-radius: 18px;
    }
    .fb-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PWA INSTALL GUIDE MODAL STYLING
   ========================================================================== */
.pwa-guide-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-guide-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pwa-guide-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.pwa-guide-header p {
    font-size: 0.85rem;
    color: #a7a7a7;
    margin: 0;
    line-height: 1.35;
}

.pwa-guide-icon-wrap {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.8rem;
    border-radius: 16px;
    background: rgba(29, 185, 84, 0.15);
    border: 1.5px solid rgba(29, 185, 84, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.pwa-step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.pwa-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1ed760;
    color: #000000;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-step-content strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.pwa-step-content p {
    font-size: 0.8rem;
    color: #a7a7a7;
    margin: 0;
    line-height: 1.35;
}

.pwa-dots-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.pwa-notice-box {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.28);
    border-radius: 10px;
    padding: 11px 14px;
    margin: 1.2rem 0;
    font-size: 0.82rem;
    color: #ffd080;
    line-height: 1.45;
}

.btn-pwa-gotit {
    width: 100%;
    background: #1ed760;
    color: #000000;
    border: none;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pwa-gotit:hover {
    background: #1fdf64;
    transform: scale(1.02);
}

/* ==========================================================================
   MOVIES SECTION (POWERED BY VEGAMOVIES) STYLING
   ========================================================================== */
.movies-container {
    padding: 0 1.5rem 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Movie Hero Spotlight */
.movie-hero-spotlight {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    padding: 2.5rem 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    background: linear-gradient(135deg, #18090b 0%, #12131c 55%, #0a0b0e 100%);
    border: 1px solid rgba(229, 9, 20, 0.28);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
    margin-bottom: 2rem;
}

.spotlight-backdrop-glow {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.spotlight-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ff4d4d;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 5px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.spotlight-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulseDot 2s infinite;
}

.spotlight-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.spotlight-rating {
    color: #ffd700;
    font-weight: 800;
}

.spotlight-sep {
    color: rgba(255, 255, 255, 0.25);
}

.spotlight-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #a0a0a0;
    margin-bottom: 22px;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-spotlight-trailer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
}

.btn-spotlight-trailer:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 26px rgba(229, 9, 20, 0.65);
    background: linear-gradient(135deg, #f40b17, #c40912);
}

.btn-spotlight-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-spotlight-detail:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    transform: scale(1.02);
}

.spotlight-poster-box {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.spotlight-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Movies Controls & Search */
.movies-controls-bar {
    margin: 1.8rem 0 1rem;
}

.movie-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #15161f;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 12px 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.movie-search-box:focus-within {
    border-color: #e50914;
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.35);
    background: #191b26;
}

.movie-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
}

.movie-search-box input::placeholder {
    color: #8c8c8c;
}

.movie-search-clear {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: color 0.15s;
}

.movie-search-clear:hover {
    color: #ffffff;
}

/* Category Filter Chips */
.movie-chips-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.movie-chips-scroll::-webkit-scrollbar {
    display: none;
}

.movie-chip {
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d0d0d0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.movie-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.movie-chip.active {
    background: #1db954;
    border-color: #e50914;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Movies Grid Header */
.movies-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.6rem 0 1.2rem;
}

.movies-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.movies-header-left h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.movies-count-badge {
    font-size: 0.75rem;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
}

/* Movie Cards Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px 18px;
}

.movie-card {
    position: relative;
    background: #13141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
    border-color: rgba(229, 9, 20, 0.5);
}

.movie-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a1c26;
}

.movie-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-card-thumb-wrap img {
    transform: scale(1.06);
}

.movie-card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    z-index: 2;
}

.movie-card-hover-actions {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    padding: 12px;
}

.movie-card:hover .movie-card-hover-actions {
    opacity: 1;
}

.btn-quick-trailer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1db954;
    color: #ffffff;
    border: none;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
    transition: transform 0.15s, background 0.15s;
    width: 100%;
    max-width: 140px;
    justify-content: center;
}

.btn-quick-trailer:hover {
    transform: scale(1.05);
    background: #f40b17;
}

.btn-quick-info {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    max-width: 140px;
    text-align: center;
}

.btn-quick-info:hover {
    background: rgba(255, 255, 255, 0.35);
}

.movie-card-info {
    padding: 11px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.movie-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #9c9c9c;
}

/* Load More Button */
.movies-load-more-wrap {
    text-align: center;
    margin: 2.8rem 0 1.2rem;
}

.btn-movies-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-movies-load-more:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   MOVIE DETAIL MODAL STYLING
   ========================================================================== */
.movie-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    background: #13141c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
    z-index: 10001;
    animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-detail-content {
    padding: 2.2rem 2.4rem;
    position: relative;
}

.movie-modal-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.movie-modal-poster {
    width: 170px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: #1a1c26;
}

.movie-modal-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-modal-info {
    flex: 1;
}

.movie-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.15;
}

.movie-modal-tagline {
    font-size: 0.88rem;
    font-style: italic;
    color: #a0a0a0;
    margin: 0 0 12px;
}

.movie-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.movie-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-pill-rating {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.35);
}

.movie-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-modal-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1db954;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
    transition: transform 0.15s, background 0.15s;
}

.btn-modal-trailer:hover {
    transform: scale(1.04);
    background: #f40b17;
}

.btn-modal-vegamovies {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #b3b3b3;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.15s;
}

.btn-modal-vegamovies:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.movie-modal-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 1.6rem 0 0.8rem;
}

.movie-overview-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #b8b8b8;
    margin: 0;
}

.movie-director-row {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 10px;
}

.movie-director-row strong {
    color: #ffffff;
}

.movie-cast-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.cast-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85px;
    flex-shrink: 0;
    text-align: center;
}

.cast-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #20222e;
    margin-bottom: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.cast-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-actor-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cast-char-name {
    font-size: 0.68rem;
    color: #888888;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for movies */
@media (max-width: 900px) {
    .movie-hero-spotlight {
        flex-direction: column-reverse;
        padding: 1.8rem;
        text-align: center;
    }
    .spotlight-content {
        max-width: 100%;
    }
    .spotlight-actions {
        justify-content: center;
    }
    .spotlight-poster-box {
        margin: 0 auto;
    }
    .movie-modal-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .movie-pills-row {
        justify-content: center;
    }
    .movie-modal-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }
    .movies-container {
        padding: 0 1rem 3rem;
    }
    .spotlight-title {
        font-size: 1.9rem;
    }
    .movie-modal-dialog {
        border-radius: 16px;
    }
    .movie-detail-content {
        padding: 1.6rem 1.2rem;
    }
}

/* Home Vegamovies Shelf & 1080p Badges */
.btn-jumbo-movies {
    background: rgba(229, 9, 20, 0.18) !important;
    border: 1.5px solid rgba(229, 9, 20, 0.5) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-jumbo-movies:hover {
    background: #e50914 !important;
    box-shadow: 0 6px 22px rgba(229, 9, 20, 0.55);
    transform: scale(1.04);
}

.shelf-title-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shelf-badge-1080p {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ff4d4d;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 3px 8px;
    border-radius: 9999px;
    width: fit-content;
    margin-bottom: 2px;
}

.cat-tile-movies {
    background: linear-gradient(135deg, #e50914, #8b0000) !important;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-tile-movies:hover {
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.55);
    transform: scale(1.03);
}

.movie-hd-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1db954;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}

.btn-modal-full-movie {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-full-movie:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    transform: scale(1.04);
}











/* =========================================================================
   YOUTUBE-STYLE TOP 4 FEATURES (AMBIENT GLOW, PIP, SPEED, AUTOPLAY)
   ========================================================================= */

/* Feature 1: Dynamic Ambient Glow Mode */
.yt-player-theater {
    position: relative;
    overflow: visible !important;
}

.ambient-glow {
    position: absolute;
    inset: -15px -20px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(29, 185, 84, 0.45) 0%, rgba(16, 185, 129, 0.2) 40%, transparent 70%);
    filter: blur(48px);
    z-index: 0;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
}

.ambient-glow.disabled {
    opacity: 0 !important;
}

.yt-iframe-wrapper {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature 3: Floating In-App Picture-in-Picture Mini Player */
.floating-mini-player {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 320px;
    height: 200px;
    background: #181818;
    border-radius: 14px;
    border: 1px solid rgba(29, 185, 84, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(29, 185, 84, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: slideUpPip 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mini-player-header {
    height: 32px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-player-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.mini-player-actions {
    display: flex;
    gap: 6px;
}

.mini-btn {
    background: transparent;
    border: none;
    color: #a7a7a7;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.mini-btn:hover {
    color: #1db954;
    background: rgba(255, 255, 255, 0.1);
}

.mini-player-body {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player-body video,
.mini-player-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* Feature 4: Active Feature Buttons */
.btn-yt-action.active-feature {
    border-color: rgba(29, 185, 84, 0.5) !important;
    background: rgba(29, 185, 84, 0.12) !important;
    color: #1db954 !important;
}
