/* BabbleBee 古文磨耳朵 — Classical Bookshelf Style */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --wood-light: #DEB887;
  --wood-medium: #C19A6B;
  --wood-dark: #8B5A2B;
  --wood-darker: #654321;
  --cream: #FDF5E6;
  --parchment: #F5E6D3;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --ink: #2C1810;
  --ink-light: #4A3728;
  --red: #8B0000;
  --red-dark: #5C0000;
  --radius: 14px;
  --serif: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
}

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

body {
  font-family: var(--serif);
  background:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--parchment) 0%, var(--cream) 50%, var(--parchment) 100%);
  min-height: 100vh;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  background:
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 100px;
}

/* ===== HEADER ===== */
.topbar {
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(222,184,135,0.3) 0%, transparent 100%);
  border-bottom: 1px solid rgba(139,90,43,0.15);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-logo { width: 32px; height: 32px; border-radius: 8px; }
.topbar-title { font-size: 24px; font-weight: 700; letter-spacing: 5px; color: var(--ink); }
.topbar-sub { font-size: 12px; color: var(--ink-light); letter-spacing: 1px; margin-left: 4px; }

/* ===== MAIN LAYOUT ===== */
.main-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 100px);
}

/* ===== SIDEBAR — Continue Listening ===== */
.sidebar {
  padding: 28px 20px;
  border-right: 1px solid rgba(139,90,43,0.1);
  background: rgba(255,255,255,0.3);
}

.continue-card {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-darker) 100%);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--cream); cursor: pointer;
  box-shadow: 0 12px 32px rgba(101,67,33,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  margin-bottom: 24px;
  transition: all 0.2s;
}
.continue-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(101,67,33,0.35); }

.continue-cover {
  width: 90px; height: 125px;
  border-radius: 4px 6px 6px 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold);
  box-shadow: 6px 6px 16px rgba(0,0,0,0.4), inset -3px 0 6px rgba(0,0,0,0.2);
  position: relative; letter-spacing: 4px;
}
.continue-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
  border-radius: 4px 0 0 4px;
}
.continue-cover h3 {
  writing-mode: vertical-rl; letter-spacing: 6px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4); font-size: 20px;
}

.continue-info { text-align: center; }
.continue-label { font-size: 12px; color: var(--wood-light); margin-bottom: 6px; letter-spacing: 2px; }
.continue-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: 2px; }
.continue-sub { font-size: 13px; color: var(--wood-light); }

.continue-play {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 26px;
  box-shadow: 0 6px 16px rgba(212,175,55,0.4), inset 0 2px 4px rgba(255,255,255,0.3);
  transition: transform 0.2s;
}
.continue-play:hover { transform: scale(1.1); }

.sidebar-hidden { display: none; }

/* ===== BOOKSHELF AREA ===== */
.bookshelf-area { padding: 28px 32px; }

.shelf { position: relative; padding-top: 20px; margin-bottom: 0; }

.shelf-label {
  font-size: 15px; color: var(--ink-light); margin-bottom: 16px;
  font-weight: 500; letter-spacing: 4px;
  display: flex; align-items: center; gap: 14px;
}
.shelf-label::before, .shelf-label::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(139,90,43,0.3), transparent);
}

.shelf-books {
  display: flex; gap: 18px; padding-bottom: 24px;
  overflow-x: auto; scrollbar-width: none; flex-wrap: wrap;
}
.shelf-books::-webkit-scrollbar { display: none; }

.shelf-board {
  height: 26px;
  background:
    url("data:image/svg+xml,%3Csvg width='200' height='28' viewBox='0 0 200 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='wood' patternUnits='userSpaceOnUse' width='200' height='28'%3E%3Crect fill='%23C19A6B' width='200' height='28'/%3E%3Cpath d='M0 3 Q50 5 100 3 T200 3' stroke='%23A67B5B' stroke-width='0.5' fill='none' opacity='0.5'/%3E%3Cpath d='M0 10 Q50 12 100 10 T200 10' stroke='%23A67B5B' stroke-width='0.3' fill='none' opacity='0.4'/%3E%3Cpath d='M0 17 Q50 19 100 17 T200 17' stroke='%238B5A2B' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M0 24 Q50 26 100 24 T200 24' stroke='%238B5A2B' stroke-width='0.3' fill='none' opacity='0.4'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='28' fill='url(%23wood)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--wood-light) 0%, var(--wood-medium) 40%, var(--wood-dark) 100%);
  border-radius: 4px;
  margin: 0 -32px;
  box-shadow: 0 8px 16px rgba(101,67,33,0.35), 0 3px 6px rgba(0,0,0,0.2),
    inset 0 3px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.15);
  position: relative;
}
.shelf-board::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1), transparent);
  border-radius: 4px 4px 0 0;
}
.shelf-board::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

/* ===== BOOK ON SHELF ===== */
.book {
  flex-shrink: 0; cursor: pointer;
  transition: transform 0.3s ease; text-decoration: none;
}
.book:hover { transform: translateY(-14px) rotate(-2deg); }

.book-cover {
  width: 96px; height: 135px;
  border-radius: 4px 8px 8px 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 5px 5px 12px rgba(0,0,0,0.35), 2px 0 4px rgba(0,0,0,0.2), -1px 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.book-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.1) 60%, transparent 100%);
  border-radius: 4px 0 0 4px;
}
.book-cover::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(0,0,0,0.1));
}
.book-cover h3 {
  font-size: 17px; font-weight: 600;
  writing-mode: vertical-rl; letter-spacing: 5px;
  position: relative; z-index: 1;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.4);
}

/* Book color themes */
.book-red    { background: linear-gradient(135deg, #A52A2A, var(--red), var(--red-dark)); color: var(--gold); }
.book-blue   { background: linear-gradient(135deg, #2E4A62, #1B365D, #0D1B2A); color: #C9A227; }
.book-green  { background: linear-gradient(135deg, #3D5A4C, #2D4A3E, #1A2E25); color: #D4AF37; }
.book-brown  { background: linear-gradient(135deg, #6D4C41, #5D4037, #3E2723); color: #FFD54F; }
.book-purple { background: linear-gradient(135deg, #5D4157, #4A3352, #2D1F33); color: #E8B4CB; }
.book-black  { background: linear-gradient(135deg, #3D3D3D, #2C2C2C, #1A1A1A); color: #E0C097; }
.book-teal   { background: linear-gradient(135deg, #2D6A6A, #1D4E5F, #0F2A33); color: #A0D6D6; }
.book-orange { background: linear-gradient(135deg, #A0522D, #8B4513, #5D2E0C); color: #FFE4B5; }
.book-navy   { background: linear-gradient(135deg, #1a1a2e, #16213e, #0d0d1a); color: var(--gold); }
.book-wine   { background: linear-gradient(135deg, #5f0f40, #3d0525, #1a020e); color: #fb8b24; }
.book-forest { background: linear-gradient(135deg, #1b4332, #0a2e10, #051a08); color: #b7e4c7; }
.book-slate  { background: linear-gradient(135deg, #4a4e69, #252735, #12131c); color: #f2e9e4; }

/* ===== DETAIL PAGE ===== */
.detail-header { padding: 0; background: transparent; }
.detail-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--ink-light); cursor: pointer;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(139,90,43,0.15);
  border-radius: 12px; padding: 10px 14px; margin: 16px 20px;
  transition: all 0.2s; font-family: var(--serif);
}
.detail-back:hover { background: var(--gold); color: var(--ink); }

.book-hero {
  padding: 24px 20px; display: flex; gap: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(139,90,43,0.05) 100%);
  border-radius: 16px; border: 1px solid rgba(139,90,43,0.1);
  margin: 0 16px 16px;
}
.detail-cover {
  width: 120px; height: 165px;
  border-radius: 3px 8px 8px 3px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.3), 2px 0 4px rgba(0,0,0,0.2), inset -3px 0 6px rgba(0,0,0,0.2);
  position: relative;
}
.detail-cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  border-radius: 3px 0 0 3px;
}
.detail-cover::after {
  content: ''; position: absolute; top: 8px; bottom: 8px; right: 8px; left: 22px;
  border: 1px solid rgba(212,175,55,0.3); border-radius: 2px;
}
.detail-cover .cover-char {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  writing-mode: vertical-rl; letter-spacing: 6px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4); z-index: 1;
}

.detail-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.detail-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: 4px; }
.detail-desc { font-size: 13px; color: var(--ink-light); margin-bottom: 14px; line-height: 1.6; letter-spacing: 1px; }
.detail-stats { display: flex; gap: 20px; }
.detail-stat-value { font-size: 18px; font-weight: 600; color: var(--red); }
.detail-stat-label { font-size: 11px; color: var(--ink-light); letter-spacing: 1px; }

/* Detail actions */
.detail-actions { padding: 0 16px 16px; display: flex; gap: 10px; }
.action-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; text-align: left;
  font-family: var(--serif); letter-spacing: 1px;
  transition: all 0.2s;
}
.action-btn-primary {
  flex: 1;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-darker) 100%);
  color: var(--cream);
  box-shadow: 0 6px 20px rgba(101,67,33,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(212,175,55,0.2);
}
.action-btn-primary:active { transform: translateY(1px); }
.action-btn-primary i { font-size: 22px; color: var(--gold); }
.action-btn-ghost {
  background: rgba(255,255,255,0.5); color: var(--ink-light);
  border: 1px solid rgba(139,90,43,0.15);
}
.action-btn-ghost i { font-size: 18px; }

/* Track list */
.detail-tracks { padding: 0 16px; }
.chapters {
  background: rgba(255,255,255,0.5); border-radius: 16px;
  padding: 20px; border: 1px solid rgba(139,90,43,0.1);
}
.track-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.track-header span:first-child { font-size: 16px; font-weight: 600; letter-spacing: 3px; }
.track-header span:last-child { font-size: 13px; color: var(--ink-light); letter-spacing: 1px; }
.track-list { list-style: none; }
.track-item {
  display: flex; align-items: center;
  padding: 14px 16px; cursor: pointer;
  border-radius: var(--radius); margin-bottom: 6px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(139,90,43,0.06);
}
.track-item:hover, .track-item:active {
  background: rgba(255,255,255,0.7);
  border-color: rgba(212,175,55,0.2);
  transform: translateX(4px);
}
.track-item.playing {
  background: linear-gradient(135deg, rgba(139,0,0,0.08), rgba(212,175,55,0.08));
  border-color: rgba(139,0,0,0.2);
}
.track-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ink-light);
  background: rgba(139,90,43,0.1); margin-right: 14px; flex-shrink: 0;
}
.track-item.playing .track-num { background: var(--red); color: var(--gold); }
.track-name { flex: 1; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 2px; }
.track-item.playing .track-name { color: var(--red); font-weight: 600; }
.track-plays { font-size: 11px; color: var(--red); font-weight: 600; margin-left: 8px; white-space: nowrap; }
.track-icon { font-size: 20px; color: var(--ink-light); margin-left: 8px; }
.track-item.playing .track-icon { color: var(--red); }

/* PDF */
#book-pdf { padding: 12px 16px; }
#book-pdf iframe { width: 100%; height: 60vh; border: 1px solid rgba(139,90,43,0.15); border-radius: var(--radius); }

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* ===== MINI PLAYER BAR ===== */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 1200px; margin: 0 auto;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--wood-dark), var(--wood-darker));
  display: flex; align-items: center;
  padding: 10px 16px; z-index: 100; height: 64px;
  border-top: 1px solid rgba(212,175,55,0.2);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.player-bar.hidden { display: none !important; }

.mini-cover {
  width: 42px; height: 42px; border-radius: 8px;
  flex-shrink: 0; margin-right: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.mini-info { flex: 1; min-width: 0; cursor: pointer; }
.mini-title { font-size: 14px; font-weight: 600; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 1px; }
.mini-artist { font-size: 11px; color: var(--wood-light); }
.mini-controls { display: flex; gap: 2px; align-items: center; }
.mini-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 20px;
}
.mini-btn:active { color: var(--gold); }
.mini-progress { position: absolute; top: -2px; left: 0; right: 0; height: 3px; }
#progress-bar {
  width: 100%; height: 3px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.15); border-radius: 0; outline: none; margin: 0;
}
#progress-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }

/* ===== VINYL FULL PLAYER ===== */
.vinyl-player {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200; display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.vinyl-player.hidden { display: none !important; }
.vinyl-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; }
.vinyl-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px 0; color: var(--cream);
}
.vinyl-close {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px; color: var(--cream); cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.vinyl-header-info { text-align: center; }
.vinyl-book-title { font-size: 16px; font-weight: 700; color: var(--cream); letter-spacing: 3px; }
.vinyl-book-sub { font-size: 11px; color: var(--wood-light); margin-top: 2px; }

.vinyl-stage {
  position: relative; flex: 1; display: flex;
  align-items: center; justify-content: center;
  width: 100%; max-height: 400px;
}

.vinyl-disc {
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle,
    transparent 28%, #111 29%, #222 30%, #111 31%,
    #1a1a1a 32%, #111 60%, #222 61%, #111 62%,
    #1a1a1a 63%, #111 88%, #222 89%, #111 90%, #333 91%, #222 100%
  );
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: none; position: relative;
}
.vinyl-disc.spinning { animation: spin 4s linear infinite; }
.vinyl-groove, .vinyl-groove.g2, .vinyl-groove.g3 {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03); pointer-events: none;
}
.vinyl-groove { width: 92%; height: 92%; top: 4%; left: 4%; }
.vinyl-groove.g2 { width: 78%; height: 78%; top: 11%; left: 11%; }
.vinyl-groove.g3 { width: 65%; height: 65%; top: 17.5%; left: 17.5%; }
.vinyl-center {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,0.4); letter-spacing: 2px;
}

.vinyl-arm-pivot { position: absolute; top: 10%; right: 22%; width: 20px; height: 20px; z-index: 10; }
.vinyl-arm {
  width: 7px; height: 120px;
  background: linear-gradient(to bottom, var(--wood-light), var(--wood-medium));
  border-radius: 4px 4px 2px 2px;
  transform-origin: top center; transform: rotate(-30deg);
  transition: transform 0.6s ease; position: relative;
}
.vinyl-arm::before {
  content: ''; position: absolute; top: -6px; left: -6px;
  width: 19px; height: 19px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.vinyl-arm::after {
  content: ''; position: absolute; bottom: -4px; left: -2px;
  width: 11px; height: 14px; border-radius: 0 0 3px 3px;
  background: linear-gradient(to bottom, var(--wood-medium), var(--wood-dark));
}
.vinyl-arm.on-disc { transform: rotate(0deg); }

.vinyl-info { padding: 0 30px; text-align: center; color: var(--cream); }
.vinyl-track-name {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 300px; letter-spacing: 2px;
}
.vinyl-track-count { font-size: 12px; color: var(--wood-light); }

.vinyl-progress {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 30px; width: 100%;
  color: var(--wood-light); font-size: 11px;
}
#vinyl-progress-bar {
  flex: 1; height: 3px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.12); border-radius: 2px; outline: none;
}
#vinyl-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; cursor: pointer;
}

.vinyl-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 0 30px 40px;
}
.vinyl-ctrl {
  background: none; border: none;
  color: rgba(253,245,230,0.6); cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.vinyl-ctrl:active { color: var(--gold); }
.vinyl-ctrl-play {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.3); background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 28px;
}
.vinyl-ctrl-play:active { background: rgba(212,175,55,0.1); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid rgba(139,90,43,0.1); padding: 20px; }
  .continue-card { flex-direction: row; padding: 16px; align-items: center; }
  .continue-cover { width: 60px; height: 84px; font-size: 16px; }
  .continue-cover h3 { font-size: 14px; letter-spacing: 3px; }
  .continue-info { text-align: left; flex: 1; }
  .continue-play { width: 48px; height: 48px; font-size: 22px; }
  .bookshelf-area { padding: 20px; }
  .shelf-board { margin: 0 -20px; }
}

@media (max-width: 540px) {
  .topbar { padding: 14px 16px; }
  .topbar-title { font-size: 20px; letter-spacing: 3px; }
  .sidebar { padding: 12px 16px; }
  .continue-cover { width: 50px; height: 70px; }
  .continue-cover h3 { font-size: 13px; letter-spacing: 2px; }
  .continue-title { font-size: 14px; }
  .bookshelf-area { padding: 16px; }
  .shelf-board { height: 22px; margin: 0 -16px; }
  .shelf-books { gap: 12px; flex-wrap: nowrap; overflow-x: auto; }
  .book-cover { width: 76px; height: 108px; }
  .book-cover h3 { font-size: 15px; letter-spacing: 4px; }
}
