
<style>
/* ==================== */
/*    ROOT VARIABLES    */
/* ==================== */
:root {
  --bg-main: #2a313c;
  --bg-body: #1c222b;
  --bg-sections: #212830;
  --bgCode: #0e1116;
  --border-other: #2a313c;
  --border-main: #434a55;
  --color-header-bg: #161b22;
  --color-border: #434a55;
  --color-border-secondary: #30363d;
  --color-text-primary: #c9d1d9;
  --color-text-secondary: #8b949e;
  --color-link: #58a6ff;
  --color-btn-primary-bg: #238636;
  --color-btn-primary-hover: #2ea043;
  --color-btn-primary-text: #ffffff;
  --color-repo-bg: #161b22;
  --color-nav-item-active: #ffffff;
  --color-nav-item: #8b949e;
  --color-tag-bg: rgba(56, 139, 253, 0.15);
  --color-tag-text: #58a6ff;

  --color-nav-item: #9ca3af;
  --color-nav-item-active: #f3f4f6;
  --nav-bg: #1f2937;
  --nav-hover-bg: rgba(55, 65, 81, 0.6);
  --nav-active-bg: #1f2328;
  --nav-border: #374151;
  --nav-accent: #3b82f6;

  --darkest: rgb(33, 34, 36);
  --darker: rgb(45, 51, 59);
  --dark: rgb(52, 59, 68);
  --lightest: rgb(191, 193, 196);
  --lighter: rgb(152, 155, 160);
  --light: rgb(113, 117, 122);

  /* Brand Colors */
  --red: #f85149;
  --blue: #58a6ff;
  --green: #56d364;
  --purple: #bc8cff;
  --yellow: #e3b341;

  /* Functional Colors */
  --success: #3fb950;
  --warning: #d29922;
  --error: #f85149;
  --info: #58a6ff;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.625rem rgba(1, 4, 9, 0.5);
  --shadow-md: 0 0.3125rem 0.9375rem rgba(1, 4, 9, 0.5);
  --shadow-lg: 0 0.625rem 1.875rem rgba(1, 4, 9, 0.8);

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.4s;

  /* Z-index */
  --z-content: 1;
  --z-overlay: 9;
  --z-sidebar: 101;
  --z-header: 100;
  --z-modal: 1000;
  --z-loading: 1001;

  /* Font Families */
  --font-text: "WF Visual Sans Text", sans-serif;
  --font-headings: "WF Visual Sans", sans-serif;
  --font-mono: Inconsolata, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Heading Sizes */
  --h1: 2.5rem;
  --h2: 3rem;
  --h3: 1.75rem;
  --h4: 1.5rem;

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

:root {
  --bg-primary: #22272e;
  --bg-secondary: #2d333b;
  --bg-tertiary: #373e47;
  --bg-hover: #444c56;
  --border-primary: #444c56;
  --border-secondary: #373e47;
  --text-primary: #adbac7;
  --text-secondary: #768390;
  --text-tertiary: #636e7b;
  --text-link: #539bf5;
  --text-link-hover: #6cb6ff;
  --accent-blue: #539bf5;
  --accent-green: #57ab5a;
  --accent-red: #e5534b;
  --accent-yellow: #c69026;
  --accent-purple: #b083f0;
  --btn-bg: #373e47;
  --btn-hover: #444c56;
  --btn-border: #444c56;
  --input-bg: #2d333b;
  --input-border: #444c56;
  --shadow: rgba(0, 0, 0, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 0.0625rem solid var(--border-primary);
  border-radius: 0.75rem;
  width: 30rem;
  max-width: 90%;
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
  transform: translateY(-1.25rem);
  transition: transform 0.3s;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 0.0625rem solid var(--border-secondary);
}
.modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 0.0625rem solid var(--border-secondary);
}

.status-emoji-picker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.emoji-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.0625rem solid var(--border-primary);
  background: var(--bg-tertiary);
  border-radius: 0.375rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
.emoji-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

.status-input {
  width: 100%;
  background: var(--input-bg);
  border: 0.0625rem solid var(--input-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.status-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  padding: 0.375rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent-green);
  color: white;
}
.btn-primary:hover {
  background: #6bc074;
}

.btn-secondary {
  background: var(--btn-bg);
  color: var(--text-primary);
  border: 0.0625rem solid var(--btn-border);
}
.btn-secondary:hover {
  background: var(--btn-hover);
}








/* ===========================================
   UNIFIED MUSIC PLAYER CSS
   Works with existing design system - NO OVERRIDES
   =========================================== */

/* Base responsive utility classes */
.mobile-only {
    display: block;
}

.desktop-tablet-only {
    display: none;
}

@media (min-width: 48rem) {
    .mobile-only {
        display: none;
    }
    
    .desktop-tablet-only {
        display: block;
    }
}

/* Unified Triggers for Desktop/Tablet - uses your existing variables */
.unified-triggers {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: var(--z-nav);
    display: flex;
    gap: 0.75rem;
}

.unified-trigger {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--background-500);
    border: 0.0625rem solid var(--border-200);
    color: var(--text-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.unified-trigger:hover {
    background: var(--background-600);
    border-color: var(--border-accent);
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-lg);
    color: var(--text-100);
}

.unified-trigger:active {
    transform: translateY(0);
}

.unified-trigger svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Tablet/Desktop responsive adjustments for existing drawer */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
    /* Tablet: Centered modal-style drawer */
    .drawer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
    }
    
    .drawerScroller {
        height: auto;
        max-height: 80vh;
        width: 100%;
        max-width: 37.5rem;
        overflow-y: auto;
        scroll-snap-type: none;
    }
    
    .drawerSlide {
        width: 100%;
        min-height: auto;
        height: auto;
        flex: none;
    }
    
    .drawerAnchors {
        display: none;
    }
    
    .drawerContent {
        min-height: auto;
        border-radius: var(--radius-xl);
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        translate: 0 0;
        transition: none;
    }
    
    .drawerCurtain {
        display: block;
    }
}

/* Desktop responsive adjustments */
@media (min-width: 64rem) {
    /* Desktop: Larger centered modal */
    .drawer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2.5rem;
    }
    
    .drawerScroller {
        height: auto;
        max-height: 85vh;
        width: 100%;
        max-width: 43.75rem;
        overflow-y: auto;
        scroll-snap-type: none;
    }
    
    .drawerSlide {
        width: 100%;
        min-height: auto;
        height: auto;
        flex: none;
    }
    
    .drawerAnchors {
        display: none;
    }
    
    .drawerContent {
        min-height: auto;
        border-radius: var(--radius-xl);
        max-height: 85vh;
        overflow-y: auto;
        position: relative;
        translate: 0 0;
        transition: none;
    }
    
    .drawerCurtain {
        display: block;
    }
    
    /* Desktop bento grid embedding support */
    .drawer.bento-embedded {
        position: relative;
        display: block;
        inset: unset;
        z-index: auto;
        padding: 0;
        pointer-events: auto;
        height: 100%;
    }
    
    .drawer.bento-embedded .drawerScroller {
        height: 100%;
        max-height: none;
        overflow: visible;
        scroll-snap-type: none;
    }
    
    .drawer.bento-embedded .drawerSlide {
        height: 100%;
        min-height: auto;
    }
    
    .drawer.bento-embedded .drawerContent {
        border-radius: var(--radius-lg);
        min-height: 100%;
        max-height: none;
        position: static;
        box-shadow: none;
        border: none;
    }
    
    .drawer.bento-embedded .drawerCurtain,
    .drawer.bento-embedded .mpNav {
        display: none;
    }
    
    .drawer.bento-embedded .drawerAnchors {
        display: none;
    }
}

/* Fix tablet popover behavior - prevent immediate closing */
@media (min-width: 48rem) {
    .drawer::backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: var(--blur-md);
    }
    
    .drawer:not(:popover-open) {
        display: none;
    }
    
    .drawer:popover-open {
        display: flex;
    }
    
    /* Same rules for music-drawer class */
    .music-drawer:not(:popover-open) {
        display: none;
    }
    
    .music-drawer:popover-open {
        display: flex;
    }
    
    /* Ensure drawer content doesn't trigger backdrop clicks */
    .drawer .drawerContent {
        pointer-events: auto;
        position: relative;
        z-index: 10;
    }
    
    /* Make sure curtain only covers empty areas */
    .drawer .drawerCurtain {
        pointer-events: auto;
        z-index: 1;
    }
}

/* Animation fixes for tablet/desktop */
@media (min-width: 48rem) {
    .drawer:popover-open,
    .music-drawer:popover-open {
        animation: fadeIn 0.3s ease;
    }
    
    .drawer.closing,
    .music-drawer.closing {
        animation: fadeOut 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
}

/* Bento card integration styles */
.bento-card.music-player-card {
    overflow: hidden;
    position: relative;
}

.bento-card.music-player-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 0.0625rem solid var(--border-200);
}

.bento-card.music-player-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-100);
    margin: 0;
}

.bento-card.music-player-card .card-actions {
    display: flex;
    gap: var(--space-sm);
}

.bento-card.music-player-card .expand-player-btn,
.bento-card.music-player-card .minimize-player-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-400);
    border: 0.0625rem solid var(--border-200);
    border-radius: var(--radius-sm);
    color: var(--text-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bento-card.music-player-card .expand-player-btn:hover,
.bento-card.music-player-card .minimize-player-btn:hover {
    background: var(--background-500);
    color: var(--text-100);
    border-color: var(--border-accent);
}

/* Playing state indicator for unified triggers */
.unified-trigger.playing {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
}

.unified-trigger.playing::after {
    content: '';
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent-success);
    border-radius: 50%;
    border: 0.125rem solid var(--background-canvas);
}

/* Focus states using your existing variables */
.unified-trigger:focus-visible {
    outline: 0.125rem solid var(--accent-primary);
    outline-offset: 0.125rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .unified-trigger,
    .drawer,
    .drawerContent {
        transition: none;
        animation: none;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .unified-trigger {
        border-width: 0.125rem;
    }
    
    .drawer .drawerContent {
        border-width: 0.125rem;
    }
}


/* ===========================================
   RESPONSIVE LAYOUT CSS
   Works with existing navbar styles - NO OVERRIDES
   =========================================== */

/* Base Layout - respects existing pageWrapper */
#mainArea {
    transition: padding-top var(--transition-smooth);
}

/* Mobile Layout (Default) - preserves existing navbar styles */
@media (max-width: 47.9375rem) {
    /* Your existing navbar styles from navbarPlayer.css are preserved */
    
    /* Hide desktop/tablet triggers */
    .unified-triggers {
        display: none;
    }
    
    /* Dropdown menu positioning for mobile - respects existing variables */
    .dropdown-menu {
        position: fixed;
        bottom: calc(2.8125rem + 1rem + 1rem); /* Based on your navbar height + bottom + padding */
        left: 4vw; /* Matches your navbar width calculation */
        right: 4vw;
        max-height: 70vh;
        transform: translateY(100%);
        transition: transform var(--transition-smooth);
        z-index: calc(var(--z-player) + 1);
    }
    
    .dropdown-menu.show {
        transform: translateY(0);
    }
}

/* Tablet Layout */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
    /* Hide navbar on tablet */
    #navbar {
        display: none !important;
    }
    
    /* Show unified triggers */
    .unified-triggers {
        display: flex;
    }
    
    /* Adjust main area padding */
    #mainArea {
        padding-bottom: var(--space-xl);
    }
    
    /* Dropdown menu positioning for tablet */
    .dropdown-menu {
        position: fixed;
        top: 5rem;
        right: 1.25rem;
        left: auto;
        bottom: auto;
        width: 20rem;
        max-height: calc(100vh - 7.5rem);
        box-shadow: var(--shadow-xl);
        transform: translateY(-0.625rem) scale(0.95);
        opacity: 0;
        transition: all var(--transition-smooth);
        pointer-events: none;
        z-index: calc(var(--z-player) + 1);
    }
    
    .dropdown-menu.show {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Desktop Layout */
@media (min-width: 64rem) {
    /* Hide navbar on desktop */
    #navbar {
        display: none !important;
    }
    
    /* Show unified triggers */
    .unified-triggers {
        display: flex;
        top: var(--space-xl);
        right: var(--space-xl);
        gap: var(--space-md);
    }
    
    /* Adjust main area padding */
    #mainArea {
        padding-bottom: var(--space-2xl);
        padding-top: var(--space-md);
    }
    
    /* Dropdown menu positioning for desktop */
    .dropdown-menu {
        position: fixed;
        top: 5rem;
        right: var(--space-xl);
        left: auto;
        bottom: auto;
        width: 22.5rem;
        max-height: calc(100vh - 7.5rem);
        box-shadow: var(--shadow-2xl);
        transform: translateY(-0.625rem) scale(0.95);
        opacity: 0;
        transition: all var(--transition-smooth);
        pointer-events: none;
        z-index: calc(var(--z-player) + 1);
    }
    
    .dropdown-menu.show {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Desktop Bento Grid Layout - respects existing bento-grid class */
    .bento-grid {
        gap: var(--space-xl);
        padding: var(--space-xl);
    }
    
    /* Desktop music player bento integration */
    .drawer.bento-embedded .content {
        padding: var(--space-md);
    }
    
    .drawer.bento-embedded .tabsContainer {
        padding: var(--space-md) var(--space-md) 0;
    }
    
    .drawer.bento-embedded .cover {
        width: 10rem;
        max-width: 10rem;
        margin-bottom: var(--space-md);
    }
    
    .drawer.bento-embedded .info .title {
        font-size: 1.125rem;
        margin-bottom: var(--space-sm);
    }
    
    .drawer.bento-embedded .info .artist {
        font-size: 0.875rem;
        margin-bottom: var(--space-xs);
    }
    
    .drawer.bento-embedded .info .album {
        font-size: 0.75rem;
        margin-bottom: var(--space-lg);
    }
    
    .drawer.bento-embedded .controls {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .drawer.bento-embedded .controls .btn {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .drawer.bento-embedded .controls .btn.primary {
        width: 3rem;
        height: 3rem;
    }
    
    .drawer.bento-embedded .actions {
        gap: var(--space-lg);
    }
    
    .drawer.bento-embedded .actions .action {
        width: 2rem;
        height: 2rem;
    }
}

/* Ultra-wide Desktop Layout */
@media (min-width: 90rem) {
    .unified-triggers {
        top: var(--space-2xl);
        right: var(--space-2xl);
        gap: 1.125rem;
    }
    
    .unified-trigger {
        width: 3.25rem;
        height: 3.25rem;
    }
    
    .dropdown-menu {
        top: 6rem;
        right: var(--space-2xl);
        width: 23.75rem;
    }
}

/* Landscape Mobile Layout */
@media (max-width: 47.9375rem) and (orientation: landscape) {
    .dropdown-menu {
        bottom: calc(2.8125rem + 1rem); /* Your navbar height + spacing */
        max-height: 60vh;
    }
}

/* Focus Management - respects existing variables */
.dropdown-menu:not(.show) {
    visibility: hidden;
}

.dropdown-menu.show {
    visibility: visible;
}

/* Accessibility Improvements */
.unified-trigger:focus-visible {
    outline: 0.1875rem solid var(--accent-primary);
    outline-offset: 0.125rem;
}

/* Preserve existing scroll behavior */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .unified-trigger {
        transition: none;
        animation: none;
    }
}

/* CRITICAL FIX: Prevent popover from closing immediately on tablet/desktop */
@media (min-width: 48rem) {
    /* Ensure the drawer stays open when clicked inside */
    .drawer:popover-open,
    .music-drawer:popover-open {
        position: fixed;
        display: flex;
        inset: 0;
        z-index: var(--z-player);
    }
    
    /* Prevent backdrop clicks from immediately closing */
    .drawer::backdrop,
    .music-drawer::backdrop {
        position: fixed;
        inset: 0;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: var(--blur-md);
    }
}

/* Device-specific classes for JavaScript */
.device-mobile .desktop-tablet-only {
    display: none !important;
}

.device-tablet .mobile-only,
.device-desktop .mobile-only {
    display: none !important;
}

.device-tablet .desktop-tablet-only,
.device-desktop .desktop-tablet-only {
    display: flex !important;
}




/* ===========================================
   MODERN HOME COMPONENTS CSS
   Clean, modern styling for tracks, artists, playlists
   =========================================== */

/* Modern Track Items (Recently Played) */
.recent-tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modern-track-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--background-400);
  border: 0.0625rem solid var(--border-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.modern-track-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-track-item:hover {
  background: var(--background-500);
  border-color: var(--border-accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.modern-track-item:hover::before {
  opacity: 0.05;
}

.track-artwork-container {
  position: relative;
  flex-shrink: 0;
}

.track-artwork {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.track-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(0.25rem);
}

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

.track-play-btn {
  width: 2rem;
  height: 2rem;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.track-play-btn:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.track-content {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-main-info {
  flex: 1;
  min-width: 0;
}

.track-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-artist-text {
  font-size: 0.85rem;
  color: var(--text-300);
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist-text:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.track-meta {
  margin-right: var(--space-md);
}

.track-duration {
  font-size: 0.8rem;
  color: var(--text-400);
  font-variant-numeric: tabular-nums;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-track-item:hover .track-actions {
  opacity: 1;
}

.track-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.track-action-btn:hover {
  background: var(--background-600);
  color: var(--text-100);
  transform: scale(1.05);
}

.track-favorite-btn:hover {
  color: var(--accent-danger);
}

.track-favorite-btn.active {
  color: var(--accent-danger);
}

.track-favorite-btn.active svg {
  fill: currentColor;
}

/* Modern Playlist Cards */
.playlists-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modern-playlist-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--background-400);
  border: 0.0625rem solid var(--border-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.modern-playlist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-playlist-card:hover {
  background: var(--background-500);
  border-color: var(--border-accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.modern-playlist-card:hover::before {
  opacity: 0.05;
}

.playlist-artwork-container {
  position: relative;
  flex-shrink: 0;
}

.playlist-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.playlist-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(0.25rem);
}

.modern-playlist-card:hover .playlist-play-overlay {
  opacity: 1;
}

.playlist-play-btn {
  width: 2rem;
  height: 2rem;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.playlist-play-btn:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.playlist-content {
  flex: 1;
  min-width: 0;
}

.playlist-main-info {
  flex: 1;
  min-width: 0;
}

.playlist-name-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.playlist-tracks-text {
  font-size: 0.85rem;
  color: var(--text-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-playlist-card:hover .playlist-actions {
  opacity: 1;
}

.playlist-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.playlist-action-btn:hover {
  background: var(--background-600);
  color: var(--text-100);
  transform: scale(1.05);
}

/* Modern Artist Grid */
.modern-artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
  gap: var(--space-lg);
}

.modern-artist-card {
  background: var(--background-400);
  border: 0.0625rem solid var(--border-200);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.modern-artist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modern-artist-card:hover {
  background: var(--background-500);
  border-color: var(--border-accent);
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.modern-artist-card:hover::before {
  opacity: 0.05;
}

.artist-artwork-container {
  position: relative;
  margin-bottom: var(--space-lg);
}

.artist-avatar-image {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.modern-artist-card:hover .artist-avatar-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-2xl);
}

.artist-gradient-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 0%, var(--accent-primary) 100%);
  opacity: 0;
  transition: all var(--transition-base);
}

.modern-artist-card:hover .artist-gradient-overlay {
  opacity: 0.1;
}

.artist-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  opacity: 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(0.25rem);
}

.modern-artist-card:hover .artist-play-overlay {
  opacity: 1;
}

.artist-play-btn {
  width: 3rem;
  height: 3rem;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.artist-play-btn:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.artist-content {
  margin-bottom: var(--space-md);
}

.artist-name-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.artist-label {
  font-size: 0.85rem;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.0312rem;
  font-weight: 500;
}

.artist-actions {
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modern-artist-card:hover .artist-actions {
  opacity: 1;
}

.artist-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--background-600);
  border: 0.0625rem solid var(--border-200);
  border-radius: 50%;
  color: var(--text-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.artist-action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
  transform: scale(1.1);
}

.artist-follow-btn.following {
  background: var(--accent-success);
  border-color: var(--accent-success);
  color: var(--text-on-accent);
}

/* Favorite Songs (same style as recent tracks but with heart active) */
.favorite-tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modern-favorite-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--background-400);
  border: 0.0625rem solid var(--border-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.modern-favorite-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-danger), var(--accent-pink));
  opacity: 0.02;
  transition: opacity var(--transition-fast);
}

.modern-favorite-item:hover {
  background: var(--background-500);
  border-color: var(--border-accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.modern-favorite-item:hover::before {
  opacity: 0.05;
}

.favorite-artwork-container {
  position: relative;
  flex-shrink: 0;
}

.favorite-artwork {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.favorite-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(0.25rem);
}

.modern-favorite-item:hover .favorite-play-overlay {
  opacity: 1;
}

.favorite-play-btn {
  width: 2rem;
  height: 2rem;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.favorite-play-btn:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.favorite-content {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorite-main-info {
  flex: 1;
  min-width: 0;
}

.favorite-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.favorite-artist-text {
  font-size: 0.85rem;
  color: var(--text-300);
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-artist-text:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.favorite-meta {
  margin-right: var(--space-md);
}

.favorite-duration {
  font-size: 0.8rem;
  color: var(--text-400);
  font-variant-numeric: tabular-nums;
}

.favorite-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-favorite-item:hover .favorite-actions {
  opacity: 1;
}

.favorite-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.favorite-action-btn:hover {
  background: var(--background-600);
  color: var(--text-100);
  transform: scale(1.05);
}

.favorite-heart-btn {
  color: var(--accent-danger);
  opacity: 1;
}

.favorite-heart-btn:hover {
  color: var(--accent-danger-hover);
  background: rgba(239, 68, 68, 0.1);
}

.favorite-heart-btn.active svg {
  fill: currentColor;
}

/* Responsive Design */
@media (max-width: 48rem) {
  .modern-artist-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    gap: var(--space-md);
  }
  
  .modern-artist-card {
    padding: var(--space-md);
  }
  
  .artist-avatar-image {
    width: 5rem;
    height: 5rem;
  }
  
  .artist-play-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .modern-track-item,
  .modern-playlist-card,
  .modern-favorite-item {
    padding: var(--space-sm) var(--space-md);
  }
  
  .track-artwork,
  .favorite-artwork {
    width: 3rem;
    height: 3rem;
  }
  
  .playlist-icon-wrapper {
    width: 3rem;
    height: 3rem;
  }
  
  .track-actions,
  .playlist-actions,
  .favorite-actions {
    opacity: 1; /* Always visible on mobile */
  }
}

@media (max-width: 30rem) {
  .modern-artist-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: var(--space-sm);
  }
  
  .track-content,
  .favorite-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .track-meta,
  .favorite-meta {
    margin-right: 0;
    align-self: flex-end;
  }
}

/* Animation delays preserved from original */
.modern-track-item:nth-child(1),
.modern-playlist-card:nth-child(1),
.modern-artist-card:nth-child(1),
.modern-favorite-item:nth-child(1) { animation-delay: 0.1s; }

.modern-track-item:nth-child(2),
.modern-playlist-card:nth-child(2),
.modern-artist-card:nth-child(2),
.modern-favorite-item:nth-child(2) { animation-delay: 0.2s; }

.modern-track-item:nth-child(3),
.modern-playlist-card:nth-child(3),
.modern-artist-card:nth-child(3),
.modern-favorite-item:nth-child(3) { animation-delay: 0.3s; }

.modern-track-item:nth-child(4),
.modern-playlist-card:nth-child(4),
.modern-artist-card:nth-child(4),
.modern-favorite-item:nth-child(4) { animation-delay: 0.4s; }

.modern-track-item:nth-child(5),
.modern-playlist-card:nth-child(5),
.modern-artist-card:nth-child(5),
.modern-favorite-item:nth-child(5) { animation-delay: 0.5s; }

.modern-track-item:nth-child(6),
.modern-playlist-card:nth-child(6),
.modern-artist-card:nth-child(6),
.modern-favorite-item:nth-child(6) { animation-delay: 0.6s; }
</style>