@layer utilities {
  .glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
  }
  .glass-btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
  }
  .glass-btn:hover {
    background: rgba(255, 255, 255, 255);
    transform: translateY(-2px);
  }
  .glass-btn:active {
    transform: translateY(0);
  }
  .text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, #06b6d4, #4f46e5, #9333ea);
  }
  .vinyl-spin {
    animation: spin 20s linear infinite;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .pulse-ring {
    position: relative;
  }
  .pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    z-index: -1;
    animation: pulse-ring 2s infinite;
  }
  @keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
  }
  .site-list-enter {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
  .site-list-enter.active {
    max-height: 300px;
    opacity: 1;
  }
  /* 时间显示样式 */
  .time-display {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
  .time-segment {
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
  }
  /* 播放列表样式 */
  .playlist-container {
    position: relative;
    width: 100%;
  }
  .playlist-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
  }
  .playlist-trigger:hover {
    color: #06b6d4;
  }
  .playlist-trigger:hover i {
    transform: translateX(-3px);
  }
  .playlist-trigger i {
    transition: transform 0.3s ease;
    margin-left: 5px;
  }
  .playlist-items {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 0.5rem;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    max-height: 200px;
    width: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  }
  /* 自定义滚动条 */
  .playlist-items::-webkit-scrollbar {
    width: 4px;
  }
  .playlist-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }
  .playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
  .playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .playlist-container:hover .playlist-items,
  .playlist-items:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .playlist-item {
    transition: all 0.3s ease;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
  }
  .playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }
  .playlist-item.active {
    background: rgba(6, 182, 212, 0.2);
    border-left-color: #06b6d4;
  }
  .playlist-item-number {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
    font-size: 0.8rem;
  }
  .playlist-item-info {
    flex: 1;
    min-width: 0;
  }
  .playlist-item-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
  }
  .playlist-item:hover .playlist-item-title {
    color: #06b6d4;
  }
  .playlist-item-artist {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .playlist-item-duration {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
  }
  .playlist-header {
    padding: 0.6rem 1rem 0.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.3rem;
  }
  .playlist-footer {
    padding: 0.3rem 1rem 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.3rem;
    text-align: right;
  }
  /* 烟花粒子效果 */
  .firework-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translateZ(0);
    will-change: transform, opacity;
  }
  /* 进度条和音量条优化 */
  .progress-container {
    position: relative;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s ease;
  }
  .progress-container:hover {
    height: 6px;
  }
  .progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
  }
  .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, #06b6d4, #4f46e5);
    border-radius: inherit;
    transition: width 0.1s linear;
  }
  .progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .progress-container:hover .progress-handle {
    opacity: 1;
  }
  .progress-container:hover .progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
  }
  /* 鼠标样式 - 自定义图片版本 */
  body {
    cursor: url('https://cdn.cursor.style/collections/3-multfilmy/3069-pompompurin-cursor.svg') 12 12, auto;
  }
  a, button, .playlist-item, .progress-container {
    cursor: url('https://cdn.cursor.style/collections/3-multfilmy/3069-pompompurin-pointer.svg') 12 12, pointer;
  }
}