


@media (max-width: 1024px) {
  :root {
    --player-height: 96px;
  }
  
  #main-viewport {
    padding: 24px 32px 130px 32px;
  }
  
  .header {
    padding: 0 32px;
  }
  
  .hero-section {
    height: 320px;
    padding: 32px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-content {
    width: 60%;
  }
  
  .hero-image-wrapper {
    width: 50%;
  }
  
  .quick-search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .suggestions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


@media (max-width: 768px) {
  :root {
    --sidebar-width-collapsed: 0px;
    --player-height: 80px;
  }
  
  
  .suggestions-grid {
    display: grid !important;
    grid-template-rows: repeat(4, auto) !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85% !important;
    gap: 12px 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding: 4px 16px 16px 4px !important;
    margin: 0 -16px !important;
    scrollbar-width: none !important;
  }
  .suggestions-grid::-webkit-scrollbar {
    display: none !important;
  }
  .suggestion-item {
    scroll-snap-align: start !important;
    width: 100% !important;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 180px !important; 
    box-shadow: 15px 0 40px rgba(0,0,0,0.8);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    background-color: rgba(10, 10, 12, 0.96) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar .sidebar-text {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }
  
  
  .content {
    margin-left: 0;
  }
  
  #main-viewport {
    padding: 16px 16px 110px 16px;
  }
  
  .header {
    padding: 0 16px;
  }
  
  
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 12px;
  }
  
  .hero-section {
    height: auto;
    min-height: 280px;
    flex-direction: column;
    padding: 24px;
    align-items: flex-start;
    justify-content: flex-end;
  }
  
  .hero-content {
    width: 100%;
    margin-top: 100px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-image-wrapper {
    width: 100%;
    height: 100%;
  }
  
  .hero-gradient-overlay {
    background: linear-gradient(to top, var(--bg-surface) 30%, rgba(10, 10, 10, 0.6) 70%, rgba(10, 10, 10, 0.2) 100%);
  }
  
  
  .player {
    padding: 0 16px;
  }
  
  .now {
    width: 45%;
    min-width: 0;
  }
  
  #player-art {
    width: 44px;
    height: 44px;
  }
  
  .player-center {
    width: 50%;
  }
  
  .player-tools {
    display: none; 
  }
  
  .controls button:not(.main-play):not(#player-prev-btn):not(#player-next-btn) {
    display: none; 
  }
  
  .controls {
    gap: 12px;
  }
  
  .progress {
    display: none; 
  }
  
  
  .socials-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .detail-title {
    font-size: 32px;
  }
}


@media (max-width: 480px) {
  .quick-search-grid {
    grid-template-columns: 1fr;
  }
  
  .user-playlists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .music-card {
    width: 140px;
  }
  
  .artist-card {
    width: 140px;
  }
  
  .artist-card-artwork {
    width: 110px;
    height: 110px;
  }
}


@media (max-width: 768px) {
  .fullscreen-player {
    padding: max(12px, env(safe-area-inset-top, 12px)) 16px max(16px, env(safe-area-inset-bottom, 16px)) 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .fs-header {
    height: 44px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .fs-header-tools {
    gap: 6px !important;
  }

  .fs-header-tools button {
    padding: 6px !important;
  }

  .fs-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-top: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
  }

  .fs-left {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
  }

  
  .fs-art-wrapper {
    flex: 1 !important;
    width: min(calc(100vw - 32px), 40vh) !important;
    height: min(calc(100vw - 32px), 40vh) !important;
    max-width: 380px !important;
    max-height: 380px !important;
    margin: auto auto !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: none !important;
  }

  .fs-art-wrapper img {
    border-radius: 16px !important;
  }

  .fs-art-wrapper.video-mode {
    flex: 1 !important;
    aspect-ratio: 16 / 9 !important;
    width: calc(100vw - 32px) !important;
    max-width: 380px !important;
    height: auto !important;
    max-height: 220px !important;
    margin: auto auto !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: none !important;
  }

  
  .fs-meta {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  #fs-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
    margin: 0 auto !important;
    order: 1;
  }

  .title-arrow,
  #fs-title .title-arrow {
    display: none !important;
  }

  #fs-artist {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 4px auto 0 auto !important;
    order: 2;
  }

  
  .fs-action-row {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 12px !important;
    justify-content: center !important;
  }

  .fs-action-pill {
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 24px !important;
    gap: 8px !important;
  }

  .fs-action-pill i {
    width: 18px !important;
    height: 18px !important;
  }

  
  .fs-progress-wrapper {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
  }

  .fs-progress-time small {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  
  .fs-controls {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .fs-controls button {
    width: 48px !important;
    height: 48px !important;
  }

  .fs-controls button i {
    width: 24px !important;
    height: 24px !important;
  }

  .fs-controls button.fs-play-btn {
    width: 64px !important;
    height: 64px !important;
  }

  .fs-controls button.fs-play-btn i {
    width: 28px !important;
    height: 28px !important;
  }

  .fs-bottom-bar-indicator {
    display: block !important;
    width: 40px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    margin: 8px auto 0 auto !important;
    flex-shrink: 0 !important;
  }

  .fs-art-wrapper img {
    border-radius: 16px !important;
  }



  
  .fs-action-row {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 4px 0 !important;
    justify-content: center !important;
  }

  
  .fs-progress-wrapper {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
  }

  
  .fs-controls {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .fs-controls button.fs-play-btn {
    width: 60px !important;
    height: 60px !important;
  }

  
  .mobile-lyrics-screen {
    display: none !important;
  }

  .mobile-lyrics-screen.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    background: #0f0f0f !important;
    padding-top: max(20px, env(safe-area-inset-top, 20px)) !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    animation: slideUpMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-lyrics-screen .mobile-lyrics-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-bottom: 16px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
  }

  .mobile-lyrics-screen .mobile-lyrics-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px !important;
  }

  .mobile-lyrics-screen .mobile-lyrics-close-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: none !important;
    color: #ffffff !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
  }

  .mobile-lyrics-screen .mobile-lyrics-close-btn:active {
    background: rgba(255, 255, 255, 0.25) !important;
  }

  .mobile-lyrics-container {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 4px 40px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .mobile-lyrics-container::-webkit-scrollbar {
    display: none !important;
  }

  .mobile-lyrics-container .fs-lyric-line {
    font-size: 20px !important;
    text-align: left !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
  }

  .mobile-lyrics-container .fs-lyric-line.active {
    color: #ffffff !important;
    font-size: 22px !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
  }

  
  .fs-right {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .fullscreen-player {
    padding: 12px 14px 20px 14px !important;
  }

  .fs-art-wrapper {
    width: calc(100vw - 28px) !important;
    height: calc(100vw - 28px) !important;
  }

  #fs-title {
    font-size: 20px !important;
  }

  .fs-lyric-line {
    font-size: 16px !important;
  }

  .fs-lyric-line.active {
    font-size: 18px !important;
  }
}


@media (max-width: 1024px) {
  .show-more-modal {
    padding: 48px 32px;
  }
  .show-more-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .show-more-modal {
    padding: 32px 20px;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .show-more-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .show-more-title {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .show-more-modal {
    padding: 24px 16px;
  }
  .show-more-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .show-more-title {
    font-size: 20px !important;
  }
}

