:root {
  --ink: #06080a;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.095);
  --line-soft: rgba(255, 255, 255, 0.055);
  --paper: #f3f0e8;
  --muted: #8e949d;
  --muted-dark: #626872;
  --champagne: #cbb78e;
  --champagne-light: #e5d8bc;

  /* 移动端安全区变量 */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

html { 
  scroll-behavior: smooth; 
  background: var(--ink);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button, input { 
  font: inherit; 
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.016), transparent 18%),
    radial-gradient(circle at 17% 12%, rgba(154,126,91,.09), transparent 28%),
    radial-gradient(circle at 82% 36%, rgba(71,114,112,.075), transparent 28%),
    var(--ink);
  padding-bottom: calc(40px + var(--sab));
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 68%);
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.ambient { 
  position: absolute; 
  border-radius: 50%; 
  filter: blur(90px); 
  opacity: .18; 
  pointer-events: none; 
}
.ambient-one { width: clamp(240px, 30vw, 360px); height: clamp(240px, 30vw, 360px); background: #7f6543; top: 110px; left: -120px; }
.ambient-two { width: clamp(220px, 25vw, 300px); height: clamp(220px, 25vw, 300px); background: #346a67; top: 510px; right: -90px; }

/* 页面通用宽度容器 */
.topbar, .hero, .player-stage, .library-section, footer { 
  width: min(1380px, calc(100% - clamp(24px, 5vw, 80px))); 
  margin-inline: auto; 
  position: relative; 
  z-index: 1; 
  padding-left: var(--sal);
  padding-right: var(--sar);
}

/* 顶部导航 */
.topbar { 
  height: clamp(70px, 10vh, 96px); 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
  border-bottom: 1px solid var(--line-soft); 
  padding-top: var(--sat);
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(229,216,188,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; box-shadow: inset 0 0 18px rgba(203,183,142,.08); flex-shrink: 0; }
.brand-mark i { width: 1px; height: 13px; background: var(--champagne-light); display: block; opacity: .85; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(3) { height: 9px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 14px; letter-spacing: .28em; font-weight: 650; }
.brand small { color: var(--muted-dark); font-size: 7px; letter-spacing: .35em; margin-top: 7px; }

.primary-nav { display: flex; gap: 32px; align-items: center; justify-content: center; }
.primary-nav a { font-size: 12px; color: var(--muted); transition: color .25s ease; position: relative; padding: 6px 0; }
.primary-nav a::after { content: ""; position: absolute; height: 1px; background: var(--champagne); left: 0; right: 100%; bottom: -4px; transition: right .25s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--paper); }
.primary-nav a.active::after { right: 0; }

.top-actions { display: flex; align-items: center; gap: 22px; justify-content: flex-end; }
.live-status { color: var(--muted-dark); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.live-status i { width: 5px; height: 5px; border-radius: 50%; background: #6fa28f; box-shadow: 0 0 0 4px rgba(111,162,143,.08); }
.admin-link { font-size: 11px; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; color: #c6c8c8; transition: border-color .25s, background .25s, color .25s; white-space: nowrap; }
.admin-link:hover { color: var(--paper); border-color: rgba(203,183,142,.4); background: rgba(203,183,142,.06); }
.admin-link span { color: var(--champagne); margin-left: 6px; }

/* Hero 主题文字 */
.hero { min-height: 240px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; padding: clamp(36px, 6vw, 60px) 0 clamp(24px, 4vw, 48px); gap: clamp(24px, 5vw, 80px); }
.eyebrow { margin: 0 0 16px; color: var(--champagne); text-transform: uppercase; letter-spacing: .21em; font-size: 9px; font-weight: 600; }
.hero h1 { margin: 0; font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-weight: 400; font-size: clamp(38px, 6vw, 94px); line-height: .92; letter-spacing: -.045em; }
.hero h1 em { font-weight: 400; color: #9ea1a1; font-style: italic; }
.hero-copy { color: var(--muted); line-height: 1.75; font-size: clamp(12px, 1.1vw, 13px); max-width: 390px; margin: 0 0 9px; justify-self: end; }

/* 播放舞台 */
.player-stage { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 16px; }
.visual-card, .now-card { 
  min-height: clamp(460px, 55vh, 580px); 
  border: 1px solid var(--line); 
  border-radius: 30px; 
  background: linear-gradient(145deg, rgba(255,255,255,.047), rgba(255,255,255,.018)); 
  box-shadow: 0 34px 95px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.04); 
  position: relative; 
  overflow: hidden; 
}
.visual-card { 
  background: #03050b; 
  border-color: rgba(113,149,255,.17); 
  box-shadow: 0 34px 100px rgba(0,0,0,.46), 0 0 70px rgba(72,92,187,.06), inset 0 1px rgba(255,255,255,.045); 
  display: flex;
  flex-direction: column;
}
.visual-card::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255,255,255,.035), transparent 26%, transparent 72%, rgba(91,218,229,.018)), radial-gradient(circle at 50% 48%, transparent 36%, rgba(0,0,0,.24) 100%); }
.visual-card::after { content: ""; position: absolute; z-index: 1; inset: 12px; pointer-events: none; border: 1px solid rgba(255,255,255,.026); border-radius: 22px; }
.card-topline, .visual-caption { position: absolute; left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); z-index: 2; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .16em; font-size: 8px; color: var(--muted-dark); }
.card-topline { top: clamp(16px, 3vw, 26px); }
.signal { color: #71e6dc; text-shadow: 0 0 18px rgba(79,244,215,.32); transition: color .25s ease, text-shadow .25s ease; }
.visual-caption { bottom: clamp(16px, 3vw, 24px); }
.visual-caption span:last-child { color: #b8c8ff; text-shadow: 0 0 14px rgba(87,113,255,.22); }
.visual-canvas { width: 100%; height: 100%; flex: 1; display: block; background: #03050b; }

.now-card { padding: clamp(24px, 3.5vw, 38px); display: flex; flex-direction: column; justify-content: space-between; }
.now-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.now-meta-actions { display: flex; align-items: center; gap: 10px; }
.quality-pill { border: 1px solid rgba(203,183,142,.2); color: var(--champagne); padding: 5px 10px; border-radius: 99px; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; background: rgba(203,183,142,.035); }
.track-heading { margin-top: clamp(24px, 5vh, 60px); }
.track-heading h2 { margin: 0; font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(34px, 3.8vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: .98; word-break: break-word; }
.track-heading p { margin: 14px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .055em; }
.track-heading p span { color: var(--muted-dark); margin: 0 4px; }

/* 特效选择器 */
.mode-selector { margin-top: clamp(20px, 3.5vh, 38px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mode-selector button { --fx: 203,183,142; position: relative; cursor: pointer; min-width: 0; height: 38px; overflow: hidden; border: 1px solid rgba(var(--fx),.13); border-radius: 10px; background: linear-gradient(145deg, rgba(var(--fx),.035), rgba(255,255,255,.012)); color: #646b77; padding: 0 6px; font-size: 8px; font-weight: 550; letter-spacing: .035em; transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-overflow: ellipsis; }
.mode-selector button::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: rgb(var(--fx)); box-shadow: 0 0 9px rgba(var(--fx),.72); vertical-align: middle; opacity: .42; transition: opacity .22s ease; flex-shrink: 0; }
.mode-selector button:hover { color: #dfe4ec; border-color: rgba(var(--fx),.32); transform: translateY(-1px); }
.mode-selector button.selected { color: #f6f8fb; background: linear-gradient(135deg, rgba(var(--fx),.17), rgba(var(--fx),.045)); border-color: rgba(var(--fx),.42); box-shadow: 0 8px 22px rgba(var(--fx),.075), inset 0 1px rgba(255,255,255,.055); }
.mode-selector button.selected::before { opacity: 1; }
.mode-selector button[data-mode="aurora"] { --fx: 6,182,212; }
.mode-selector button[data-mode="spectrum"] { --fx: 62,140,255; }
.mode-selector button[data-mode="orbital"] { --fx: 255,204,112; }
.mode-selector button[data-mode="nebula"] { --fx: 34,211,238; }
.mode-selector button[data-mode="tunnel"] { --fx: 244,63,94; }
.mode-selector button[data-mode="liquid"] { --fx: 59,130,246; }
.mode-selector button[data-mode="lightning"] { --fx: 34,211,238; }
.mode-selector button[data-mode="matrix"] { --fx: 59,130,246; }

/* 播放控制 */
.transport { margin-top: auto; padding-top: 24px; }
.time-row { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 9px; font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; -webkit-appearance: none; height: 3px; background: linear-gradient(90deg, var(--champagne) 0 var(--range-pct, 0%), rgba(255,255,255,.09) var(--range-pct, 0%)); border-radius: 99px; outline: none; cursor: pointer; }
.transport > input { width: 100%; display: block; margin-top: 11px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }

.transport-actions { display: grid; grid-template-columns: 38px 44px 58px 44px 1fr; gap: 10px; align-items: center; margin-top: 22px; }
.round-button { border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; flex-shrink: 0; }
.round-button:hover { transform: translateY(-2px); }
.round-button svg { width: 18px; height: 18px; }
.round-button.quiet { width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #a7aaad; }
.round-button.mode-button { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: #8c929a; position: relative; }
.round-button.mode-button:hover { color: var(--champagne); border-color: rgba(203,183,142,.35); }
.round-button.mode-button.active-loop-one { color: var(--champagne-light); border-color: rgba(203,183,142,.5); background: rgba(203,183,142,.08); }
.play-button { width: 58px; height: 58px; border: 0; color: #15120c; background: linear-gradient(145deg, #efe5d0, #bba67b); box-shadow: 0 9px 24px rgba(187,166,123,.16), inset 0 1px rgba(255,255,255,.55); }
.play-button svg { width: 20px; height: 20px; }

.volume-control { 
  margin-left: 6px; 
  display: grid; 
  grid-template-columns: 26px 1fr 24px; 
  align-items: center; 
  gap: 8px; 
  color: var(--muted-dark); 
  background: rgba(0,0,0,.25);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.04);
}
.mute-button { border: 0; background: transparent; color: inherit; padding: 0; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; transition: color .2s, transform .2s; }
.mute-button:hover { color: var(--paper); transform: scale(1.1); }
.mute-button.is-muted { color: #ff453a; }
.volume-control svg { width: 16px; height: 16px; flex-shrink: 0; }
.volume-control input { width: 100%; }
.volume-control span { font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }

/* 音乐库 */
.library-section { padding: clamp(48px, 8vw, 118px) 0 clamp(40px, 6vw, 88px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-heading h2 { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(28px, 4vw, 54px); font-weight: 400; letter-spacing: -.035em; margin: 0; }
.search-field { width: min(100%, 285px); height: 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--muted-dark); transition: border-color .25s; }
.search-field:focus-within { border-color: rgba(203,183,142,.55); }
.search-field svg { width: 16px; flex-shrink: 0; }
.search-field input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--paper); font-size: 11px; }
.search-field input::placeholder { color: var(--muted-dark); }

.library-table { border-top: 1px solid var(--line); width: 100%; }
.table-header, .track-row { display: grid; grid-template-columns: 50px minmax(200px, 1.4fr) minmax(120px, 1fr) 80px 48px; align-items: center; gap: 12px; }
.table-header { height: 44px; color: var(--muted-dark); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--line-soft); }
.track-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; min-height: 72px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, padding .2s; }
.track-row:hover { background: rgba(255,255,255,.022); color: var(--paper); padding-inline: 8px; }
.track-row.current { color: var(--paper); background: linear-gradient(90deg, rgba(203,183,142,.045), transparent 75%); }
.index-cell, .duration-cell { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--muted-dark); }
.title-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.title-cell > i { width: 35px; height: 35px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 5px 16px rgba(0,0,0,.2); opacity: .72; flex-shrink: 0; }
.title-cell > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.title-cell strong { font-size: 12px; font-weight: 540; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-cell small { color: var(--muted-dark); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-cell { font-size: 10px; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-action { color: var(--champagne); font-size: 9px; text-align: right; opacity: 0; transition: opacity .2s; }
.track-row:hover .row-action, .track-row.current .row-action { opacity: 1; }
.mini-levels { height: 14px; display: flex; gap: 2px; align-items: flex-end; }
.mini-levels i { width: 2px; background: var(--champagne); animation: level 1s ease-in-out infinite alternate; }
.mini-levels i:nth-child(1) { height: 7px; }
.mini-levels i:nth-child(2) { height: 13px; animation-delay: -.4s; }
.mini-levels i:nth-child(3) { height: 9px; animation-delay: -.7s; }
@keyframes level { to { height: 3px; opacity: .5; } }

.empty-state { padding: 56px 0; color: var(--muted-dark); font-family: "Iowan Old Style", serif; font-size: 18px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.library-footer, .admin-pagination-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.library-footer > p, .admin-pagination-footer > p { margin: 0; color: var(--muted-dark); font-size: 8px; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.library-pagination { justify-content: flex-end; padding-top: 0; }

.system-message { width: min(1380px, calc(100% - clamp(24px, 5vw, 80px))); margin: -22px auto 28px; position: relative; z-index: 3; padding: 12px 16px; border: 1px solid rgba(203,183,142,.18); border-radius: 12px; background: rgba(203,183,142,.045); color: #b7ad99; font-size: 10px; }
.system-message[data-tone="error"] { border-color: rgba(173,94,84,.24); background: rgba(173,94,84,.055); color: #c49a93; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid rgba(203,183,142,.62); outline-offset: 3px; }

/* 页脚 */
footer { min-height: 120px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: var(--muted-dark); font-size: 9px; padding: 24px 0; }
footer > div { display: flex; flex-direction: column; gap: 6px; }
footer strong { color: var(--paper); letter-spacing: .24em; font-size: 11px; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

/* ==========================================================================
   控制中心与弹窗系统 (Admin & Modal)
   ========================================================================== */
.admin-shell svg, .login-gate svg, .password-dialog svg { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.login-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal)); overflow-y: auto; background: radial-gradient(circle at 50% 34%, rgba(150,125,86,.11), transparent 25%), #06080a; }
.login-gate::before { content: ""; position: fixed; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 68px 68px; -webkit-mask-image: radial-gradient(circle at center, black, transparent 68%); mask-image: radial-gradient(circle at center, black, transparent 68%); }
.login-atmosphere { position: absolute; width: clamp(260px, 40vw, 360px); height: clamp(260px, 40vw, 360px); border: 1px solid rgba(203,183,142,.07); border-radius: 50%; box-shadow: 0 0 100px rgba(203,183,142,.025), inset 0 0 100px rgba(203,183,142,.025); }
.login-atmosphere::before, .login-atmosphere::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(203,183,142,.055); }
.login-atmosphere::before { inset: 38px; }
.login-atmosphere::after { inset: 76px; }

.login-card { position: relative; z-index: 1; width: min(420px, 100%); border: 1px solid var(--line); border-radius: 28px; background: rgba(11,13,16,.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 38px 110px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.04); padding: clamp(24px, 5vw, 36px); }
.login-card > .brand { margin-bottom: clamp(28px, 6vh, 56px); }
.login-heading { margin-bottom: 24px; }
.login-heading h1 { margin: 0; font-family: "Iowan Old Style", Baskerville, serif; font-size: clamp(28px, 4vw, 38px); font-weight: 400; letter-spacing: -.035em; }
.login-heading > p:last-child { margin: 10px 0 0; color: var(--muted-dark); font-size: 10px; line-height: 1.6; }
.login-card > label, .password-dialog label { display: block; margin-top: 16px; }
.login-card label span, .password-dialog label span { display: block; color: #777d84; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 6px; }
.login-card label input, .password-dialog label input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.022); color: var(--paper); padding: 0 13px; outline: 0; font-size: 11px; transition: border-color .2s, background .2s; }
.login-card label input:focus, .password-dialog label input:focus { border-color: rgba(203,183,142,.38); background: rgba(203,183,142,.025); }
.login-card label input::placeholder { color: #464b52; }
.form-error { margin: 14px 0 0; padding: 9px 11px; border: 1px solid rgba(173,94,84,.22); border-radius: 8px; background: rgba(173,94,84,.05); color: #c18e87; font-size: 9px; line-height: 1.5; }
.login-submit { width: 100%; height: 47px; margin-top: 24px; border: 0; border-radius: 11px; background: linear-gradient(145deg, #eadfc7, #b5a078); color: #17130d; display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 10px; font-weight: 650; cursor: pointer; box-shadow: 0 12px 30px rgba(181,160,120,.12), inset 0 1px rgba(255,255,255,.55); transition: transform .18s, filter .18s; }
.login-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.login-submit:disabled { opacity: .5; cursor: wait; }
.login-submit svg { width: 15px; }
.login-foot { display: block; margin-top: 20px; text-align: center; color: #444950; font-size: 7px; letter-spacing: .08em; }

.admin-shell { min-height: 100vh; min-height: 100dvh; background: #080a0d; color: var(--paper); display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line-soft); padding: calc(24px + var(--sat)) 20px calc(20px + var(--sab)); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 36%), #07090b; }
.admin-brand { padding: 0 8px 24px; border-bottom: 1px solid var(--line-soft); width: 100%; }
.admin-nav { padding: 20px 0; display: flex; flex-direction: column; gap: 5px; }
.admin-nav > p { margin: 18px 12px 6px; color: #484e56; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.admin-nav > p:first-child { margin-top: 0; }
.admin-nav button { height: 42px; border: 1px solid transparent; background: transparent; border-radius: 10px; color: #737982; display: grid; grid-template-columns: 19px 1fr auto; align-items: center; gap: 11px; padding: 0 12px; text-align: left; font-size: 11px; cursor: pointer; transition: .2s ease; }
.admin-nav button svg { width: 17px; height: 17px; }
.admin-nav button:hover { color: #c7c9c8; background: rgba(255,255,255,.02); }
.admin-nav button.active { color: var(--paper); border-color: rgba(203,183,142,.14); background: linear-gradient(90deg, rgba(203,183,142,.095), rgba(203,183,142,.025)); box-shadow: inset 3px 0 var(--champagne); }
.admin-nav button b { min-width: 22px; height: 19px; display: grid; place-items: center; border-radius: 999px; color: var(--champagne); background: rgba(203,183,142,.08); font-size: 8px; font-weight: 550; }
.admin-profile { margin-top: auto; padding: 16px 9px 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 35px 1fr 22px; align-items: center; gap: 10px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(145deg, #cfbd96, #77674a); color: #16130d; display: grid; place-items: center; font-size: 9px; font-weight: 750; box-shadow: inset 0 1px rgba(255,255,255,.45); }
.admin-profile > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.admin-profile strong { font-size: 10px; font-weight: 560; }
.admin-profile small { color: var(--muted-dark); font-size: 8px; }
.admin-profile button { border: 0; padding: 0; background: transparent; color: var(--muted-dark); cursor: pointer; }
.admin-profile svg { width: 18px; }

.admin-main { min-width: 0; padding: calc(30px + var(--sat)) clamp(16px, 3.5vw, 64px) calc(100px + var(--sab)); background: radial-gradient(circle at 78% 0, rgba(87,101,98,.065), transparent 26%); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.admin-topbar .eyebrow { margin-bottom: 8px; }
.admin-topbar h1 { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; letter-spacing: -.035em; margin: 0; }
.admin-actions { display: flex; align-items: center; gap: 16px; }
.admin-actions > span { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-actions > span i { width: 5px; height: 5px; background: #78a994; border-radius: 50%; box-shadow: 0 0 0 4px rgba(120,169,148,.07); }
.admin-actions a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: #b3b6b6; font-size: 10px; display: flex; align-items: center; gap: 8px; transition: .2s; white-space: nowrap; }
.admin-actions a:hover { color: var(--paper); border-color: rgba(203,183,142,.32); }
.admin-actions svg { width: 14px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.metrics-grid article { min-height: 140px; border: 1px solid var(--line-soft); border-radius: 19px; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.012)); position: relative; overflow: hidden; }
.metrics-grid article > p { margin: 0 0 16px; color: var(--muted); font-size: 9px; letter-spacing: .045em; }
.metrics-grid article > strong { display: block; font-family: "Iowan Old Style", Baskerville, serif; font-size: clamp(26px, 2.5vw, 33px); font-weight: 400; letter-spacing: -.035em; }
.metrics-grid article > strong small { font-family: inherit; font-size: 15px; color: var(--muted); }
.metrics-grid article > span { display: block; color: var(--muted-dark); font-size: 8px; margin-top: 8px; }
.metric-spark { position: absolute; right: 18px; bottom: 20px; height: 33px; display: flex; align-items: flex-end; gap: 4px; }
.metric-spark i { width: 3px; border-radius: 2px; background: #8d8067; opacity: .68; }
.metric-spark i:nth-child(1) { height: 10px; }.metric-spark i:nth-child(2) { height: 19px; }.metric-spark i:nth-child(3) { height: 14px; }.metric-spark i:nth-child(4) { height: 26px; }.metric-spark i:nth-child(5) { height: 22px; }.metric-spark i:nth-child(6) { height: 32px; }
.storage-ring { position: absolute; right: 18px; bottom: 18px; width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--champagne) 0 17deg, rgba(255,255,255,.06) 17deg); }
.storage-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0a0c0f; }
.storage-ring b { position: relative; z-index: 1; color: var(--muted); font-size: 7px; }
.quality-bars { position: absolute; right: 19px; bottom: 22px; display: flex; gap: 3px; align-items: center; }
.quality-bars i { width: 3px; height: 22px; background: linear-gradient(to top, #766a53, #d0bc92); border-radius: 3px; opacity: .22; }
.quality-bars i:nth-child(-n+4) { opacity: .78; }
.health-card { background: linear-gradient(145deg, rgba(94,135,118,.06), rgba(255,255,255,.012)) !important; }
.health-card > strong { font-family: inherit !important; font-size: 16px !important; margin-top: 6px; color: #b8c9bf; }
.health-orbit { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 1px solid rgba(120,169,148,.18); border-radius: 50%; display: grid; place-items: center; }
.health-orbit::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(120,169,148,.11); border-radius: 50%; }
.health-orbit i { width: 7px; height: 7px; border-radius: 50%; background: #79a48f; box-shadow: 0 0 16px rgba(121,164,143,.55); }

.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-bottom: 12px; }
.panel { border: 1px solid var(--line-soft); border-radius: 21px; background: linear-gradient(145deg, rgba(255,255,255,.027), rgba(255,255,255,.011)); padding: clamp(16px, 3vw, 25px); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading h2 { margin: 0; font-family: "Iowan Old Style", Baskerville, serif; font-size: clamp(20px, 2vw, 23px); font-weight: 400; letter-spacing: -.02em; }
.panel-heading > span, .panel-heading > button { color: var(--muted-dark); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; background: transparent; border: 0; padding: 5px 0; }
.panel-heading > button { cursor: pointer; }

.drop-area { width: 100%; min-height: 160px; border: 1px dashed rgba(203,183,142,.2); border-radius: 15px; background: rgba(203,183,142,.015); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; transition: .25s ease; padding: 16px; text-align: center; }
.drop-area:hover, .drop-area.uploading { border-color: rgba(203,183,142,.47); background: rgba(203,183,142,.035); }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--champagne); margin-bottom: 12px; }
.upload-icon svg { width: 17px; }
.drop-area strong { color: #c9cbc9; font-size: 11px; font-weight: 550; }
.drop-area small { margin-top: 5px; color: var(--muted-dark); font-size: 8px; }
.drop-area em { margin-top: 14px; font-style: normal; font-size: 7px; color: #464b52; letter-spacing: .12em; }
.drop-area.uploading .upload-icon { animation: uploadPulse 1.2s ease-in-out infinite alternate; }
@keyframes uploadPulse { to { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(203,183,142,.11); } }

.upload-foot { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 8px; margin-top: 13px; }
.upload-foot strong { color: #898d91; font-weight: 500; }
.activity-list { display: flex; flex-direction: column; }
.activity-list article { min-height: 53px; display: grid; grid-template-columns: 8px 38px 1fr; gap: 11px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); padding: 11px 0; }
.activity-list article:last-child { border-bottom: 0; }
.activity-dot { width: 5px; height: 5px; border-radius: 50%; margin-top: 4px; background: #666c73; }
.activity-dot.good { background: #7da08f; box-shadow: 0 0 0 3px rgba(125,160,143,.06); }
.activity-list time { color: #50555d; font-size: 8px; padding-top: 2px; }
.activity-list strong { display: block; font-size: 9px; font-weight: 550; color: #aeb1b2; }
.activity-list p { margin: 5px 0 0; color: var(--muted-dark); font-size: 8px; line-height: 1.45; }

.archive-panel { padding-bottom: 12px; }
.archive-heading { align-items: center; flex-wrap: wrap; }
.admin-search { width: min(100%, 220px); height: 36px; border: 1px solid var(--line-soft); border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 13px; color: var(--muted-dark); }
.admin-search svg { width: 14px; flex-shrink: 0; }
.admin-search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--paper); font-size: 9px; }
.admin-search input::placeholder { color: #4e535a; }

/* 管理端表格横向滑动容器 */
.admin-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-table::-webkit-scrollbar { display: none; }
.admin-table-head, .admin-track-row { display: grid; grid-template-columns: minmax(200px, 1.7fr) .55fr .55fr .85fr .7fr 32px; gap: 14px; align-items: center; }
.admin-table-head { height: 37px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: #4e535a; font-size: 7px; text-transform: uppercase; letter-spacing: .13em; }
.admin-track-row { min-height: 65px; border-bottom: 1px solid var(--line-soft); color: var(--muted-dark); font-size: 8px; transition: background .2s; }
.admin-track-row:last-child { border-bottom: 0; }
.admin-track-row:hover { background: rgba(255,255,255,.014); }
.admin-track-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-track-title > button { width: 31px; height: 31px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--champagne); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.admin-track-title > button svg { width: 13px; }
.admin-track-title > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-track-title strong { color: #bfc1c0; font-size: 10px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-track-title small { color: #4e535a; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.format-badge { border: 1px solid var(--line-soft); border-radius: 5px; padding: 3px 6px; color: #868b90; font-size: 7px; font-weight: 550; display: inline-block; width: max-content; }
.published-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #729983; margin-right: 7px; }
.more-button { width: 24px; height: 24px; border: 0; background: transparent; color: #555b62; cursor: pointer; padding: 3px; }
.more-button svg { width: 17px; }
.delete-button { border: 0; background: transparent; color: #7f6662; font-size: 8px; cursor: pointer; opacity: .65; transition: opacity .2s, color .2s; }
.delete-button:hover { color: #c48b82; opacity: 1; }
.panel-empty { min-height: 92px; display: grid; place-items: center; color: #51565d; font-size: 9px; }

.admin-pagination-footer { min-height: 62px; border-bottom: 0; padding-top: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding-top: 4px; }
.pagination button { min-width: 32px; height: 32px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.012); color: var(--muted-dark); font-size: 8px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.pagination button:hover { color: var(--paper); border-color: rgba(203,183,142,.32); transform: translateY(-1px); }
.pagination button.active { color: #17140e; background: linear-gradient(145deg, #efe5d0, #bba67b); border-color: #d7c5a0; box-shadow: 0 7px 18px rgba(187,166,123,.14); }
.pagination button:disabled { opacity: .25; cursor: default; background: transparent; color: var(--muted-dark); }
.pagination button:disabled:hover { transform: none; border-color: var(--line-soft); }
.page-ellipsis { min-width: 18px; text-align: center; color: #4c535e; font-size: 10px; }

.upload-queue { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; max-height: 160px; overflow-y: auto; }
.upload-task { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 11px; background: rgba(255,255,255,.014); }
.upload-task > div:first-child { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.upload-task strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9da0a1; font-size: 8px; font-weight: 500; }
.upload-task span { color: var(--champagne); font-size: 7px; white-space: nowrap; }
.upload-task > div:last-child { height: 2px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.055); }
.upload-task > div:last-child i { display: block; width: 0; height: 100%; background: var(--champagne); transition: width .15s linear; }
.upload-task.success span { color: #7da08f; }
.upload-task.failed span { color: #bd837b; }

.password-dialog { width: min(410px, calc(100% - 30px)); border: 1px solid var(--line); border-radius: 22px; padding: 0; color: var(--paper); background: #0b0d10; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.password-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.password-dialog form { position: relative; padding: clamp(20px, 4vw, 30px); }
.password-dialog h2 { margin: 0; font-family: "Iowan Old Style", Baskerville, serif; font-size: clamp(24px, 3vw, 29px); font-weight: 400; }
.password-dialog form > p:nth-of-type(2) { color: var(--muted-dark); font-size: 9px; line-height: 1.55; margin: 11px 0 20px; }
.dialog-close { position: absolute; top: 16px; right: 17px; width: 28px; height: 28px; border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }

/* 底部悬浮 Mini 播放条 */
.admin-mini-player { 
  position: fixed; 
  z-index: 10; 
  bottom: calc(18px + var(--sab)); 
  left: calc(236px + 4vw); 
  right: 4vw; 
  max-width: 640px; 
  margin: auto; 
  min-height: 62px; 
  border: 1px solid rgba(203,183,142,.19); 
  background: rgba(10,12,15,.88); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px; 
  box-shadow: 0 18px 50px rgba(0,0,0,.48); 
  display: grid; 
  grid-template-columns: 37px 140px 1fr auto; 
  align-items: center; 
  gap: 13px; 
  padding: 10px 13px; 
}
.mini-cover { width: 37px; height: 37px; border-radius: 9px; background: linear-gradient(145deg, #88775a, #243130); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); flex-shrink: 0; }
.admin-mini-player > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-mini-player small { color: var(--muted-dark); font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.admin-mini-player strong { font-size: 9px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-progress { height: 1px; background: rgba(255,255,255,.08); }
.mini-progress i { display: block; width: 42%; height: 1px; background: var(--champagne); }
.admin-mini-player button { border: 0; background: transparent; color: var(--champagne); font-size: 8px; cursor: pointer; padding: 6px; }

/* ==========================================================================
   响应式断点优化 (Responsive Breakpoints)
   ========================================================================== */

/* 1. 中大屏/小屏笔记本适配 (<= 1120px) */
@media (max-width: 1120px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-table-head, .admin-track-row { grid-template-columns: minmax(200px, 1.7fr) .55fr .65fr .8fr 28px; }
  .admin-table-head span:nth-child(4), .admin-track-row > span:nth-child(4) { display: none; }
}

/* 2. 平板端与中等屏幕 (<= 980px) */
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .primary-nav, .live-status { display: none; }
  
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-block: 40px 30px; }
  .hero-copy { justify-self: start; max-width: 100%; }
  
  .player-stage { grid-template-columns: 1fr; gap: 20px; }
  .visual-card { min-height: 380px; }
  .now-card { min-height: auto; }
  
  .table-header, .track-row { grid-template-columns: 44px minmax(180px, 1.5fr) 1fr 70px; }
  .table-header span:last-child, .row-action { display: none; }
  
  footer { grid-template-columns: 1fr 1fr; gap: 12px; }
  footer p:nth-child(2) { display: none; }
}

/* 3. 移动端横屏/大屏手机 (<= 768px) */
@media (max-width: 768px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; width: 100%; height: auto; padding: calc(14px + var(--sat)) 18px 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; align-items: center; }
  .admin-brand { border: 0; padding: 0; width: auto; }
  .admin-nav { margin-left: auto; padding: 0; flex-direction: row; }
  .admin-nav p, .admin-nav button:not(:first-of-type), .admin-profile { display: none; }
  .admin-nav button { width: 42px; padding: 0; display: grid; grid-template-columns: 1fr; place-items: center; }
  .admin-nav button span, .admin-nav button b { display: none; }
  
  .admin-main { padding: 24px 18px calc(100px + var(--sab)); }
  .admin-topbar { align-items: flex-end; }
  .admin-actions > span { display: none; }
  
  .admin-table-head, .admin-track-row { min-width: 580px; }
  .admin-mini-player { left: 16px; right: 16px; grid-template-columns: 37px 110px 1fr; }
  .admin-mini-player button { display: none; }
}

/* 4. 标准移动端纵屏设备 (<= 620px) */
@media (max-width: 620px) {
  .topbar { height: 68px; }
  .brand strong { font-size: 13px; }
  .admin-link { padding: 7px 12px; font-size: 10px; }
  
  .visual-card { min-height: 320px; border-radius: 20px; }
  .now-card { padding: 20px; border-radius: 20px; }
  .track-heading { margin-top: 24px; }
  .track-heading h2 { font-size: clamp(28px, 8vw, 42px); }

  /* 移动端特效选择器：优化为支持滑动手势的胶囊栏 */
  .mode-selector { 
    display: flex; 
    overflow-x: auto; 
    padding-bottom: 6px; 
    margin-top: 24px; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
  }
  .mode-selector::-webkit-scrollbar { display: none; }
  .mode-selector button { 
    flex-shrink: 0; 
    height: 34px; 
    padding: 0 12px; 
    font-size: 8px; 
  }
  
  /* 播放器按键组响应（适配模式切换与静音按钮） */
  .transport-actions { 
    grid-template-columns: 36px 42px 54px 42px; 
    justify-content: space-between;
  }
  .volume-control { 
    grid-column: 1 / -1; 
    margin: 14px 0 0; 
  }
  
  /* 音乐库表格适配：精简为单行优雅流 */
  .section-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .search-field { width: 100%; }
  .table-header { display: none; }
  .track-row { 
    grid-template-columns: 28px minmax(0, 1fr) 46px; 
    min-height: 64px; 
    gap: 8px; 
    padding-inline: 0;
  }
  .album-cell { display: none; }
  .duration-cell { text-align: right; }
  .title-cell > i { width: 32px; height: 32px; }
  
  .library-footer, .admin-pagination-footer { 
    align-items: flex-start; 
    flex-direction: column; 
    gap: 12px; 
    padding: 16px 0; 
  }
  .library-pagination, .admin-pagination-footer .pagination { 
    width: 100%; 
    justify-content: flex-start; 
    overflow-x: auto; 
  }
  
  footer { 
    min-height: auto; 
    grid-template-columns: 1fr; 
    gap: 14px; 
    text-align: left; 
  }
  footer p:last-child { text-align: left; }
}

/* 5. 极端微小屏设备 (<= 380px，如 iPhone SE, 折叠屏外屏) */
@media (max-width: 380px) {
  .brand small { display: none; }
  .brand-mark { width: 28px; height: 28px; }
  .hero h1 { font-size: 32px; }
  .transport-actions { gap: 6px; }
  .round-button.quiet { width: 38px; height: 38px; }
  .play-button { width: 50px; height: 50px; }
}

/* 6. 无障碍动画减弱 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { 
    animation-duration: .01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: .01ms !important; 
  }
}

/* ==========================================================================
   硬件指示灯系统
   ========================================================================== */
/* 指示灯容器 */
.led-indicators {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* 基础指示灯圆点 */
.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.2s, box-shadow 0.2s;
}

/* 红灯：1秒闪烁一次 (0.5s亮 / 0.5s灭) */
.led-red {
  background-color: #ff3b30;
  box-shadow: 0 0 7px #ff3b30;
  animation: led-blink-red 1s steps(1, start) infinite;
}

/* 绿灯：默认熄灭状态 */
.led-green {
  background-color: #0f2c17;
  box-shadow: none;
  opacity: 0.35;
}

/* 绿灯激活：每秒闪烁5下（周期 0.2s，即 1s 闪 5 次） */
.led-green.active {
  opacity: 1;
  background-color: #30d158;
  box-shadow: 0 0 7px #30d158;
  animation: led-blink-green 0.2s steps(1, start) infinite;
}

/* 闪烁关键帧动画 */
@keyframes led-blink-red {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 7px #ff3b30;
  }
  50% {
    opacity: 0.12;
    box-shadow: none;
  }
}

@keyframes led-blink-green {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 7px #30d158;
  }
  50% {
    opacity: 0.1;
    box-shadow: none;
  }
}