/* --- Content Width --- */
#page-content { max-width: 1400px; margin: 0 auto; padding: 20px 20px; }

/* --- Header --- */
header { padding: 20px 0; position: sticky; top: 0; background-color: rgba(255, 255, 255, 0.95); z-index: 100; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; display: flex; align-items: center; }
.nav-left { position: absolute; left: 20px; display: flex; gap: 20px; font-size: 18px; color: #ccc; cursor: pointer; }
.nav-left i:hover { color: #333; }
.nav-center { display: flex; gap: 40px; margin: 0 auto; }
.nav-item { text-decoration: none; color: #333; font-size: 20px; font-weight: 700; position: relative; }
.nav-item.active { color: #1a73e8; }
.nav-item.active::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background-color: #1a73e8; border-radius: 50%; }
.nav-right { position: absolute; right: 20px; display: flex; align-items: center; gap: 15px; }
.search-box-wrapper { position: relative; }
.search-input-field { position: relative; display: flex; align-items: center; width: 160px; transition: width 0.25s; }
.search-input-field:focus-within { width: 320px; }
.search-icon { position: absolute; left: 16px; color: #888; font-size: 16px; pointer-events: none; transition: color 0.2s; }
.search-input-field:focus-within .search-icon { color: #1a73e8; }
.search-input-field input { width: 100%; padding: 12px 16px 12px 46px; font-size: 15px; color: #333; background: #f0f2f5; border: 1px solid transparent; border-radius: 12px; outline: none; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
.search-input-field input:focus { background: #eaf2fe; border-color: #1a73e8; box-shadow: 0 4px 20px rgba(26,115,232,0.08); }
.search-input-field input::placeholder { color: #999; }
.search-clear { position: absolute; right: 14px; font-size: 14px; color: #999; cursor: pointer; display: none; z-index: 2; }
.search-clear:hover { color: #333; }
.search-input-field:focus-within .search-clear { display: block; }

.search-dropdown-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); border: 1px solid rgba(230,235,245,0.8); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.08); padding: 20px 0 12px; z-index: 200; opacity: 0; transform: scale(0.96) translateY(-10px); pointer-events: none; transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1), transform 0.2s cubic-bezier(0.4,0,0.2,1); }
.search-box-wrapper.show-dropdown .search-dropdown-panel { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.dropdown-section { padding: 0 18px; margin-bottom: 20px; }
.hot-search-section { margin-bottom: 4px; }
.search-dropdown-panel .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-dropdown-panel .section-title { font-size: 13px; font-weight: 700; color: #99a2ae; letter-spacing: 0.5px; }
.clear-history-btn { color: #a0a6b5; cursor: pointer; font-size: 13px; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.clear-history-btn:hover { color: #e53935; background: #fff1f0; }
.history-tags-group { display: flex; flex-wrap: wrap; gap: 8px; }
.history-tag { font-size: 12px; color: #4a5568; background: #f3f5f9; padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: all 0.15s ease; user-select: none; }
.history-tag:hover { background: #1a73e8; color: #fff; }
.hot-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.hot-item { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background 0.2s ease; }
.hot-item:hover { background: #f5f7fa; }
.hot-index { font-size: 14px; font-weight: 700; color: #a0a6b5; width: 24px; flex-shrink: 0; }
.hot-index.index-top { color: #ff6a00; }
.hot-info { display: flex; justify-content: space-between; align-items: center; width: 100%; min-width: 0; padding-left: 4px; }
.hot-keyword { font-size: 13.5px; font-weight: 500; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-meta { font-size: 11px; color: #b0b7c4; font-weight: 500; flex-shrink: 0; }
.hot-meta.score-up { color: #ff3b30; }
.hot-meta i { font-size: 10px; margin-right: 1px; }
.history-empty { font-size: 12px; color: #b0b7c4; padding: 4px 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; }
.avatar-wrapper { position: relative; }
.avatar-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 160px; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); z-index: 200; display: none; overflow: hidden; }
.avatar-menu.show { display: block; }
.avatar-menu-item { display: block; padding: 12px 18px; font-size: 14px; color: #333; cursor: pointer; transition: background 0.15s; text-decoration: none; }
.avatar-menu-item:hover { background: #f5f5f5; }
.avatar-menu-item:last-child { border-top: 1px solid #f0f0f0; color: #e91e63; }

/* --- Player Bar --- */
html { overflow-y: scroll; }
body { padding-bottom: 90px; }
.player-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 75px; background-color: #ffffff; border-top: 1px solid #f0f0f0; z-index: 1000; }
.player-bar-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.track-info { display: flex; align-items: center; gap: 12px; width: 25%; }
.track-cover { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.track-detail { display: flex; flex-direction: column; gap: 4px; }
.track-name-row { display: flex; align-items: center; gap: 8px; }
.track-name { font-size: 14px; font-weight: 600; color: #333; }
.heart-icon { color: #e91e63; font-size: 13px; cursor: pointer; }
.track-artist { font-size: 11px; color: #888; }
.player-controls { display: flex; align-items: center; gap: 25px; }
.control-btn { background: none; border: none; color: #333; font-size: 16px; cursor: pointer; transition: color 0.2s; }
.control-btn:hover { color: #1a73e8; }
.control-btn.play-main { width: 36px; height: 36px; background-color: #333; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; }
.control-btn.play-main:hover { background-color: #1a73e8; color: #fff; }
.player-right { display: flex; align-items: center; gap: 18px; width: 25%; justify-content: flex-end; color: #555; }
.right-icon { cursor: pointer; font-size: 14px; }
.right-icon:hover { color: #333; }
.volume-container { display: flex; align-items: center; gap: 8px; }
.volume-slider { width: 80px; height: 3px; background-color: #e0e0e0; border-radius: 2px; position: relative; cursor: pointer; }
.volume-progress { width: 60%; height: 100%; background-color: #666; border-radius: 2px; }

/* --- Queue Panel --- */
.queue-panel { position: fixed; bottom: 75px; right: 20px; width: 360px; max-height: 400px; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 20px rgba(0,0,0,0.1); z-index: 999; display: none; overflow: hidden; }
.queue-panel.show { display: block; }
.queue-header { padding: 14px 18px; font-size: 14px; font-weight: 600; color: #111; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.queue-list { max-height: 346px; overflow-y: auto; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 8px 18px; cursor: pointer; transition: background 0.15s; }
.queue-item:hover { background: #f5f5f5; }
.queue-item.active { background: #e8f0fe; }
.queue-item.active .queue-item-name { color: #1a73e8; }
.queue-item-cover { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-name { font-size: 13px; font-weight: 500; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-artist { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-del { color: #ccc; font-size: 12px; flex-shrink: 0; }
.queue-item-del:hover { color: #e91e63; }
.queue-empty { padding: 40px 18px; text-align: center; color: #999; font-size: 13px; }

/* --- Repeat/Shuffle active colors --- */
.right-icon.active { color: #1a73e8; }