@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --accent-color: #000000;
    --bg-color: #fcfcfc;
    --border-color: #f0f0f0;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #000000;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --progress-bg: rgba(0, 0, 0, 0.08);
    --btn-bg: rgba(255, 255, 255, 0.8);
    --btn-hover: rgba(0, 0, 0, 0.08);
    --playlist-bg: rgba(255, 255, 255, 1);
    --playlist-header-bg: rgba(255, 255, 255, 0.98);
    --song-item-hover: rgba(0, 0, 0, 0.04);
    --input-bg: #fafafa;
    --modal-bg: rgba(255, 255, 255, 0.98);
}

body.dark {
    --accent-color: #ffffff;
    --bg-color: #121212;
    --border-color: #2a2a2a;
    --card-bg: rgba(30, 30, 35, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-tertiary: #999999;
    --progress-bg: rgba(255, 255, 255, 0.12);
    --btn-bg: rgba(40, 40, 45, 0.8);
    --btn-hover: rgba(255, 255, 255, 0.08);
    --playlist-bg: rgba(25, 25, 30, 1);
    --playlist-header-bg: rgba(25, 25, 30, 0.98);
    --song-item-hover: rgba(255, 255, 255, 0.05);
    --input-bg: #2a2a2a;
    --modal-bg: rgba(30, 30, 35, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Condensed", sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    color: var(--text-primary);
    user-select: none;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.player-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark .player-container {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.tracking-widest {
    letter-spacing: normal !important;
}

@media (max-width: 360px) {
    body { padding: 8px; }
    .player-container { border-radius: 24px; }
    .header-section { padding: 20px 16px 20px 16px; }
    .album-art { width: 120px; height: 120px; }
    .song-title { font-size: 1rem; }
}

@media (min-width: 361px) and (max-width: 480px) {
    .header-section { padding: 30px 16px 25px 16px; }
    .album-art { width: 140px; height: 140px; }
    .controls-bar { padding: 20px; }
    .btn-icon { width: 38px; height: 38px; font-size: 1rem; }
    .play-btn { width: 52px; height: 52px; }
    .song-title { font-size: 1.2rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .player-container { width: 90%; max-width: 420px; }
}

@media (min-width: 769px) {
    .player-container { width: 450px; }
}

.header-section {
    padding: 40px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    border-bottom: none;
    position: relative;
    transition: border-color 0.3s ease;
}

.top-right-action {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 110;
    display: flex;
    gap: 8px;
}

.top-left-action {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 110;
    display: flex;
    gap: 8px;
}

.btn-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    background: var(--btn-bg);
    backdrop-filter: blur(4px);
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--btn-hover);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-icon:active::before {
    width: 100%;
    height: 100%;
}

.btn-icon:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

body.dark .btn-icon:hover {
    background: rgba(60, 60, 65, 0.95);
}

.btn-icon:active {
    transform: scale(0.92);
}

.btn-icon.active {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark .btn-icon.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.play-btn {
    background: #000;
    color: #fff !important;
    width: 55px;
    height: 55px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark .play-btn {
    background: #fff;
    color: #000 !important;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

body.dark .play-btn:hover {
    background: #e0e0e0;
}

.play-btn:active {
    transform: scale(0.95);
}

.top-right-action .btn-icon,
.top-left-action .btn-icon {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(4px);
}

body.dark .top-right-action .btn-icon,
body.dark .top-left-action .btn-icon {
    background: rgba(255, 255, 255, 0.05);
}

.top-right-action .btn-icon:hover,
.top-left-action .btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(5deg) scale(1.05);
}

body.dark .top-right-action .btn-icon:hover,
body.dark .top-left-action .btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.top-right-action .btn-icon:active,
.top-left-action .btn-icon:active {
    transform: rotate(0deg) scale(0.92);
}

.album-art {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

body.dark .album-art {
    border-color: #2a2a2a;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.album-art:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
    transition: transform 0.3s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.song-info-main {
    width: 100%;
}

.song-title {
    display: block;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow-x: visible;
    overflow-y: hidden;
    text-overflow: clip;
    -webkit-overflow-scrolling: touch;
    cursor: default;
    max-width: 100%;
    line-height: 1.5;
    padding-bottom: 2px;
}

@keyframes titleGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes artistGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.artist-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.lyric-container {
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    background: var(--progress-bg);
    border-radius: 40px;
    margin-top: 8px;
    transition: background 0.3s ease;
}

.current-lyric {
    color: var(--text-tertiary);
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-block;
    transform-origin: center center;
    transition: color 0.3s ease;
}

.controls-bar {
    padding: 24px 24px 28px 24px;
    background: var(--card-bg);
    transition: background 0.3s ease;
}

.progress-wrapper {
    margin-bottom: 20px;
}

.progress-bar-container {
    height: 6px;
    background: var(--progress-bg);
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #F5E9FD,#F4E0DF,#F6BCBA,#E3AADD,#C3C7F4,#F5E9FD);
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
    background-size: 200% 100%;
    animation: pastelMove 3s linear infinite;
    position: relative;
    box-shadow: 0 0 12px rgba(243, 184, 186, 0.6);
}

@keyframes pastelMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.progress-filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-thumb {
    position: absolute;
    width: 28px;
    height: 28px;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url('https://raw.githubusercontent.com/nokiapro/xuankenofficial/main/SanrioCinnamorollIceCreamPixel.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s ease;
    pointer-events: auto;
    border-radius: 50%;
}

.progress-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.progress-thumb:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.progress-filled::after {
    display: none;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.main-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.main-actions .btn-icon {
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-actions .btn-icon:active {
    transform: scale(0.92);
}

.playlist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--playlist-bg);
    z-index: 150;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-radius: 32px;
}

.playlist.active {
    transform: translateY(0);
}

.playlist-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--playlist-header-bg);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.close-playlist {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: var(--progress-bg);
}

.close-playlist:hover {
    background: var(--btn-hover);
    transform: rotate(90deg);
}

.close-playlist:active {
    transform: rotate(90deg) scale(0.9);
}

.playlist-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#playlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0 4px 0;
}

#playlist-content::-webkit-scrollbar {
    width: 4px;
}

#playlist-content::-webkit-scrollbar-track {
    background-color: var(--progress-bg);
}

#playlist-content::-webkit-scrollbar-thumb {
    background-image: linear-gradient(-45deg, #f1b586, #9f81ca, #c20175, #b33cea, #17adca, #dd4809, #ad9199);
    border-radius: 50px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    margin: 0 12px 4px 12px;
    border-radius: 16px;
    background: transparent;
}

.song-item:last-child {
    margin-bottom: 0;
}

.song-item:first-child {
    margin-top: 0;
}

.song-item:hover {
    background: var(--song-item-hover);
    transform: translateX(4px);
}

.song-item.active {
    background: linear-gradient(135deg, var(--btn-hover), transparent);
    border-left: 3px solid #ff0040;
}

body.dark .song-item.active {
    border-left: 3px solid #ffd89b;
}

.song-item .item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

#interaction-hint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease, background 0.3s ease;
}

.animate-spin-custom {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#toast-msg {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.timer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 499;
    display: none;
    transition: background 0.25s ease-out, backdrop-filter 0.25s ease-out;
}

.timer-overlay.show {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.timer-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--playlist-bg);
    z-index: 500;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    border-radius: 32px;
    padding: 0;
    opacity: 1;
}

.timer-modal.show {
    transform: translateY(0);
}

.timer-modal-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--playlist-header-bg);
    backdrop-filter: blur(10px);
    z-index: 160;
}

.timer-modal-header .close-timer {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: var(--progress-bg);
}

.timer-modal-header .close-timer:hover {
    background: var(--btn-hover);
    transform: rotate(90deg);
}

.timer-modal-header .close-timer:active {
    transform: rotate(90deg) scale(0.9);
}

.timer-modal-header .timer-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.timer-modal-content {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timer-status-box {
    background: var(--progress-bg);
    padding: 14px 16px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.timer-status-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.timer-status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.timer-preset-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.timer-preset {
    background: var(--progress-bg) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 18px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
    min-width: 55px;
}

.timer-preset:hover {
    background: var(--btn-hover) !important;
    transform: scale(1.02) !important;
}

.timer-preset:active {
    transform: scale(0.98) !important;
}

.timer-input {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 60px;
    text-align: center;
    font-weight: 600;
    outline: none;
    transition: all 0.25s;
    background: var(--input-bg);
    color: var(--text-primary);
}

.timer-input:focus {
    border-color: var(--accent-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
    transform: scale(1.01);
}

.timer-start-btn {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    color: var(--bg-color);
    font-weight: bold;
    padding: 14px;
    border-radius: 60px;
    text-align: center;
    font-weight: 600;
    outline: none;
    transition: all 0.25s;
    cursor: pointer;
    width: 100%;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-start-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

.timer-start-btn:active {
    transform: scale(0.96);
}

.timer-cancel-btn {
    background: rgba(239, 68, 68, 0.1) !important;
    border-radius: 40px !important;
    transition: all 0.2s ease !important;
    color: #ef4444 !important;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timer-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-2px) !important;
}

.timer-cancel-btn:active {
    transform: scale(0.96) !important;
}

.timer-modal::-webkit-scrollbar {
    width: 4px;
}

.timer-modal::-webkit-scrollbar-track {
    background-color: var(--progress-bg);
}

.timer-modal::-webkit-scrollbar-thumb {
    background-image: linear-gradient(-45deg, #f1b586, #9f81ca, #c20175, #b33cea, #17adca, #dd4809, #ad9199);
    border-radius: 50px;
}

#open-timer-btn.active {
    background: var(--accent-color) !important;
    color: var(--bg-color) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }
}

.listen-badge {
    display: none;
}

.listen-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--playlist-bg);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-radius: 32px;
}

.listen-modal.show {
    transform: translateY(0);
}

.listen-modal-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--playlist-header-bg);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.listen-modal-header .close-listen {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: var(--progress-bg);
}

.listen-modal-header .close-listen:hover {
    background: var(--btn-hover);
    transform: rotate(90deg);
}

.listen-modal-header .close-listen:active {
    transform: rotate(90deg) scale(0.9);
}

.listen-modal-header .listen-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.listen-stats {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 4px 12px;
}

.listen-total {
    margin: 0;
    padding: 14px 20px;
    background: var(--playlist-header-bg);
    backdrop-filter: blur(10px);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    width: 100%;
}

.listen-total span:first-child {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listen-total span:first-child i {
    font-size: 1rem;
    color: var(--accent-color);
}

.listen-total span:last-child {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 800;
}

.listen-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: default;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    margin: 0 0 4px 0;
    border-radius: 16px;
    background: transparent;
}

.listen-stat-item:last-child {
    margin-bottom: 0;
}

.listen-stat-item:hover {
    background: var(--song-item-hover);
    transform: translateX(4px);
}

.listen-stat-item.current-playing {
    background: linear-gradient(135deg, var(--btn-hover), transparent);
    border-left: 3px solid #ff0040;
}

body.dark .listen-stat-item.current-playing {
    border-left: 3px solid #ffd89b;
}

.listen-stat-item.current-playing .listen-stat-name {
    color: var(--accent-color);
    font-weight: 700;
}

.listen-stat-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    word-break: break-word;
    line-height: 1.4;
    font-size: 0.85rem;
    padding-right: 12px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.listen-stat-count {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9rem;
    min-width: 55px;
    text-align: right;
    transition: all 0.2s ease;
}

.listen-stats::-webkit-scrollbar {
    width: 4px;
}

.listen-stats::-webkit-scrollbar-track {
    background-color: var(--progress-bg);
}

.listen-stats::-webkit-scrollbar-thumb {
    background-image: linear-gradient(-45deg, #f1b586, #9f81ca, #c20175, #b33cea, #17adca, #dd4809, #ad9199);
    border-radius: 50px;
}

#listen-count-btn {
    position: relative;
}

#interaction-hint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(245, 233, 253, 0.98),
        rgba(244, 224, 223, 0.98),
        rgba(246, 188, 186, 0.98),
        rgba(227, 170, 221, 0.98),
        rgba(195, 199, 244, 0.98)
    );
    background-size: 400% 400%;
    animation: bgGradient 8s ease infinite;
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

#interaction-hint.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes bgGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hint-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    animation: logoFloat 2.5s ease-in-out infinite;
    position: relative;
}

.hint-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.hint-logo::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulseRing 2s linear infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes logoFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hint-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #c20175, #b33cea, #17adca, #dd4809);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradient 3s ease infinite;
    margin-bottom: 2px;
    text-align: center;
    padding: 0 20px;
}

@keyframes titleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hint-subtitle {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 45px;
    letter-spacing: 6px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.hint-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    padding: 16px 36px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hint-button:active {
    transform: scale(0.96);
}

.hint-button-icon {
    width: 28px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hint-button-text {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
}

.hint-decoration {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hint-decoration i.fa-heart {
    color: #ff4d4d;
    margin: 0 3px;
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

body.dark #interaction-hint {
    background: linear-gradient(135deg, 
        rgba(30, 30, 40, 0.98),
        rgba(40, 40, 55, 0.98),
        rgba(50, 50, 65, 0.98)
    );
}

body.dark .hint-subtitle {
    color: #aaa;
}

body.dark .hint-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark .hint-button-text {
    color: #fff;
}

body.dark .hint-decoration {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .hint-logo { width: 110px; height: 110px; }
    .hint-title { font-size: 1.7rem; letter-spacing: 3px; }
    .hint-subtitle { font-size: 0.75rem; letter-spacing: 4px; margin-bottom: 35px; }
    .hint-button { padding: 12px 24px; }
    .hint-button-text { font-size: 0.85rem; }
    .hint-decoration { font-size: 0.7rem; bottom: 25px; }
}

.notification {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 0 0 24px 24px;
    padding: 12px 24px;
    max-width: 90%;
    width: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #4ade80;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification-icon {
    width: 28px;
    height: 28px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 0.9rem;
    color: #4ade80;
}

.notification-content {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.notification-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-right: 8px;
}

.notification-message {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
}

.notification-message span {
    display: inline-block;
    white-space: nowrap;
    transform-origin: left center;
    transition: transform 0.1s ease;
}

body.dark .notification {
    background: rgba(30, 30, 35, 0.98);
    border-bottom-color: #4ade80;
}

body.dark .notification-title {
    color: #ffffff;
}

body.dark .notification-message {
    color: #aaaaaa;
}

@media (max-width: 480px) {
    .notification {
        padding: 10px 18px;
        border-radius: 0 0 18px 18px;
    }
    
    .notification-icon {
        width: 24px;
        height: 24px;
    }
    
    .notification-icon i {
        font-size: 0.8rem;
    }
    
    .notification-title {
        font-size: 0.75rem;
        margin-right: 4px;
    }
}

@media (max-width: 360px) {
    .notification {
        padding: 8px 14px;
        border-radius: 0 0 16px 16px;
    }
    
    .notification-title {
        font-size: 0.7rem;
    }
}