/* RESPONSIVE DESIGN */
/* 2K / 2560px Desktop */
@media screen and (min-width: 2560px) {

  .app {
    grid-template-columns: 400px 1fr;
  }

  .sidebar {
    width: 425px;
    min-width: 425px;
  }

  .sidebar-menu i {
    font-size: 40px;
    padding: 10px;
  }

  .sidebar-menu span {
    font-size: 35px;
  }

  .logo-left i {
    font-size: 50px;
    padding: 14px;
  }

  .logo-left span {
    font-size: 45px;
  }

  .main-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 35px;
    padding-top: 0;
    padding-bottom: 120px;
  }

  .header {
    max-width: 100%;
    padding: 28px 35px;
  }

  .search-box {
    width: 100%;
    max-width: 80%;
    font-size: 34px;
    padding: 45px;
  }

  .search-box input {
    width: 100%;
    max-width: 80%;
    font-size: 34px;
  }

  .header-buttons button {
    font-size: 35px;
  }

  .hero {
    height: 45vh;
    padding: 60px;
    gap: 60px;
  }

  .hero-tag {
    font-size: 25px;
  }

  .hero h1 {
    font-size: 70px;
  }

  .hero p {
    max-width: 800px;
    font-size: 25px;
  }

  .hero-play, .hero-explore {
    font-size: 25px;
  }

  .music-circle {
    width: 260px;
    height: 260px;
  }

  .music-circle i {
    font-size: 120px;
  }

  .section-header h2 {
    font-size: 50px;
  }

  .section-header button {
    font-size: 30px;
  }

  .album-grid,
  #recentAlbums {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .album-card {
    padding: 20px;
    height: 530px;
  }

  .album-image img {
    height: 350px;
    object-fit: cover;
  }

  .album-image button {
    font-size: 30px;
    padding: 40px;
  }

  .album-card h3 {
    font-size: 35px;
  }

  .album-card p {
    font-size: 20px;
  }

  .playlist-title {
    font-size: 35px;
    padding: 20px;
  }

  .playlist-heading i {
    margin: 10px;
  }

  #createPlaylistBtn i {
    font-size: 30px;
  }

  #emptyPlaylist {
    font-size: 35px;
  }

  #emptyPlaylist p {
    font-size: 18px;
  }

  .song-item {
    padding: 18px;
    font-size: 25px;
  }

  .song-right button {
    font-size: 28px;
  }

  .song-time {
    font-size: 22px;
  }

  .music-player {
    height: 150px;
    padding: 0 30px;
  }

  .player-center span {
    font-size: 25px;
    width: 10px;
    height: 10px;
  }

  .player-controls button {
    font-size: 30px;
  }

  .player-left img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }

  .player-info span {
    font-size: 30px;
  }

  .player-info small {
    font-size: 20px;
  }

  .volume-slider {
    width: 150px;
  }

  .queue-panel {
    width: 450px;
  }

  .queue-header h3 {
    font-size: 35px;
  }

  .queue-title {
    font-size: 35px;
  }

  .queue-artist {
    font-size: 25px;
  }

  .queue-song {
    padding: 18px;
  }

  .queue-song i {
    font-size: 20px;
  }

  .empty-state i {
    font-size: 55px;
  }

  .empty-state h3 {
    font-size: 30px;
  }

  .empty-state p {
    font-size: 20px;
  }
}

/* 2K HD Display */
@media screen and (max-width: 1920px) {
  .search-box {
    width: 100%;
    max-width: 75%;
  }

  .search-box input {
    width: 100%;
  }
}

/* Tablet (1024px) */
@media screen and (max-width: 1024px) {
  /* APP LAYOUT */
  .app {
    grid-template-columns: 240px 1fr;
  }

  .sidebar {
    width: 240px;
    min-width: 240px;
  }

  .menu-toggle {
    display: flex;
  }

  .content-wrapper {
    width: 100%;
  }

  #menuToggle {
    display: none;
  }

  .main-content {
    padding: 20px;
    padding-top: 0;
    padding-bottom: 120px;
  }

  /* HEADER */
  .header {
    padding: 18px 20px;
    gap: 20px;
  }

  .search-box {
    width: 100%;
    max-width: 70%;
  }

  .header-buttons {
    gap: 12px;
  }

  .signup-btn,
  .login-btn {
    padding: 10px 18px;
  }

  /* HERO */
  .hero {
    padding: 35px;
    gap: 35px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
    max-width: 420px;
  }

  .music-circle {
    width: 210px;
    height: 210px;
  }

  .music-circle i {
    font-size: 90px;
  }

  /* ALBUMS */
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
  }

  .album-card {
    padding: 15px;
  }

  /* PLAYLIST */
  .playlist-title {
    padding: 15px;
  }

  .song-item {
    padding: 15px;
  }

  .song-left {
    gap: 14px;
  }

  /* PLAYER */
  .music-player {
    height: 85px;
    padding: 0 18px;
  }

  .player-left {
    width: 30%;
  }

  .player-center {
    width: 42%;
  }

  .player-right {
    width: 28%;
  }

  .player-controls {
    gap: 14px;
  }

  .player-controls button {
    font-size: 17px;
  }

  .player-left img {
    width: 55px;
    height: 55px;
  }

  .volume-slider {
    width: 90px;
  }

  /* QUEUE */
  .queue-panel {
    width: 320px;
  }
}

/* Small Tablet (768px) */
@media screen and (max-width: 768px) {
  /* APP LAYOUT */
  .app {
    /* grid-template-columns: 1fr; */
    display: block;
  }

  .content-wrapper {
    width: 100%;
  }

  .main-content {
    width: 100%;
  }

  .logo {
    justify-content: space-between;
    padding: 22px;
  }

  .sidebar-menu {
    flex-direction: column;
    padding: 15px;
    gap: 8px;
  }

  .menu-item {
    justify-content: flex-start;
  }

  .menu-item span {
    display: flex;
  }

  .sidebar-playlist {
    display: flex;
  }

    #menuToggle {
    display: flex;
  }

  /* MAIN */
  .main-content {
    padding: 15px;
    padding-top: 0;
    padding-bottom: 120px;
  }

  /* HEADER */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 18px 20px;
  }

  .search-box {
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 48px;
  }

  .search-box input {
    font-size: 14px;
  }

  .header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .signup-btn,
  .login-btn {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 30px;
  }

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .music-circle {
    width: 180px;
    height: 180px;
  }

  .music-circle i {
    font-size: 80px;
  }

  /* ALBUM GRID */
  .album-grid,
  #recentAlbums {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* PLAYER */
  .music-player {
    padding: 10px 15px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .player-left,
  .player-center,
  .player-right {
    width: 100%;
  }

  .player-left {
    justify-content: center;
  }

  .player-center {
    order: 3;
  }

  .player-right {
    justify-content: center;
  }

  .progress-wrapper {
    width: 100%;
  }

  .volume-container {
    width: 160px;
  }

  .volume-slider {
    width: 100%;
  }

  /* QUEUE */
  .queue-panel {
    width: 100%;
    right: -100%;
  }

  .queue-panel.active {
    right: 0;
  }
}

/* =========================
   MOBILE SIDEBAR
========================= */

@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    min-width: 300px;
    height: 100vh;
    background: #121212;
    z-index: 9999;
    transition: left 0.35s ease;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  #closeSidebar {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header {
    gap: 15px;
  }

  .search-box {
    flex: 1;
    max-width: none;
  }

  .header-buttons {
    display: flex;
    gap: 10px;
  }

  .signup-btn,
  .login-btn {
    padding: 10px 16px;
    white-space: nowrap;
  }
}

/* ===========================
   425px
=========================== */

@media (max-width: 425px) {
  .header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .search-box {
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    padding: 0 12px;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .header-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .signup-btn {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  .login-btn {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 375px) {
  .login-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .search-box {
    width: auto;
    max-width: none;
    min-width: 0;
    height: 42px;
    font-size: 8px;
  }

  .search-box input {
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .search-box {
    display: flex;
    font-size: 18px;
    padding: 10px;
  }

  .header {
    justify-content: space-between;
  }
}
