:root,
html[data-theme="night"] {
  --bg-page: #000000;
  --bg-shell: rgba(6, 11, 18, 0.72);
  --bg-card: rgba(10, 16, 24, 0.84);
  --bg-card-subtle: rgba(12, 20, 31, 0.74);
  --bg-control: rgba(12, 20, 30, 0.90);
  --bg-volume: rgba(5, 10, 16, 0.78);
  --bg-platform: rgba(10, 17, 26, 0.88);
  --bg-menu: #08101a;
  --brand-blue: #0079c1;
  --brand-blue-light: #1da1f2;
  --brand-blue-dark: #005991;
  --brand-blue-glow: rgba(0, 121, 193, 0.45);
  --brand-blue-border: rgba(0, 121, 193, 0.36);
  --text-primary: #ffffff;
  --text-secondary: #a8bfd4;
  --text-muted: #6f879e;
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shell-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 121, 193, 0.16);
  --slider-track-empty: rgba(255, 255, 255, 0.16);
}

html[data-theme="day"] {
  --bg-page: #ffffff;
  --bg-shell: rgba(255, 255, 255, 0.82);
  --bg-card: rgba(246, 250, 255, 0.92);
  --bg-card-subtle: rgba(240, 247, 255, 0.88);
  --bg-control: rgba(240, 247, 255, 0.95);
  --bg-volume: rgba(232, 243, 254, 0.85);
  --bg-platform: rgba(242, 248, 255, 0.94);
  --bg-menu: #ffffff;
  --brand-blue: #0079c1;
  --brand-blue-light: #0079c1;
  --brand-blue-dark: #005991;
  --brand-blue-glow: rgba(0, 121, 193, 0.28);
  --brand-blue-border: rgba(0, 121, 193, 0.32);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --card-shadow: 0 10px 28px rgba(0, 121, 193, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shell-shadow: 0 20px 55px rgba(0, 121, 193, 0.15);
  --slider-track-empty: rgba(0, 121, 193, 0.18);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Full-Viewport Background Canvas for Snow / Summer Sun / Spring / Autumn */
#ambianceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Radial Glow Layer */
.season-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 121, 193, 0.20) 0%, rgba(0, 0, 0, 0) 68%),
    radial-gradient(circle at 85% 8%, rgba(0, 121, 193, 0.12) 0%, rgba(0, 0, 0, 0) 45%);
  transition: background 0.6s ease;
}

html[data-theme="day"] .season-glow {
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 121, 193, 0.10) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 85% 8%, rgba(56, 182, 255, 0.12) 0%, rgba(255, 255, 255, 0) 48%);
}

.season-glow.summer-active {
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 200, 75, 0.25) 0%, rgba(255, 160, 40, 0.08) 32%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 50% 38%, rgba(0, 121, 193, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
}

html[data-theme="day"] .season-glow.summer-active {
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 195, 55, 0.28) 0%, rgba(255, 170, 30, 0.08) 36%, rgba(255, 255, 255, 0) 64%),
    radial-gradient(circle at 50% 38%, rgba(0, 121, 193, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
}

.season-glow.winter-active {
  background:
    radial-gradient(circle at 50% 10%, rgba(120, 205, 255, 0.18) 0%, rgba(0, 121, 193, 0.14) 40%, rgba(0, 0, 0, 0) 72%);
}

html[data-theme="day"] .season-glow.winter-active {
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 121, 193, 0.14) 0%, rgba(56, 182, 255, 0.08) 42%, rgba(255, 255, 255, 0) 75%);
}

/* Responsive Web Centering Wrapper */
.web-viewport {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}

/* Main App Shell Card */
.app-shell {
  width: 100%;
  max-width: 440px;
  min-height: 650px;
  background: var(--bg-shell);
  border: 1px solid var(--brand-blue-border);
  border-radius: 26px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shell-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* When opened as a compact popup window, fit flush to viewport */
@media (max-width: 460px) and (max-height: 740px) {
  .web-viewport {
    padding: 0;
    min-height: 100vh;
  }
  .app-shell {
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
}

/* Top Bar: Donate Pill, Popout, Day/Night Button & Flag Language Selector */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  z-index: 20;
}

.donate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 121, 193, 0.22), rgba(0, 121, 193, 0.10));
  border: 1px solid var(--brand-blue);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 0 12px rgba(0, 121, 193, 0.22);
  transition: all 0.22s ease;
}

.donate-pill:hover {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 121, 193, 0.55);
  transform: translateY(-1px);
}

/* Red Heart Icon on Support Us Button */
.donate-icon {
  width: 14px;
  height: 14px;
  color: #ff2a4b;
  filter: drop-shadow(0 0 5px rgba(255, 42, 75, 0.65));
  animation: heartBeat 2.2s infinite ease-in-out;
  flex-shrink: 0;
}

.donate-pill:hover .donate-icon {
  color: #ff3b5c;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.8));
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.top-right-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-control);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue-light);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-pill-btn svg {
  width: 13px;
  height: 13px;
}

.icon-pill-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

/* Day / Night Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-control);
  border: 1px solid var(--brand-blue-border);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

.theme-icon {
  width: 13px;
  height: 13px;
  color: var(--brand-blue-light);
  flex-shrink: 0;
}

html[data-theme="day"] #themeSunIcon {
  color: #f59e0b;
}

.theme-mode-text {
  white-space: nowrap;
}

/* Country Flag Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-control);
  border: 1px solid var(--brand-blue-border);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-trigger-btn:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

.flag-svg-wrap {
  width: 18px;
  height: 13px;
  border-radius: 2.5px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.28);
  flex-shrink: 0;
}

.flag-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-name-text {
  white-space: nowrap;
}

.chevron-icon {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 142px;
  background: var(--bg-menu);
  border: 1px solid var(--brand-blue);
  border-radius: 12px;
  padding: 5px;
  list-style: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

html[data-theme="day"] .lang-menu {
  box-shadow: 0 10px 28px rgba(0, 121, 193, 0.22);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(0, 121, 193, 0.18);
}

.lang-option.active {
  background: var(--brand-blue);
  color: #ffffff;
}

/* Greeting & Ambiance Section */
.greeting-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--brand-blue-border);
  border-radius: 16px;
  padding: 10px 13px;
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.greeting-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.greeting-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0, 121, 193, 0.4));
}

.greeting-texts {
  flex: 1;
  min-width: 0;
}

.greeting-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.greeting-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-clock {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue-light);
  background: rgba(0, 121, 193, 0.14);
  border: 1px solid rgba(0, 121, 193, 0.32);
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.greeting-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ambiance Controls Bar */
.ambiance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 121, 193, 0.18);
  gap: 8px;
}

.ambiance-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.ambiance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  box-shadow: 0 0 8px var(--brand-blue-light);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ambiance-dot.off {
  background: #64748b;
  box-shadow: none;
}

.ambiance-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 121, 193, 0.14);
  border: 1px solid rgba(0, 121, 193, 0.4);
  color: var(--text-primary);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-chip:hover {
  background: rgba(0, 121, 193, 0.28);
  border-color: var(--brand-blue);
}

.ambiance-toggle {
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.3);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ambiance-toggle.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 121, 193, 0.45);
}

/* Main Player Card */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--brand-blue-border);
  border-radius: 20px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 6px;
}

.brand-logo {
  width: 100%;
  max-width: 315px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 121, 193, 0.26));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.player-card.playing .brand-logo {
  filter: drop-shadow(0 2px 16px rgba(0, 121, 193, 0.55));
}

/* Now Playing / Status Badge */
.status-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(0, 121, 193, 0.12);
  border: 1px solid rgba(0, 121, 193, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  overflow: hidden;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f879e;
  flex-shrink: 0;
}

.status-badge.live {
  background: rgba(0, 121, 193, 0.20);
  border-color: var(--brand-blue);
  color: var(--text-primary);
  box-shadow: 0 0 14px rgba(0, 121, 193, 0.25);
}

.status-badge.live .status-pulse {
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  animation: livePulse 1.3s infinite ease-in-out;
}

html[data-theme="day"] .status-badge.live .status-pulse {
  background: #0079c1;
  box-shadow: 0 0 8px rgba(0, 121, 193, 0.7);
}

.status-text-viewport {
  max-width: 310px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.status-text {
  display: inline-block;
  white-space: nowrap;
}

.status-text.scrolling {
  padding-right: 28px;
  animation: songMarquee 12s linear infinite;
}

@keyframes songMarquee {
  0%, 15% {
    transform: translateX(0%);
  }
  85%, 100% {
    transform: translateX(calc(-100% + 260px));
  }
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

/* Equalizer Visualizer */
.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 24px;
  width: 100%;
  max-width: 240px;
}

.visualizer .bar {
  width: 4px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38b6ff 0%, var(--brand-blue) 100%);
  opacity: 0.35;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.visualizer.active .bar {
  opacity: 0.95;
  animation: eqBounce 0.85s infinite ease-in-out alternate;
}

.visualizer.active .bar:nth-child(1)  { animation-duration: 0.55s; animation-delay: 0.05s; }
.visualizer.active .bar:nth-child(2)  { animation-duration: 0.75s; animation-delay: 0.15s; }
.visualizer.active .bar:nth-child(3)  { animation-duration: 0.62s; animation-delay: 0.25s; }
.visualizer.active .bar:nth-child(4)  { animation-duration: 0.88s; animation-delay: 0.08s; }
.visualizer.active .bar:nth-child(5)  { animation-duration: 0.52s; animation-delay: 0.18s; }
.visualizer.active .bar:nth-child(6)  { animation-duration: 0.70s; animation-delay: 0.30s; }
.visualizer.active .bar:nth-child(7)  { animation-duration: 0.64s; animation-delay: 0.12s; }
.visualizer.active .bar:nth-child(8)  { animation-duration: 0.48s; animation-delay: 0.22s; }
.visualizer.active .bar:nth-child(9)  { animation-duration: 0.58s; animation-delay: 0.04s; }
.visualizer.active .bar:nth-child(10) { animation-duration: 0.76s; animation-delay: 0.19s; }
.visualizer.active .bar:nth-child(11) { animation-duration: 0.60s; animation-delay: 0.27s; }
.visualizer.active .bar:nth-child(12) { animation-duration: 0.82s; animation-delay: 0.10s; }
.visualizer.active .bar:nth-child(13) { animation-duration: 0.54s; animation-delay: 0.21s; }
.visualizer.active .bar:nth-child(14) { animation-duration: 0.68s; animation-delay: 0.14s; }
.visualizer.active .bar:nth-child(15) { animation-duration: 0.74s; animation-delay: 0.06s; }
.visualizer.active .bar:nth-child(16) { animation-duration: 0.59s; animation-delay: 0.24s; }

@keyframes eqBounce {
  0%   { height: 4px; }
  50%  { height: 14px; }
  100% { height: 24px; }
}

/* Play / Pause Button */
.play-control-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.play-pause-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #38b6ff;
  background: radial-gradient(circle at 30% 30%, #1da1f2, var(--brand-blue) 65%, var(--brand-blue-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(0, 121, 193, 0.50),
    inset 0 2px 4px rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 32px rgba(0, 121, 193, 0.80),
    inset 0 2px 6px rgba(255, 255, 255, 0.35);
}

.play-pause-btn:active {
  transform: scale(0.97);
}

.play-btn-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 121, 193, 0.55);
  opacity: 0;
  pointer-events: none;
}

.play-pause-btn.playing .play-btn-ring {
  opacity: 1;
  animation: ringRipple 2s infinite ease-out;
}

@keyframes ringRipple {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.transport-icon {
  width: 30px;
  height: 30px;
}

#playIcon {
  margin-left: 3px;
}

.hidden {
  display: none !important;
}

.play-action-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Volume Panel */
.volume-panel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-volume);
  border: 1px solid rgba(0, 121, 193, 0.26);
  border-radius: 12px;
  padding: 8px 11px;
  transition: background 0.3s ease;
}

.vol-icon-btn,
.vol-step-btn {
  background: rgba(0, 121, 193, 0.14);
  border: 1px solid rgba(0, 121, 193, 0.35);
  color: var(--text-primary);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.vol-icon-btn:hover,
.vol-step-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.vol-icon-btn.muted {
  background: rgba(220, 53, 69, 0.20);
  border-color: rgba(220, 53, 69, 0.65);
  color: #ef4444;
}

.vol-icon-btn svg {
  width: 15px;
  height: 15px;
}

.slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue) 80%, var(--slider-track-empty) 80%);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--brand-blue);
  box-shadow: 0 0 8px rgba(0, 121, 193, 0.65);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.volume-value {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue-light);
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Bottom Section: 4 Equal-Sized Platform Icons + Footer Credits */
.bottom-dock {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.platform-btn {
  height: 54px;
  background: var(--bg-platform);
  border: 1px solid var(--brand-blue-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 121, 193, 0.06);
}

.platform-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 121, 193, 0.38);
  transform: translateY(-2px);
}

.platform-svg {
  width: 20px;
  height: 20px;
  color: var(--brand-blue-light);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.platform-btn:hover .platform-svg {
  color: #ffffff;
  transform: scale(1.08);
}

.platform-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.platform-btn:hover .platform-label {
  color: #ffffff;
}

/* Footer Credits Bar */
.credits-bar {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-top: 1px solid rgba(0, 121, 193, 0.2);
  letter-spacing: 0.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-link {
  color: var(--brand-blue-light);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.credit-link:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

html[data-theme="night"] .credit-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--brand-blue);
  text-decoration: none;
}

.credit-sep {
  margin: 0 5px;
  color: rgba(0, 121, 193, 0.6);
}
