@import url("./香萃潮汐宋W15/香萃潮汐宋W15/result.css");
@import url("./香萃潮汐宋 W40/香萃潮汐宋 W40/result.css");

:root {
  /* Common Defaults */
  --font-family-retro: 'Inter', sans-serif;
  --font-family-pixel: "Cubic 11", "Cubic", "quan", "qxs", "Zpix", monospace;
  --font-family-ins-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-family-ins-body: 'Manrope', 'Inter', sans-serif;
  --font-family-luxury-display: 'Playfair Display', 'Times New Roman', serif;
  --font-family-luxury-body: 'Inter', sans-serif;
  --font-family-luxury-lyric: "XiangcuiChaoxisongW15", "Songti SC", "STSong", serif;
  --font-family-luxury-lyric-highlight: "XiangcuiChaoxisong", "Songti SC", "STSong", serif;
  --editor-bg: #fff;
  --editor-border: #ddd;
}

/* ==========================================
   THEME PALETTES
=========================================== */
:root[data-theme="default"] {
  --theme-main-bg: #e8e4dc;   
  --theme-panel-bg: #fcfbf8;  
  --theme-line: #1a1a1a;      
  --theme-text-primary: #1a1a1a; 
  --theme-text-sec: #777;
  --theme-shadow: rgba(0, 0, 0, 0.08);
  --theme-shadow-hard: #1a1a1a;
  --theme-inset: rgba(0, 0, 0, 0.07);
}
:root[data-theme="black"] {
  --theme-main-bg: #17181a;   
  --theme-panel-bg: #2a2d31;  
  --theme-line: #f2ede6;      
  --theme-text-primary: #fffaf4; 
  --theme-text-sec: #d4cdc4;
  --theme-shadow: rgba(0, 0, 0, 0.55);
  --theme-shadow-hard: #0e0f11;
  --theme-inset: rgba(255, 255, 255, 0.08);
}
:root[data-theme="mint"] {
  --theme-main-bg: #d1ead7;   
  --theme-panel-bg: #e8f4eb;  
  --theme-line: #1d4025;      
  --theme-text-primary: #1d4025; 
  --theme-text-sec: #456b4f;
  --theme-shadow: rgba(29, 64, 37, 0.15);
  --theme-shadow-hard: #152d1a;
  --theme-inset: rgba(29, 64, 37, 0.1);
}
:root[data-theme="sky"] {
  --theme-main-bg: #d4eaf7;   
  --theme-panel-bg: #f0f7fb;  
  --theme-line: #003049;      
  --theme-text-primary: #003049; 
  --theme-text-sec: #4a7c98;
  --theme-shadow: rgba(0, 48, 73, 0.15);
  --theme-shadow-hard: #001f30;
  --theme-inset: rgba(0, 48, 73, 0.08);
}
:root[data-theme="yellow"] {
  --theme-main-bg: #fcf4d9;   
  --theme-panel-bg: #fffdf5;  
  --theme-line: #523f00;      
  --theme-text-primary: #523f00; 
  --theme-text-sec: #8c721c;
  --theme-shadow: rgba(82, 63, 0, 0.1);
  --theme-shadow-hard: #3c2a00;
  --theme-inset: rgba(82, 63, 0, 0.08);
}
:root[data-theme="pink"] {
  --theme-main-bg: #f7d6e0;   
  --theme-panel-bg: #fdf5f7;  
  --theme-line: #5a182d;      
  --theme-text-primary: #5a182d; 
  --theme-text-sec: #954a63;
  --theme-shadow: rgba(90, 24, 45, 0.15);
  --theme-shadow-hard: #400f1e;
  --theme-inset: rgba(90, 24, 45, 0.1);
}
:root[data-theme="red"] {
  --theme-main-bg: #822729;   
  --theme-panel-bg: #5a171a;  
  --theme-line: #ffe0d9;      
  --theme-text-primary: #fff8f6; 
  --theme-text-sec: #f1c8c1;
  --theme-shadow: rgba(28, 7, 8, 0.42);
  --theme-shadow-hard: #361012;
  --theme-inset: rgba(255, 240, 236, 0.08);
}

* {
  box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--theme-main-bg); font-family: var(--font-family-retro);
  color: var(--theme-text-primary); overflow: hidden; height: 100vh; width: 100vw; transition: background-color 0.3s;
}

/* ==========================================
   APP STRUCTURE
=========================================== */
.app-container { display: flex; width: 100%; height: 100%; }
.editor-area {
  width: 400px; min-width: 300px; background: var(--editor-bg);
  border-right: 1px solid var(--editor-border); display: flex; flex-direction: column;
  box-shadow: 5px 0 15px rgba(0,0,0,0.05); z-index: 10; overflow-y: auto; color: #1a1a1a;
}
.preview-area {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden; background-color: var(--theme-main-bg); transition: background-color 0.3s;
}
.preview-hint {
  position: absolute; top: 40px; font-size: 13px; font-weight: 800; color: #777;
  background: rgba(255, 255, 255, 0.6); padding: 8px 15px; border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 10;
}

/* ==========================================
   EDITOR STYLES
=========================================== */
.editor-header { padding: 20px; border-bottom: 1px solid var(--editor-border); background: #fafafa; }
.editor-header h2 { font-size: 16px; font-weight: 800; }
.editor-content { padding: 20px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 100px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.row-flex { flex-direction: row; gap: 15px; }
.flex-half { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 14px; background: #fafafa;
}
.form-group textarea { resize: vertical; }
.help-text { font-size: 11px; color: #888; }
.slider-group { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.slider-group input[type="range"] { flex: 1; }
.slider-value {
  min-width: 44px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-align: right;
}
.primary-btn {
  margin-top: 10px; padding: 14px 20px; background: #1a1a1a; color: white;
  font-size: 14px; font-weight: 800; border: none; border-radius: 6px; cursor: pointer;
}

/* ==========================================
   SCALING WRAPPER & TEMPLATE LOGIC
=========================================== */
.player-wrapper {
  width: 850px; height: 554px;
  transform-origin: center center; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); 
}
#export-target { width: 100%; height: 100%; position: relative; }

.template-layout { display: none !important; }
.player-container.active { display: grid !important; }
.player-container-pixel.active { display: flex !important; }
.player-container-ins.active { display: block !important; }
.player-container-luxury.active { display: block !important; }

.cover-pan-area {
  width: 100%; height: 100%; position: relative; cursor: grab; user-select: none; -webkit-user-select: none;
}
.cover-img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center; pointer-events: none; 
}


/* ==========================================
   TEMPLATE 1: RETRO GRID 
=========================================== */
.player-container {
  grid-template-columns: repeat(12, 1fr); grid-template-rows: 200px 354px;
  border: 2px solid var(--theme-line); background-color: var(--theme-panel-bg);
  width: 100%; height: 100%; overflow: hidden;
  box-shadow: 15px 15px 50px var(--theme-shadow);
  transition: background-color 0.3s, border-color 0.3s;
}
.module { position: relative; display: flex; flex-direction: column; }
.header-bar {
  border-bottom: 2px solid var(--theme-line); padding: 10px 15px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.retro-sub-header { font-weight: 800; color: var(--theme-line); letter-spacing: 2px; }

.top-left { grid-column: 1 / 9; grid-row: 1; border-right: 2px solid var(--theme-line); border-bottom: 2px solid var(--theme-line); }
.top-right { grid-column: 9 / 13; grid-row: 1; border-bottom: 2px solid var(--theme-line); }
.bottom-left { grid-column: 1 / 6; grid-row: 2; border-right: 2px solid var(--theme-line); border-bottom: 2px solid var(--theme-line); overflow: hidden; }
.bottom-right { grid-column: 6 / 13; grid-row: 2; }

.progress-content { flex: 1; padding: 20px 30px; display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.timer { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 5px; }
.retro-display-time { font-size: 42px; font-weight: 800; letter-spacing: 4px; line-height: 1; }
.time-right-group { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.controls-row { display: flex; gap: 8px; }
.icon-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--theme-line);
  background: transparent; cursor: pointer; display: flex; justify-content: center; align-items: center;
}
.icon-btn.prev::before, .icon-btn.next::before { content: ''; width: 6px; height: 6px; background: var(--theme-line); transform: rotate(45deg); }
.icon-btn.play::before {
  content: ''; width: 0; height: 0; border-left: 8px solid var(--theme-line);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 3px;
}
.icon-btn.play.playing::before {
  border: none; width: 8px; height: 10px; border-left: 2px solid var(--theme-line); border-right: 2px solid var(--theme-line); background: transparent; margin-left: 0;
}
.time-right-text { display: flex; align-items: center; gap: 8px; }
.icon-headphones { width: 14px; height: 14px; border: 2px solid var(--theme-line); border-radius: 50% 50% 0 0; border-bottom: none; position: relative; }
.icon-headphones::before, .icon-headphones::after { content: ''; position: absolute; bottom: -4px; width: 4px; height: 6px; background: var(--theme-line); border-radius: 2px; }
.icon-headphones::before { left: -2px; } .icon-headphones::after { right: -2px; }
.time-label { font-size: 11px; font-weight: 800; color: var(--theme-line); text-transform: uppercase; }

.visualizer { display: flex; align-items: center; gap: 3px; height: 50px; width: 100%; cursor: ew-resize; touch-action: none; }
.vis-bar { flex: 1; background-color: var(--theme-text-sec); opacity: 0.3; transition: height 0.1s; }
.vis-bar.active { background-color: var(--theme-line); opacity: 1; }

.info-content { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.retro-display-title { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 5px; line-height: 1.1; word-wrap: break-word; }
.retro-display-artist { font-size: 15px; font-weight: 600; color: var(--theme-text-sec); margin-bottom: 12px; }
.style-tag {
  font-size: 10px; font-weight: 800; background: var(--theme-line);
  color: var(--theme-panel-bg); padding: 3px 6px; border-radius: 2px; letter-spacing: 0.5px;
}
.retro-pan-area .cover-img { filter: grayscale(10%) contrast(1.1); }

.retro-lyrics-container {
  flex: 1; padding: 25px 40px 20px 40px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; width: 100%;
}
.retro-lyrics-container .lyric-line {
  width: 100%; display: block;
  font-size: 14px; font-weight: 400; color: var(--theme-text-sec); cursor: pointer; padding: 2px 0; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.retro-lyrics-container .lyric-line.highlighted {
  font-size: 22px; font-weight: 800; color: var(--theme-line); margin: 6px 0; padding-bottom: 4px; line-height: 1.4; letter-spacing: -0.5px; transform: translateX(5px); white-space: normal; overflow: visible;
}


/* ==========================================
   TEMPLATE 2: PIXEL DESIGN (Advanced OS UI)
=========================================== */
.player-container-pixel {
  width: 100%; height: 100%;
  font-family: var(--font-family-pixel);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  /* Checkerboard transparency feel */
  background-image: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,0.03) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.03) 75%), linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.03) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* The Unified OS Box */
.pixel-outer-wrapper {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background-color: var(--theme-panel-bg);
  border: 4px solid var(--theme-line);
  box-shadow: 8px 8px 0 var(--theme-shadow-hard), inset 2px 2px 0 rgba(255,255,255,0.8), inset -2px -2px 0 rgba(0,0,0,0.1);
  padding: 2px;
  position: relative;
}

/* Window Header */
.pixel-os-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; background: var(--theme-line); padding: 0 6px; gap: 10px;
}
.os-title {
  color: var(--theme-panel-bg); font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.os-stripes {
  flex: 1; height: 12px;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--theme-panel-bg) 2px, var(--theme-panel-bg) 4px);
  opacity: 0.3;
}
.os-btnbox {
  display: flex; gap: 4px;
}
.os-btn {
  width: 18px; height: 18px; background: var(--theme-panel-bg); color: var(--theme-line);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  border: 2px solid var(--theme-panel-bg); box-shadow: inset -2px -2px 0 var(--theme-line);
  cursor: default;
}

/* Corner screws */
.pixel-screw {
  width: 8px; height: 8px; background: var(--theme-line); position: absolute; border-radius: 50%;
  box-shadow: inset -2px -2px 0 rgba(255,255,255,0.5); z-index: 10;
}
.pixel-screw.topleft { top: 40px; left: 10px; }
.pixel-screw.topright { top: 40px; right: 10px; }
.pixel-screw.botleft { bottom: 10px; left: 10px; }
.pixel-screw.botright { bottom: 10px; right: 10px; }

/* OS Window Content Area */
.pixel-content-wrapper {
  display: flex; flex: 1; overflow: hidden;
}

.pixel-left {
  width: 330px; height: 100%; border-right: 4px dotted var(--theme-line); 
  display: flex; flex-direction: column; padding: 20px 22px 16px 22px;
}

.pixel-right {
  flex: 1; height: 100%; padding: 25px; display: flex; flex-direction: column; overflow: hidden; position: relative;
}

/* Pixel Cover */
.pixel-cover-box {
  width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; flex: 0 0 auto;
  border: 4px solid var(--theme-line); 
  background: var(--theme-main-bg); margin: 0 auto 8px;
  box-shadow: inset 4px 4px 0 var(--theme-inset), inset -2px -2px 0 rgba(255,255,255,0.4);
}
.pixel-pan-area .cover-img { image-rendering: pixelated; }

/* Pixel Info */
.pixel-info-area {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 3px; width: 100%; min-height: 56px; overflow: visible; padding: 1px 0 0; flex: 0 0 auto;
}
.pixel-song {
  font-size: 20px; font-weight: 800; color: var(--theme-text-primary); margin-bottom: 4px; padding: 0;
  width: 100%; line-height: 1.1; white-space: normal; overflow: visible; text-overflow: clip;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pixel-artist { font-size: 13px; font-weight: 400; color: var(--theme-text-sec); margin-bottom: 0; line-height: 1.1; }
.pixel-display-tags {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center;
  margin: 3px 0 10px; min-height: 14px; flex: 0 0 auto;
}
.pixel-display-tags .style-tag {
  border: 2px solid var(--theme-line); background: transparent; color: var(--theme-text-primary);
  padding: 1px 5px; font-size: 7px; line-height: 1; letter-spacing: 0.5px;
}


/* DECO: Volume and Visualizer Blocks */
.pixel-extra-deco {
  display: flex; justify-content: space-between; align-items: stretch; margin-bottom: 8px; height: 18px; gap: 8px; flex: 0 0 auto;
}
.pixel-volume {
  display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--theme-text-sec);
  border: 2px solid var(--theme-line); padding: 0 5px; box-shadow: inset 2px 2px 0 var(--theme-inset);
}
.vol-bars { display: flex; gap: 3px; align-items: flex-end; height: 10px; }
.vol-bar { width: 3px; background: var(--theme-text-primary); }
.vol-bar:nth-child(1) { height: 3px; }
.vol-bar:nth-child(2) { height: 6px; }
.vol-bar:nth-child(3) { height: 9px; }
.vol-bar:nth-child(4) { height: 12px; }
.vol-bar.empty { background: transparent; border: 1px solid var(--theme-text-sec); }

.pixel-visualizer {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2px;
  border: 2px solid var(--theme-line); padding: 2px 4px; box-shadow: inset 2px 2px 0 var(--theme-inset);
  background: var(--theme-main-bg); overflow: hidden;
}
.pixel-vis-bar {
  flex: 1; background: var(--theme-text-sec); opacity: 0.5; width: 4px;
}


/* Pixel Progress Bar */
.pixel-progress-area {
  margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 4px 6px; background: rgba(0,0,0,0.03); border: 2px solid rgba(0,0,0,0.1); border-bottom-color: rgba(255,255,255,0.6); border-right-color: rgba(255,255,255,0.6); flex: 0 0 auto;
}
.pixel-time { font-size: 10px; color: var(--theme-text-sec); min-width: 38px; text-align: center; }
.pixel-bar-bg {
  flex: 1; height: 6px; background: var(--theme-main-bg); border: 2px solid var(--theme-line); position: relative; display: flex; align-items: center;
  box-shadow: inset 2px 2px 0 var(--theme-inset); cursor: ew-resize; touch-action: none;
}
.pixel-bar-fill { height: 100%; width: 40%; background: var(--theme-line); }
.pixel-bar-handle {
  width: 6px; height: 16px; background: var(--theme-panel-bg); border: 2px solid var(--theme-line);
  position: absolute; left: 40%; top: 50%; transform: translate(-50%, -50%); box-shadow: 1px 1px 0 var(--theme-shadow-hard);
}

/* Controls */
.pixel-controls-area {
  display: flex; justify-content: space-around; align-items: center;
  min-height: 40px; padding: 0 2px; margin-top: 6px; flex: 0 0 auto;
}
.geom-btn { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 3px; }
.geom-btn:active { transform: translateY(2px) scale(0.95); }

/* Geometric Drawing */
.icon-geom-play { width: 36px; height: 36px; }
.icon-geom-play::before {
  content: ''; display: block; border-left: 16px solid var(--theme-text-primary); border-top: 9px solid transparent; border-bottom: 9px solid transparent; width: 0; margin-left: 4px; transition: all 0.1s;
}
.icon-geom-play.playing::before {
  border: none; width: 10px; height: 16px; border-left: 4px solid var(--theme-text-primary); border-right: 4px solid var(--theme-text-primary); background: transparent; margin-left: 0;
}
.icon-geom-prev::before, .icon-geom-prev::after, .icon-geom-next::before, .icon-geom-next::after { content: ''; display: block; position: absolute; }
.icon-geom-prev::before { width: 3px; height: 12px; background: var(--theme-text-primary); left: 7px; }
.icon-geom-prev::after { border-right: 10px solid var(--theme-text-primary); border-top: 6px solid transparent; border-bottom: 6px solid transparent; right: 5px; }
.icon-geom-next::before { border-left: 10px solid var(--theme-text-primary); border-top: 6px solid transparent; border-bottom: 6px solid transparent; left: 5px; }
.icon-geom-next::after { width: 3px; height: 12px; background: var(--theme-text-primary); right: 7px; }
.icon-geom-plus::before, .icon-geom-plus::after { content: ''; position: absolute; background: var(--theme-text-primary); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-geom-plus::before { width: 14px; height: 3px; }
.icon-geom-plus::after { width: 3px; height: 14px; }
.icon-geom-heart { width: 24px; height: 24px; }
.icon-geom-heart::before {
  content: '♥'; font-family: "Cubic 11", sans-serif; font-size: 18px; color: var(--theme-text-primary);
  position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%);
}

/* Pixel Lyrics Container */
.pixel-right-header { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 12px; color: var(--theme-text-sec); margin-bottom: 15px; }
.pixel-r-line { flex: 1; height: 4px; background: repeating-linear-gradient(90deg, transparent, transparent 2px, var(--theme-text-sec) 2px, var(--theme-text-sec) 4px); }

.pixel-lyrics-container {
  width: 100%; flex: 1; display: flex; flex-direction: column; gap: 14px; overflow: hidden; 
  background-color: var(--theme-main-bg); border: 4px solid var(--theme-line);
  box-shadow: inset 4px 4px 0 var(--theme-inset), inset -2px -2px 0 rgba(255,255,255,0.4); padding: 18px 25px;
}
.pixel-lyrics-container .lyric-line {
  width: 100%; font-size: 16px; font-weight: 400; color: var(--theme-text-sec); padding: 2px 0; white-space: nowrap; cursor: pointer; text-overflow: ellipsis; overflow: hidden; display: block;
}
.pixel-lyrics-container .lyric-line:hover { color: var(--theme-text-primary); }
.pixel-lyrics-container .lyric-line.highlighted {
  font-size: 24px; font-weight: 800; color: var(--theme-text-primary); white-space: normal; background-color: var(--theme-panel-bg); padding: 10px 14px; border-left: 6px solid var(--theme-line); margin: 6px 0; overflow: visible; line-height: 1.4; box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* ==========================================
   TEMPLATE 3: INS CHIC
=========================================== */
.player-container-ins {
  --ins-bg-wash-1: rgba(255,255,255,0.92);
  --ins-bg-wash-2: rgba(255,255,255,0.55);
  --ins-bg-gradient-start: var(--theme-panel-bg);
  --ins-bg-gradient-end: var(--theme-main-bg);
  --ins-card-bg-top: rgba(255,255,255,0.76);
  --ins-card-bg-bottom: rgba(255,255,255,0.38);
  --ins-card-border: rgba(255,255,255,0.55);
  --ins-card-shadow: var(--theme-shadow);
  --ins-inner-glow: rgba(255,255,255,0.85);
  --ins-cover-card-top: rgba(255,255,255,0.95);
  --ins-cover-card-bottom: rgba(255,255,255,0.45);
  --ins-cover-stage-overlay: rgba(255,255,255,0.35);
  --ins-cover-stage-bg: var(--theme-main-bg);
  --ins-text-main: var(--theme-text-primary);
  --ins-text-muted: var(--theme-text-sec);
  --ins-pill-bg: rgba(255,255,255,0.85);
  --ins-pill-text: var(--theme-text-primary);
  --ins-pill-border: rgba(255,255,255,0.75);
  --ins-chip-bg: rgba(255,255,255,0.68);
  --ins-chip-border: rgba(255,255,255,0.8);
  --ins-chip-text: var(--theme-text-primary);
  --ins-panel-bg: rgba(255,255,255,0.58);
  --ins-panel-border: rgba(255,255,255,0.68);
  --ins-progress-track: rgba(255,255,255,0.75);
  --ins-progress-fill: linear-gradient(90deg, var(--theme-line), rgba(255,255,255,0.9));
  --ins-progress-dot-bg: var(--theme-panel-bg);
  --ins-progress-dot-border: var(--theme-line);
  --ins-control-deck-bg: rgba(255,255,255,0.72);
  --ins-control-deck-border: rgba(255,255,255,0.76);
  --ins-control-icon: #171717;
  --ins-play-bg: var(--theme-text-primary);
  --ins-play-icon: var(--theme-panel-bg);
  --ins-lyrics-card-bg: rgba(255,255,255,0.58);
  --ins-lyrics-card-border: rgba(255,255,255,0.68);
  --ins-lyric-bg: rgba(255,255,255,0.48);
  --ins-lyric-bg-hover: rgba(255,255,255,0.7);
  --ins-lyric-highlight-bg: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255,255,255,0.62));
  --ins-lyric-highlight-text: var(--ins-text-main);
  --ins-divider: linear-gradient(90deg, var(--theme-line), transparent);
  width: 100%; height: 100%; position: relative; overflow: hidden; padding: 26px;
  font-family: var(--font-family-ins-body);
  background:
    radial-gradient(circle at 18% 18%, var(--ins-bg-wash-1), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 82% 12%, var(--ins-bg-wash-2), rgba(255,255,255,0) 24%),
    linear-gradient(135deg, var(--ins-bg-gradient-start) 0%, var(--ins-bg-gradient-end) 100%);
}

:root[data-theme="black"] .player-container-ins {
  --ins-bg-wash-1: rgba(255,248,240,0.05);
  --ins-bg-wash-2: rgba(255,248,240,0.03);
  --ins-bg-gradient-start: #1f2023;
  --ins-bg-gradient-end: #111214;
  --ins-card-bg-top: rgba(36,38,42,0.92);
  --ins-card-bg-bottom: rgba(22,24,28,0.78);
  --ins-card-border: rgba(255,246,238,0.12);
  --ins-card-shadow: rgba(0,0,0,0.48);
  --ins-inner-glow: rgba(255,248,240,0.08);
  --ins-cover-card-top: rgba(42,44,48,0.94);
  --ins-cover-card-bottom: rgba(27,29,32,0.8);
  --ins-cover-stage-overlay: rgba(255,248,240,0.06);
  --ins-cover-stage-bg: #1a1c1f;
  --ins-text-main: #fffaf4;
  --ins-text-muted: #ddd3c8;
  --ins-pill-bg: rgba(255,250,245,0.92);
  --ins-pill-text: #18191b;
  --ins-pill-border: rgba(255,245,236,0.56);
  --ins-chip-bg: rgba(255,250,245,0.08);
  --ins-chip-border: rgba(255,245,236,0.18);
  --ins-chip-text: #fffaf4;
  --ins-panel-bg: rgba(24,26,29,0.72);
  --ins-panel-border: rgba(255,246,238,0.12);
  --ins-progress-track: rgba(255,247,239,0.2);
  --ins-progress-fill: linear-gradient(90deg, #f6eee6, #ffffff);
  --ins-progress-dot-bg: #fffaf4;
  --ins-progress-dot-border: #151618;
  --ins-control-deck-bg: rgba(10,11,13,0.62);
  --ins-control-deck-border: rgba(255,245,236,0.12);
  --ins-control-icon: #fffaf4;
  --ins-play-bg: #fffaf4;
  --ins-play-icon: #18191b;
  --ins-lyrics-card-bg: rgba(24,26,29,0.66);
  --ins-lyrics-card-border: rgba(255,246,238,0.14);
  --ins-lyric-bg: rgba(255,249,243,0.08);
  --ins-lyric-bg-hover: rgba(255,249,243,0.14);
  --ins-lyric-highlight-bg: linear-gradient(145deg, rgba(255,251,246,0.98), rgba(233,227,220,0.92));
  --ins-lyric-highlight-text: #18191b;
  --ins-divider: linear-gradient(90deg, rgba(255,245,236,0.78), transparent);
}

:root[data-theme="red"] .player-container-ins {
  --ins-bg-wash-1: rgba(255,235,230,0.12);
  --ins-bg-wash-2: rgba(255,245,242,0.08);
  --ins-bg-gradient-start: #732124;
  --ins-bg-gradient-end: #431113;
  --ins-card-bg-top: rgba(101,29,32,0.9);
  --ins-card-bg-bottom: rgba(126,41,44,0.72);
  --ins-card-border: rgba(255,230,225,0.2);
  --ins-card-shadow: rgba(22,5,6,0.46);
  --ins-inner-glow: rgba(255,238,234,0.16);
  --ins-cover-card-top: rgba(116,37,40,0.92);
  --ins-cover-card-bottom: rgba(138,51,54,0.72);
  --ins-cover-stage-overlay: rgba(255,238,234,0.12);
  --ins-cover-stage-bg: #5d1d20;
  --ins-text-main: #fff6f3;
  --ins-text-muted: #f6d7d1;
  --ins-pill-bg: rgba(255,241,238,0.92);
  --ins-pill-text: #5a1718;
  --ins-pill-border: rgba(255,228,223,0.68);
  --ins-chip-bg: rgba(255,244,241,0.12);
  --ins-chip-border: rgba(255,229,224,0.28);
  --ins-chip-text: #fff6f3;
  --ins-panel-bg: rgba(77,20,22,0.68);
  --ins-panel-border: rgba(255,229,224,0.2);
  --ins-progress-track: rgba(255,235,231,0.24);
  --ins-progress-fill: linear-gradient(90deg, #ffe3dc, #fff8f6);
  --ins-progress-dot-bg: #fff8f5;
  --ins-progress-dot-border: #6b1b1c;
  --ins-control-deck-bg: rgba(33,11,14,0.58);
  --ins-control-deck-border: rgba(255,231,226,0.16);
  --ins-control-icon: #fff5f2;
  --ins-play-bg: #fff2ee;
  --ins-play-icon: #661b1c;
  --ins-lyrics-card-bg: rgba(80,21,23,0.62);
  --ins-lyrics-card-border: rgba(255,229,224,0.18);
  --ins-lyric-bg: rgba(255,244,241,0.1);
  --ins-lyric-bg-hover: rgba(255,244,241,0.18);
  --ins-lyric-highlight-bg: linear-gradient(145deg, rgba(255,248,246,0.98), rgba(255,229,224,0.86));
  --ins-lyric-highlight-text: #551416;
  --ins-divider: linear-gradient(90deg, rgba(255,239,235,0.9), transparent);
}

.ins-aura {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.8; pointer-events: none;
}
.ins-aura-one {
  width: 240px; height: 240px; top: -50px; left: -20px;
  background: rgba(255,255,255,0.6);
}
.ins-aura-two {
  width: 280px; height: 280px; right: -70px; bottom: -80px;
  background: rgba(255,255,255,0.3);
}

.ins-card-shell {
  position: relative; z-index: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px;
  width: 100%; height: 100%; padding: 20px;
  border-radius: 34px; overflow: hidden;
  background:
    linear-gradient(145deg, var(--ins-card-bg-top), var(--ins-card-bg-bottom)),
    var(--theme-panel-bg);
  border: 1px solid var(--ins-card-border);
  box-shadow:
    0 30px 70px var(--ins-card-shadow),
    inset 0 1px 0 var(--ins-inner-glow);
  backdrop-filter: blur(18px);
}

.ins-left-panel,
.ins-right-panel {
  min-height: 0; display: flex; flex-direction: column;
}

.ins-left-panel {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 12px;
}

.ins-cover-stage {
  position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  width: min(100%, 218px);
  justify-self: center;
  margin-top: 6px;
}

.ins-cover-card {
  width: 100%; aspect-ratio: 1; border-radius: 0; padding: 0;
  background: none; box-shadow: none;
}

.ins-pan-area {
  width: 100%; height: 100%; overflow: hidden; border-radius: 30px;
  background: linear-gradient(180deg, var(--ins-cover-stage-overlay), rgba(255,255,255,0.08)), var(--ins-cover-stage-bg);
}

.ins-pan-area .cover-img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.02);
}

.ins-floating-pill {
  position: absolute; left: 14px; bottom: 14px; transform: none;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--ins-pill-bg); color: var(--ins-pill-text);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--ins-pill-border);
}

.ins-pill-label {
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ins-text-muted);
}

.ins-floating-pill .ins-display-time {
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
}

.ins-track-block {
  width: 100%;
  padding: 4px 2px 0;
  text-align: left;
}

.ins-track-topline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
}

.ins-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 2.2px;
  color: var(--ins-text-muted); text-transform: uppercase;
}

.ins-mini-status {
  padding: 5px 10px; border-radius: 999px; background: var(--ins-chip-bg);
  border: 1px solid var(--ins-chip-border); color: var(--ins-chip-text);
  font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}

.ins-display-title {
  font-family: var(--font-family-ins-display); font-size: 34px; line-height: 0.96;
  letter-spacing: -0.6px; margin-bottom: 8px; color: var(--ins-text-main); text-align: left;
}

.ins-display-artist {
  font-size: 15px; font-weight: 600; letter-spacing: 0.2px; margin-bottom: 12px; color: var(--ins-text-muted); text-align: left;
}

.ins-display-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start;
}

.ins-display-tags .style-tag {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ins-chip-border);
  background: var(--ins-chip-bg); color: var(--ins-chip-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
}

.ins-player-card {
  margin-top: 8px; padding: 14px 16px 16px; border-radius: 26px;
  background: var(--ins-panel-bg); border: 1px solid var(--ins-panel-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.ins-player-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ins-text-muted);
}

.ins-player-subtitle {
  font-size: 10px; letter-spacing: 1.4px; opacity: 0.82;
}

.ins-player-timebar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; color: var(--ins-text-muted);
}

.ins-progress-track {
  position: relative; height: 8px; border-radius: 999px; margin-bottom: 12px;
  background: var(--ins-progress-track); overflow: hidden; cursor: ew-resize; touch-action: none;
}

.ins-progress-fill {
  width: 56%; height: 100%; border-radius: inherit;
  background: var(--ins-progress-fill);
}

.ins-progress-dot {
  position: absolute; top: 50%; left: 56%; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ins-progress-dot-bg); border: 3px solid var(--ins-progress-dot-border);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.ins-control-deck {
  margin-top: 20px;
  padding: 10px 12px 8px; border-radius: 24px;
  background: var(--ins-control-deck-bg); border: 1px solid var(--ins-control-deck-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

.ins-control-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.ins-control {
  width: 42px; height: 42px; border: none; border-radius: 50%; position: relative;
  background: transparent; color: var(--ins-control-icon); cursor: pointer;
  box-shadow: none;
}
.ins-control:active { transform: translateY(1px) scale(0.98); }

.ins-play-btn {
  width: 58px; height: 58px;
  background: var(--ins-play-bg);
  color: var(--ins-play-icon);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.ins-shuffle-btn::before,
.ins-repeat-btn::before {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-family-ins-body); font-size: 22px; font-weight: 800; line-height: 1;
}

.ins-shuffle-btn::before { content: '⇄'; }
.ins-repeat-btn::before { content: '↻'; }

.ins-prev-btn::before,
.ins-next-btn::before,
.ins-play-btn::before,
.ins-play-btn::after {
  content: ''; position: absolute;
}

.ins-prev-btn::before {
  top: 13px; left: 14px; width: 0; height: 0;
  border-right: 12px solid currentColor;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}

.ins-prev-btn::after {
  content: ''; position: absolute; top: 13px; left: 28px; width: 3px; height: 16px; background: currentColor;
}

.ins-next-btn::before {
  top: 13px; right: 14px; width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}

.ins-next-btn::after {
  content: ''; position: absolute; top: 13px; right: 28px; width: 3px; height: 16px; background: currentColor;
}

.ins-play-btn::before {
  top: 17px; left: 23px; width: 0; height: 0;
  border-left: 17px solid currentColor;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}

.ins-play-btn.playing::before,
.ins-play-btn.playing::after {
  top: 18px; width: 6px; height: 22px; background: currentColor; border-radius: 3px; border: none;
}

.ins-play-btn.playing::before {
  left: 20px;
}

.ins-play-btn.playing::after {
  left: 32px;
}

.ins-right-panel {
  min-height: 0;
}

.ins-lyrics-card {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  height: 100%; padding: 18px 18px 18px; border-radius: 30px;
  border: 1px solid var(--ins-lyrics-card-border);
  background: var(--ins-lyrics-card-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84);
}

.ins-lyrics-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ins-text-muted);
}

.ins-lyrics-divider {
  flex: 1; height: 1px; background: var(--ins-divider);
}

.ins-lyrics-container {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}

.ins-lyrics-container .lyric-line {
  display: block; padding: 8px 14px; border-radius: 18px; cursor: pointer;
  background: var(--ins-lyric-bg); color: var(--ins-text-muted);
  font-size: 15px; line-height: 1.32; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ins-lyrics-container .lyric-line:hover {
  color: var(--ins-text-main); background: var(--ins-lyric-bg-hover);
}

.ins-lyrics-container .lyric-line.highlighted {
  white-space: normal; overflow: visible; text-overflow: clip;
  padding: 16px 18px 18px; border-radius: 24px;
  font-family: var(--font-family-ins-display); font-size: 26px; font-weight: 700; line-height: 1.02;
  color: var(--ins-lyric-highlight-text);
  background: var(--ins-lyric-highlight-bg);
  box-shadow: 0 18px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ==========================================
   TEMPLATE 4: LUXURY EDITORIAL
=========================================== */
.player-container-luxury {
  --lux-bg: #f9f8f6;
  --lux-surface: rgba(255,255,255,0.62);
  --lux-surface-strong: rgba(255,255,255,0.82);
  --lux-panel-shadow: rgba(0,0,0,0.12);
  --lux-frame: rgba(26,26,26,0.88);
  --lux-line: rgba(26,26,26,0.18);
  --lux-line-strong: rgba(26,26,26,0.84);
  --lux-grid: rgba(26,26,26,0.16);
  --lux-ink: #1a1a1a;
  --lux-muted: #6c6863;
  --lux-accent: #d4af37;
  --lux-cover-bg: #ebe5de;
  --lux-lyric-highlight-bg: transparent;
  --lux-lyric-highlight-text: var(--lux-ink);
  --lux-top-glaze: rgba(255,255,255,0.54);
  --lux-bottom-glaze: rgba(255,255,255,0.1);
  --lux-corner-glow: rgba(212,175,55,0.12);
  --lux-soft-wash: rgba(255,255,255,0.42);
  --lux-edge-glaze: rgba(255,255,255,0.2);
  --lux-inner-outline: rgba(255,255,255,0.32);
  --lux-noise: rgba(26,26,26,0.22);
  --lux-noise-soft: rgba(26,26,26,0.1);
  --lux-cover-shadow: 0 6px 24px rgba(0,0,0,0.1);
  --lux-cover-inner-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  --lux-play-bg: #1a1a1a;
  --lux-play-ink: #f9f8f6;
  --lux-play-border: #1a1a1a;
  --lux-play-shadow: 0 4px 16px rgba(0,0,0,0.15);
  --lux-play-shadow-hover: 0 8px 24px rgba(0,0,0,0.22);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 26px 30px;
  font-family: var(--font-family-luxury-body);
  color-scheme: light;
  background:
    linear-gradient(180deg, var(--lux-top-glaze), var(--lux-bottom-glaze)),
    radial-gradient(circle at 18% 14%, var(--lux-corner-glow), rgba(212,175,55,0) 28%),
    var(--lux-bg);
  border: 1px solid var(--lux-frame);
  box-shadow:
    0 8px 32px var(--lux-panel-shadow),
    inset 0 0 0 1px var(--lux-inner-outline);
}

.player-container-luxury::before,
.player-container-luxury::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player-container-luxury::before {
  background:
    radial-gradient(circle at 76% 20%, var(--lux-soft-wash), rgba(255,255,255,0) 30%),
    linear-gradient(90deg, var(--lux-edge-glaze), rgba(255,255,255,0));
  opacity: 0.72;
}

.player-container-luxury::after {
  opacity: 0.05;
  background-image:
    radial-gradient(var(--lux-noise) 0.45px, transparent 0.45px),
    radial-gradient(var(--lux-noise-soft) 0.35px, transparent 0.35px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px, 18px 18px;
}

:root[data-theme="black"] .player-container-luxury {
  --lux-bg: #111111;
  --lux-surface: rgba(26,24,22,0.78);
  --lux-surface-strong: rgba(19,18,17,0.92);
  --lux-panel-shadow: rgba(0,0,0,0.44);
  --lux-frame: rgba(249,248,246,0.7);
  --lux-line: rgba(249,248,246,0.14);
  --lux-line-strong: rgba(249,248,246,0.56);
  --lux-grid: rgba(249,248,246,0.14);
  --lux-ink: #f5f0e9;
  --lux-muted: #c9c2b8;
  --lux-cover-bg: #1d1a17;
  --lux-lyric-highlight-bg: transparent;
  --lux-lyric-highlight-text: var(--lux-ink);
  --lux-top-glaze: rgba(255,248,240,0.06);
  --lux-bottom-glaze: rgba(255,248,240,0.015);
  --lux-corner-glow: rgba(212,175,55,0.06);
  --lux-soft-wash: rgba(255,248,240,0.05);
  --lux-edge-glaze: rgba(255,248,240,0.03);
  --lux-inner-outline: rgba(255,248,240,0.06);
  --lux-noise: rgba(249,248,246,0.2);
  --lux-noise-soft: rgba(249,248,246,0.08);
  --lux-cover-shadow: 0 12px 32px rgba(0,0,0,0.34);
  --lux-cover-inner-shadow: inset 0 0 0 1px rgba(249,248,246,0.06);
  --lux-play-bg: #0f0f0f;
  --lux-play-ink: #f9f8f6;
  --lux-play-border: rgba(249,248,246,0.18);
  --lux-play-shadow: 0 10px 24px rgba(0,0,0,0.38), 0 0 0 1px rgba(249,248,246,0.05);
  --lux-play-shadow-hover: 0 12px 30px rgba(0,0,0,0.46), 0 0 0 1px rgba(212,175,55,0.18);
  color-scheme: dark;
}

.luxury-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
}

.luxury-left-panel,
.luxury-lyrics-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
}

.luxury-left-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

.luxury-meta-head {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 14px;
}

.luxury-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.luxury-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.luxury-kicker-row-compact {
  margin-bottom: 6px;
}

.luxury-kicker-line {
  width: 26px;
  height: 1px;
  background: var(--lux-accent);
  flex-shrink: 0;
}

.luxury-kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.luxury-track-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.luxury-meta-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lux-ink);
}

.luxury-display-title {
  font-family: var(--font-family-luxury-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.9px;
  color: var(--lux-ink);
  margin-bottom: 8px;
}

.luxury-display-artist {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lux-muted);
  margin-bottom: 10px;
}

.luxury-display-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.luxury-display-tags .style-tag {
  padding: 6px 7px 5px;
  border: 1px solid var(--lux-line);
  background: transparent;
  border-radius: 0;
  color: var(--lux-ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.luxury-player-block {
  width: min(100%, 236px);
  align-self: flex-start;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--lux-line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.luxury-player-overline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.luxury-player-timebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lux-muted);
}

.luxury-player-timebar .luxury-display-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lux-ink);
}

.luxury-progress-track {
  position: relative;
  height: 1px;
  background: var(--lux-line-strong);
  width: 100%;
  cursor: ew-resize;
  touch-action: none;
}

.luxury-progress-fill {
  width: 56%;
  height: 100%;
  background: var(--lux-accent);
}

.luxury-progress-dot {
  position: absolute;
  top: 50%;
  left: 56%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: var(--lux-bg);
  border: 1px solid var(--lux-line-strong);
  box-shadow: 0 0 0 2px var(--lux-surface-strong);
}

.luxury-control-row {
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  grid-template-columns: 40px 40px 52px 40px 40px;
  width: 100%;
  column-gap: 6px;
  padding-top: 4px;
}

.luxury-control {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lux-line);
  background: transparent;
  color: var(--lux-ink);
  cursor: pointer;
  position: relative;
  transition:
    border-color 500ms ease-out,
    color 500ms ease-out,
    background-color 500ms ease-out,
    box-shadow 500ms ease-out;
}

.luxury-control:hover {
  border-color: var(--lux-accent);
  color: var(--lux-accent);
  box-shadow: inset 0 0 0 1px var(--lux-accent);
}

.luxury-control:focus-visible {
  outline: none;
  border-color: var(--lux-accent);
  box-shadow: inset 0 0 0 1px var(--lux-accent);
}

.luxury-control:active {
  transform: translateY(1px);
}

.luxury-play-btn {
  width: 52px;
  height: 52px;
  background: var(--lux-play-bg);
  color: var(--lux-play-ink);
  border-color: var(--lux-play-border);
  box-shadow: var(--lux-play-shadow);
}

.luxury-play-btn:hover {
  background: var(--lux-play-bg);
  color: var(--lux-play-ink);
  border-color: var(--lux-play-border);
  box-shadow: var(--lux-play-shadow-hover);
}

.luxury-heart-btn::before,
.luxury-prev-btn::before,
.luxury-next-btn::before,
.luxury-plus-btn::before,
.luxury-plus-btn::after,
.luxury-play-btn::before,
.luxury-play-btn::after {
  content: '';
  position: absolute;
}

.luxury-heart-btn::before {
  content: '♥';
  font-family: "Cubic 11", var(--font-family-pixel), monospace;
  font-size: 17px;
  line-height: 1;
  color: currentColor;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.luxury-prev-btn::before {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: translate(-10%, -50%);
}

.luxury-prev-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  background: currentColor;
  transform: translate(-8px, -50%);
}

.luxury-next-btn::before {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: translate(-90%, -50%);
}

.luxury-next-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  background: currentColor;
  transform: translate(6px, -50%);
}

.luxury-plus-btn::before,
.luxury-plus-btn::after {
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.luxury-plus-btn::before {
  width: 14px;
  height: 2px;
}

.luxury-plus-btn::after {
  width: 2px;
  height: 14px;
}

.luxury-play-btn::before {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 13px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translate(-35%, -50%);
}

.luxury-play-btn.playing::before,
.luxury-play-btn.playing::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 18px;
  background: currentColor;
  border: none;
  transform: translate(-50%, -50%);
}

.luxury-play-btn.playing::before {
  margin-left: -6px;
}

.luxury-play-btn.playing::after {
  margin-left: 6px;
}

.luxury-cover-frame {
  position: relative;
  width: min(100%, 236px);
  align-self: flex-start;
  padding-left: 0;
  padding-top: 0;
  margin-top: -2px;
}

.luxury-pan-area {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--lux-cover-bg);
  box-shadow: var(--lux-cover-shadow), var(--lux-cover-inner-shadow);
}

.luxury-pan-area .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 1800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.luxury-pan-area:hover .cover-img {
  filter: grayscale(0.12) contrast(1.06);
}

.luxury-lyrics-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
}

.luxury-lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lux-line-strong);
}

.luxury-lyrics-heading-group {
  min-width: 0;
}

.luxury-lyrics-heading {
  font-family: var(--font-family-luxury-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.8px;
  color: var(--lux-ink);
}

.luxury-lyrics-heading em {
  color: var(--lux-accent);
  font-style: italic;
  font-weight: 400;
}

.luxury-lyrics-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lux-muted);
  text-align: right;
  flex-shrink: 0;
}

.luxury-lyrics-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding-top: 14px;
}

.luxury-lyrics-container .lyric-line {
  display: block;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--lux-line);
  font-family: var(--font-family-luxury-lyric);
  color: var(--lux-muted);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition:
    color 500ms ease-out,
    border-color 500ms ease-out,
    transform 500ms ease-out;
}

.luxury-lyrics-container .lyric-line:hover {
  color: var(--lux-ink);
  border-color: var(--lux-accent);
}

.luxury-lyrics-container .lyric-line.highlighted {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding: 0 0 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--lux-accent);
  font-family: var(--font-family-luxury-lyric-highlight);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--lux-lyric-highlight-text);
  background: var(--lux-lyric-highlight-bg);
}

.luxury-lyrics-container .lyric-line.highlighted::before {
  content: '\201C';
  display: block;
  font-size: 56px;
  line-height: 0.58;
  color: var(--lux-accent);
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .luxury-control,
  .luxury-lyrics-container .lyric-line,
  .luxury-pan-area .cover-img {
    transition: none;
  }
}

/* ==========================================
   MOBILE DOCK
=========================================== */
.mobile-dock {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
  background: var(--editor-bg); border-top: 1px solid var(--editor-border); z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); color: #1a1a1a;
}
.dock-btn {
  flex: 1; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 800; color: #999; cursor: pointer; transition: all 0.2s;
}
.dock-btn.active { color: #1a1a1a; background: #f5f5f5; border-bottom: 3px solid #1a1a1a; }

@media (max-width: 900px) {
  .mobile-dock { display: flex; }
  .app-container { flex-direction: column; padding-bottom: 60px; }
  .editor-area { width: 100%; display: none; }
  .preview-area { width: 100%; display: none; }
  .app-container.show-editor .editor-area { display: flex; }
  .app-container.show-preview .preview-area { display: flex; }
  .preview-hint { display: none; }
}
