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

    :root {
      --primary-color: #0f9d58;
      --primary-dark: #0b7a43;
      --bg-dark: #ffffff;
      --bg-secondary: #f6f7f8;
      --bg-tertiary: #eceff1;
      --text-primary: #1a1a1a;
      --text-secondary: #666666;
      --text-tertiary: #999999;
      --border-color: #e4e6e8;
      --accent-purple: #8b5cf6;
      --accent-pink: #e0357f;
      --accent-cyan: #0891b2;
      --success: #0f9d58;
      --warning: #e08600;
      --error: #d9304a;
    }

    body {
      font-family: 'Pretendard', sans-serif;
      background: var(--bg-dark);
      color: var(--text-primary);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* ===== HEADER ===== */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-color);
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 20px;
      flex: 0 0 auto;
    }

    .logo {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      font-weight: 700;
      color: var(--primary-dark);
      letter-spacing: -1px;
    }

    .search-container {
      flex: 1;
      max-width: 400px;
    }

    .search-container input {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid var(--border-color);
      outline: none;
      border-radius: 999px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 14px;
      transition: all 0.3s ease;
    }

    .search-container input:focus {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.12);
    }

    .search-container input::placeholder {
      color: var(--text-tertiary);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
    }

    .nav-btn {
      height: 40px;
      padding: 0 16px;
      border: none;
      border-radius: 999px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-btn i {
      font-size: 14px;
    }

    .nav-btn:hover {
      background: var(--bg-tertiary);
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-btn.active {
      background: var(--primary-color);
      color: #fff;
    }

    .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: var(--accent-pink);
      color: white;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
    }

    /* ===== AUTH / ADMIN ===== */
    .auth-area {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .google-login-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .google-login-btn:hover {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
    }

    .user-chip {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }

    .user-name {
      font-size: 13px;
      color: var(--text-secondary);
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #adminBtn.nav-btn {
      background: var(--primary-color);
      color: #fff;
    }

    .admin-form label {
      display: block;
      margin-bottom: 16px;
      font-size: 13px;
      color: var(--text-secondary);
      font-weight: 600;
    }

    .admin-form input,
    .admin-form select {
      width: 100%;
      margin-top: 6px;
      padding: 12px 14px;
      border: 1px solid var(--border-color);
      outline: none;
      border-radius: 10px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 14px;
      transition: all 0.3s ease;
    }

    .admin-form input:focus,
    .admin-form select:focus {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
    }

    .admin-form button[type="submit"] {
      margin-top: 8px;
    }

    .admin-form-msg {
      margin-top: 12px;
      font-size: 13px;
      color: var(--error);
      min-height: 18px;
    }

    /* ===== ADMIN MODAL: 음원/배너/공지 탭 ===== */
    .admin-modal-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
    }

    .admin-modal-tab-btn {
      padding: 8px 16px;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .admin-modal-tab-btn.active {
      background: var(--primary-color);
      border-color: var(--primary-color);
      color: #fff;
    }

    .admin-section {
      display: none;
    }

    .admin-section.active {
      display: block;
    }

    .admin-form textarea {
      width: 100%;
      margin-top: 6px;
      padding: 12px 14px;
      border: 1px solid var(--border-color);
      outline: none;
      border-radius: 10px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      resize: vertical;
      min-height: 70px;
      transition: all 0.3s ease;
    }

    .admin-form textarea:focus {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
    }

    .admin-form small {
      display: block;
      margin-top: 4px;
      font-weight: 400;
      color: var(--text-tertiary);
      font-size: 12px;
    }

    .admin-list {
      margin-top: 24px;
      border-top: 1px solid var(--border-color);
      padding-top: 20px;
    }

    .admin-list-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }

    .admin-list-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      margin-bottom: 8px;
    }

    .admin-list-item img {
      width: 48px;
      height: 27px;
      object-fit: cover;
      border-radius: 4px;
      background: var(--bg-tertiary);
      flex-shrink: 0;
    }

    .admin-list-item-info {
      flex: 1;
      min-width: 0;
    }

    .admin-list-item-title {
      font-size: 13px;
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .admin-list-item-sub {
      font-size: 11px;
      color: var(--text-tertiary);
    }

    .admin-list-item-delete {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 50%;
      background: var(--bg-tertiary);
      color: var(--error);
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .admin-list-item-delete:hover {
      background: var(--error);
      color: #fff;
    }

    .admin-list-empty {
      font-size: 12px;
      color: var(--text-tertiary);
    }

    .admin-list-search {
      width: 100%;
      margin-bottom: 12px;
      padding: 10px 14px;
      border: 1px solid var(--border-color);
      outline: none;
      border-radius: 10px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 13px;
      transition: all 0.3s ease;
    }

    .admin-list-search:focus {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
    }

    .admin-form-btn-row {
      display: flex;
      gap: 8px;
    }

    .admin-form-btn-row .control-btn {
      flex: 1;
    }

    .admin-list-item-edit {
      background: var(--bg-tertiary);
      color: var(--primary-color);
    }

    .admin-list-item-edit:hover {
      background: var(--primary-color);
      color: #fff;
    }

    /* ===== 공지 배너 ===== */
    .announcement-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      padding: 10px 24px;
      font-size: 13px;
      color: var(--text-primary);
    }

    .announcement-bar i.fa-bullhorn {
      color: var(--primary-color);
      flex-shrink: 0;
    }

    .announcement-bar-text {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .announcement-bar-close {
      border: none;
      background: none;
      color: var(--text-tertiary);
      cursor: pointer;
      font-size: 14px;
      flex-shrink: 0;
    }

    .announcement-bar-close:hover {
      color: var(--text-primary);
    }

    /* ===== MOBILE BOTTOM NAV (Spotify 스타일) ===== */
    .mobile-bottom-nav {
      display: none;
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      z-index: 1001;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--border-color);
      padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
      justify-content: space-around;
      align-items: center;
    }

    .bn-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      background: none;
      border: none;
      color: var(--text-tertiary);
      font-size: 10px;
      font-weight: 600;
      padding: 6px 2px;
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .bn-item i {
      font-size: 18px;
    }

    .bn-item img.bn-avatar {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      object-fit: cover;
    }

    .bn-item.active {
      color: var(--primary-color);
      transform: translateY(-2px);
    }

    /* ===== PROFILE MODAL 내부 요소 ===== */
    .profile-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
    }

    .profile-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }

    .profile-name {
      font-weight: 700;
      font-size: 16px;
    }

    .profile-admin-badge {
      color: var(--primary-color);
      font-size: 12px;
      font-weight: 700;
      margin-top: 2px;
    }

    .profile-btn {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: none;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 12px;
      transition: all 0.3s ease;
    }

    .profile-btn.primary {
      background: var(--primary-color);
      color: #fff;
    }

    .profile-btn.primary:hover {
      background: var(--primary-dark);
    }

    .profile-btn.secondary {
      background: var(--bg-tertiary);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    .profile-btn.secondary:hover {
      border-color: var(--primary-color);
    }

    .profile-btn.google {
      background: #fff;
      color: #1f1f1f;
      border: 1px solid var(--border-color);
    }

    .profile-btn.google:hover {
      background: var(--bg-tertiary);
    }

    .profile-btn.danger {
      background: none;
      color: var(--error);
      border: 1px solid var(--error);
    }

    .profile-btn.danger:hover {
      background: var(--error);
      color: #fff;
    }

    .profile-tos-link {
      display: block;
      width: 100%;
      text-align: center;
      padding: 10px;
      background: none;
      border: none;
      color: var(--text-tertiary);
      font-size: 12px;
      cursor: pointer;
    }

    .profile-tos-link:hover {
      color: var(--primary-color);
    }

    /* ===== MAIN CONTAINER ===== */
    main {
      padding: 24px;
      padding-bottom: 220px;
      max-width: 1400px;
      margin: 0 auto;
    }

    /* ===== 배너 캐러셀 ===== */
    .banner-section {
      margin-bottom: 32px;
    }

    .banner-track {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding-bottom: 4px;
    }

    .banner-track::-webkit-scrollbar {
      height: 6px;
    }

    .banner-card {
      position: relative;
      flex: 0 0 auto;
      width: min(560px, 82vw);
      aspect-ratio: 16 / 9;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      border: 1px solid var(--border-color);
      scroll-snap-align: start;
      background: var(--bg-secondary);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* 배너가 1개뿐일 때는 캐러셀 폭 대신 컨테이너를 양쪽 끝까지 꽉 채움 */
    .banner-track.single-banner {
      overflow-x: visible;
    }

    .banner-track.single-banner .banner-card {
      width: 100%;
      aspect-ratio: 21 / 6;
    }

    @media (max-width: 640px) {
      .banner-track.single-banner .banner-card {
        aspect-ratio: 16 / 9;
      }
    }

    .banner-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

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

    .banner-card-caption {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 16px;
      background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
      color: #fff;
      font-weight: 700;
      font-size: clamp(1.5rem, 6vw, 5rem);
    }

    .playlist-back-btn {
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-secondary);
      border-radius: 999px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      margin-left: auto;
      transition: all 0.2s ease;
    }

    .playlist-back-btn:hover {
      color: var(--text-primary);
      border-color: var(--primary-color);
    }

    /* ===== TABS ===== */
    .tabs {
      display: flex;
      gap: 12px;
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 16px;
    }

    .tab-btn {
      padding: 12px 24px;
      border: none;
      background: none;
      color: var(--text-secondary);
      cursor: pointer;
      font-size: 15px;
      font-weight: 600;
      transition: all 0.3s ease;
      position: relative;
    }

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

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

    .tab-btn.active::after {
      content: '';
      position: absolute;
      bottom: -16px;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--primary-color);
      border-radius: 999px;
    }

    /* ===== SECTION TITLE ===== */
    .tab-content {
      display: none;
    }

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

    .section-title {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 28px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .section-title i {
      color: var(--primary-color);
    }

    /* ===== MUSIC GRID ===== */
    .music-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
      animation: fadeIn 0.5s ease;
    }

    /* ===== 홈 화면 섹션 (인기차트 / 최근 들은 곡 / 추천) ===== */
    .home-row-section {
      margin-bottom: 40px;
    }

    .home-row-section .section-title {
      font-size: 22px;
      margin-bottom: 16px;
    }

    .music-row {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding-bottom: 8px;
      animation: fadeIn 0.5s ease;
    }

    .music-row::-webkit-scrollbar {
      height: 6px;
    }

    .music-row .music-card {
      flex: 0 0 180px;
      width: 180px;
    }

    .home-row-empty {
      color: var(--text-tertiary);
      font-size: 13px;
      padding: 12px 0;
    }

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

    .music-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      position: relative;
      group: card;
    }

    .music-card:hover {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .music-card-image {
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      display: block;
      background: var(--border-color);
      position: relative;
    }

    .music-card-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: all 0.35s ease;
    }

    .music-card:hover .music-card-overlay {
      opacity: 1;
    }

    .music-card-play-icon {
      width: 56px;
      height: 56px;
      background: var(--primary-color);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 22px;
      transform: scale(0.8);
      transition: transform 0.3s ease;
    }

    .music-card:hover .music-card-play-icon {
      transform: scale(1);
    }

    /* ===== 즐겨찾기 버튼 옆 카운트 뱃지 (카드에 마우스를 올렸을 때만 표시) ===== */
    .music-card-fav-count {
      position: absolute;
      top: 8px;
      left: 44px;
      height: 32px;
      display: flex;
      align-items: center;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
      white-space: nowrap;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .music-card:hover .music-card-fav-count {
      opacity: 1;
    }

    .music-info {
      padding: 16px;
    }

    .music-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .music-artist {
      color: var(--text-secondary);
      font-size: 13px;
      margin-bottom: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .music-card-actions {
      display: flex;
      gap: 8px;
    }

    .card-action-btn {
      flex: 1;
      padding: 10px;
      border: none;
      border-radius: 8px;
      background: var(--bg-tertiary);
      color: var(--text-primary);
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .card-action-btn:hover {
      background: var(--primary-color);
      color: #fff;
      transform: scale(1.02);
    }

    .card-action-btn.favorite.active {
      background: var(--accent-pink);
      color: white;
    }

    /* ===== 카드 위 '재생목록에 추가' 버튼 ===== */
    .music-card-add-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.92);
      color: #111;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      transition: all 0.2s ease;
      z-index: 2;
    }

    .music-card-add-btn:hover {
      background: var(--primary-color);
      color: #fff;
      transform: scale(1.08);
    }

    /* ===== 카드 위 '즐겨찾기' 버튼 ===== */
    .music-card-fav-btn {
      position: absolute;
      top: 8px;
      left: 8px;
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.92);
      color: #111;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      transition: all 0.2s ease;
      z-index: 2;
    }

    .music-card-fav-btn:hover {
      background: var(--accent-pink, #ff4d6d);
      color: #fff;
      transform: scale(1.08);
    }

    .music-card-fav-btn.active {
      background: var(--accent-pink, #ff4d6d);
      color: #fff;
    }

    /* ===== 내 재생목록 ===== */
    .my-playlist-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
    }

    .my-playlist-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .my-playlist-card:hover {
      transform: translateY(-6px);
      border-color: var(--primary-color);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .my-playlist-card-thumbs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      aspect-ratio: 1/1;
      background: var(--bg-tertiary);
    }

    .my-playlist-card-thumbs.single {
      grid-template-columns: 1fr;
    }

    .my-playlist-card-thumbs img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .my-playlist-card-empty {
      aspect-ratio: 1/1;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-tertiary);
      font-size: 36px;
      background: var(--bg-tertiary);
    }

    .my-playlist-card-info {
      padding: 14px 16px;
    }

    .my-playlist-card-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 4px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .my-playlist-card-count {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .playlist-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }

    .playlist-back-btn.danger {
      color: var(--error);
      border-color: var(--error);
    }

    .playlist-back-btn.danger:hover {
      background: var(--error);
      color: #fff;
    }

    .playlist-picker-toggle.active {
      background: var(--success);
      color: #fff;
    }

    /* ===== EMPTY STATE ===== */
    .empty-state {
      text-align: center;
      padding: 80px 40px;
      color: var(--text-tertiary);
    }

    .empty-state i {
      font-size: 64px;
      margin-bottom: 20px;
      opacity: 0.5;
    }

    .empty-state p {
      font-size: 18px;
      margin-bottom: 10px;
    }

    /* ===== PLAYER ===== */
    .player {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--border-color);
      padding: 16px 24px;
      z-index: 999;
      display: flex;
      align-items: center;
      gap: 20px;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .player-cover {
      width: 72px;
      height: 72px;
      border-radius: 12px;
      object-fit: cover;
      background: var(--border-color);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      animation: playerPulse 0.5s ease;
    }

    @keyframes playerPulse {
      0% { transform: scale(0.95); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .player-info {
      min-width: 220px;
    }

    .player-title {
      font-weight: 700;
      font-size: 15px;
      margin-bottom: 6px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .player-artist {
      color: var(--text-secondary);
      font-size: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .controls {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .buttons {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .control-btn {
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 50%;
      background: var(--primary-color);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .control-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 12px rgba(15, 157, 88, 0.25);
    }

    .control-btn.secondary {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    .control-btn.secondary:hover {
      background: var(--bg-tertiary);
      border-color: var(--primary-color);
    }

    .control-btn.active {
      background: var(--accent-cyan);
      color: #fff;
    }

    /* 원형 아이콘 버튼(control-btn)을 폼 제출용 넓은 버튼으로 쓸 때 */
    .control-btn.wide {
      width: 100%;
      height: 48px;
      border-radius: 12px;
      padding: 0 20px;
      font-size: 14px;
      gap: 8px;
    }

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

    .time {
      width: 45px;
      text-align: center;
      font-size: 12px;
      color: var(--text-tertiary);
      font-weight: 500;
    }

    #progressBar {
      flex: 1;
      height: 4px;
      accent-color: var(--primary-color);
      cursor: pointer;
      border-radius: 999px;
      -webkit-appearance: none;
      appearance: none;
      background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) var(--value, 0%), var(--border-color) var(--value, 0%), var(--border-color) 100%);
    }

    #progressBar::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 12px;
      height: 12px;
      background: var(--primary-color);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(15, 157, 88, 0.35);
    }

    #progressBar::-moz-range-thumb {
      width: 12px;
      height: 12px;
      background: var(--primary-color);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(15, 157, 88, 0.35);
    }

    .volume-control {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
    }

    .volume-control .control-btn {
      width: 36px;
      height: 36px;
      font-size: 13px;
      flex-shrink: 0;
    }

    #volumeSlider {
      width: 100px;
      height: 4px;
      cursor: pointer;
      border-radius: 999px;
      -webkit-appearance: none;
      appearance: none;
      background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) var(--value, 100%), var(--border-color) var(--value, 100%), var(--border-color) 100%);
    }

    #volumeSlider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 12px;
      height: 12px;
      background: var(--primary-color);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(15, 157, 88, 0.35);
    }

    #volumeSlider::-moz-range-thumb {
      width: 12px;
      height: 12px;
      background: var(--primary-color);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(15, 157, 88, 0.35);
    }

    /* ===== MODAL (PC 기본값: 화면 중앙에 뜨는 일반 팝업) ===== */
    .modal-overlay {
      position: fixed;
      top: 50%;
      left: 50%;
      z-index: 20000;
      display: flex;
      flex-direction: column;
      width: min(560px, 92vw);
      max-height: 85vh;
      background: var(--bg-dark);
      border-radius: 20px;
      box-shadow: 0 0 0 100vmax rgba(10, 10, 15, 0.55), 0 30px 70px rgba(0, 0, 0, 0.3);
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, -46%) scale(0.96);
      transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    }

    .modal-overlay.show {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%) scale(1);
    }

    .modal-header {
      padding: 26px 24px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-shrink: 0;
    }

    .modal-title {
      font-size: 22px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .modal-title i {
      color: var(--primary-color);
      font-size: 24px;
    }

    .modal-subtitle {
      color: var(--text-secondary);
      font-size: 13px;
      margin-top: 6px;
    }

    .close-btn {
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 50%;
      background: var(--bg-secondary);
      color: var(--text-primary);
      cursor: pointer;
      font-size: 18px;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .close-btn:hover {
      background: var(--bg-tertiary);
      transform: scale(1.1);
      color: var(--primary-color);
    }

    .modal-content {
      flex: 1;
      overflow-y: auto;
      padding: 32px;
    }

    /* ===== TOS MODAL ===== */
    .tos-content {
      line-height: 1.8;
      color: var(--text-secondary);
    }

    .tos-content strong {
      color: var(--text-primary);
      display: block;
      margin-top: 20px;
      margin-bottom: 10px;
      font-size: 15px;
    }

    .tos-content p {
      margin-bottom: 12px;
    }

    /* ===== YOUTUBE PLAYER ===== */
    #youtubePlayer {
      position: fixed;
      right: 20px;
      bottom: 130px;
      width: 240px;
      height: 200px;
      border-radius: 12px;
      overflow: hidden;
      z-index: 9999;
      pointer-events: auto;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      animation: slideIn 0.4s ease 0.3s forwards;
    }

    #youtubePlayer iframe {
      width: 100%;
      height: 100%;
    }

    @keyframes slideIn {
      from {
        transform: translateX(300px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* ===== FOOTER INFO ===== */
    .footer-info {
      position: fixed;
      right: 24px;
      bottom: 80px;
      z-index: 10000;
      font-size: 11px;
      color: var(--text-tertiary);
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .tos-link {
      color: var(--text-secondary);
      text-decoration: none;
      cursor: pointer;
      background: none;
      border: none;
      font-size: 11px;
      transition: all 0.3s ease;
    }

    .tos-link:hover {
      color: var(--primary-color);
      text-decoration: underline;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1024px) {
      .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      }

      header {
        padding: 12px 16px;
        gap: 12px;
      }

      .search-container {
        max-width: none;
      }

      .logo {
        font-size: 22px;
      }
    }

    @media (max-width: 768px) {
      header {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
      }

      .header-left {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
      }

      .logo {
        font-size: 18px;
        white-space: nowrap;
      }

      .search-container {
        max-width: none;
        flex: 1;
        min-width: 0;
      }

      .search-container input {
        padding: 9px 14px;
        font-size: 13px;
      }

      /* 즐겨찾기/최근/약관/로그인 버튼은 하단 내비게이션으로 이동 */
      .header-right {
        display: none;
      }

      /* 상단 탭(모든 곡 / TOP CHART)도 하단 내비게이션(홈/차트)으로 대체 */
      .tabs {
        display: none;
      }

      .mobile-bottom-nav {
        display: flex;
      }

      .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
      }

      main {
        padding: 16px;
        padding-bottom: 190px;
      }

      /* 하단 미니 플레이어: 한 줄로 압축 (Spotify 모바일 스타일) */
      .player {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        gap: 12px;
        bottom: 58px;
      }

      .player-cover {
        width: 44px;
        height: 44px;
        border-radius: 8px;
      }

      .player-info {
        min-width: 0;
        flex: 1;
        text-align: left;
      }

      .controls {
        flex: 0 0 auto;
        gap: 0;
      }

      .progress-wrapper {
        display: none;
      }

      #shuffleBtn, #repeatBtn, .volume-control {
        display: none;
      }

      .buttons {
        gap: 6px;
      }

      .control-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
      }

      #youtubePlayer {
        width: 200px;
        height: 200px;
        bottom: 160px;
        right: 8px;
      }

      .footer-info {
        display: none;
      }

      /* 모바일: 화면 아래에서 위로 올라오는 팝업(바텀시트) */
      .modal-overlay {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 0 0 100vmax rgba(10, 10, 15, 0.55);
        transform: translateY(100%);
      }

      .modal-overlay.show {
        transform: translateY(0);
      }

      .modal-content {
        padding: 20px;
      }
    }

    @media (max-width: 480px) {
      .section-title {
        font-size: 22px;
      }

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

      .player-cover {
        width: 40px;
        height: 40px;
      }

      .player-title {
        font-size: 13px;
      }

      .player-artist {
        font-size: 11px;
      }

      .bn-item span {
        font-size: 9px;
      }

      .bn-item i {
        font-size: 16px;
      }

      .modal-header {
        padding: 20px 16px;
      }

      .modal-title {
        font-size: 22px;
      }

      .modal-content {
        padding: 16px;
      }
    }

    /* ===== SCROLLBAR ===== */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--border-color);
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-color);
    }
  
