/* Grayscale Monochrome Theme */
:root {
  --bg-light: #fff;
  --bg-dark: #181818;
  --text-light: #222;
  --text-dark: #eee;
  --gray: #888;
  --gray-light: #f5f5f5;
  --gray-dark: #222;
  --gray-border: #ddd;
  --gray-hover: #e0e0e0;
  --gray-hover-dark: #333;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius-main: 5px;
}
html, body {
  overflow-x: hidden;
}
body {
  margin: 0 auto;
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}
.theme-auto, .theme-light {
  background: var(--bg-light);
  color: var(--text-light);
}
.theme-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.site-header {
  position: relative;
  width: 100vw;
  height: 64px;
  background: none !important;
  box-shadow: none;
  display: block;
  z-index: 100;
}
.site-logo-top {
  position: absolute;
  top: 0.7rem;
  left: 1.2rem;
  z-index: 101;
  display: block;
}
.theme-toggle-top {
  position: absolute;
  top: 0.7rem;
  right: 1.2rem;
  z-index: 101;
}
.site-logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 56px;
}
.site-title, .contact-link {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s, color 0.2s;
}
.site-title:hover, .site-title:focus, .contact-link:hover, .contact-link:focus {
  text-decoration: underline;
  color: #fff;
}
.contact-link {
  margin-left: 2rem;
}
.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: outline 0.2s;
  outline: none;
  box-sizing: border-box;
  border: none !important;
}
.theme-dark .theme-toggle-icon {
  border: none !important;
}
.theme-toggle-icon:focus, .theme-toggle-icon:hover {
  background: none;
}
.theme-toggle-icon svg {
  width: 20px;
  height: 20px;
  color: inherit !important;
  fill: currentColor !important;
}
.container {
  max-width: 96vw;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.category-filters {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-btn {
  background: var(--gray-light);
  color: var(--text-light);
  border: 1px solid var(--gray-border);
  border-radius: 2em;
  padding: 0.4em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.category-btn.active, .category-btn:focus {
  background: #222;
  color: #fff;
  border-color: #222;
}
.category-btn:hover {
  background: var(--gray-hover);
  color: #222;
}
.theme-dark .category-btn {
  background: #222;
  color: #eee;
  border-color: #444;
}
.theme-dark .category-btn.active, .theme-dark .category-btn:focus {
  background: #fff;
  color: #222;
  border-color: #fff;
}
.theme-dark .category-btn:hover {
  background: var(--gray-hover-dark);
  color: #fff;
}
.file-filters {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.7rem 0 1.2rem 0;
}
.file-filters a {
  color: inherit;
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-main);
  transition: color 0.2s, text-decoration 0.2s;
}
.file-filters a.active {
  text-decoration: underline;
  color: #fff;
}
.theme-dark .file-filters a.active {
  color: #fff;
}
.theme-light .file-filters a.active {
  color: #222;
}
.songs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
.song-card {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-main);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: none;
  padding: 0;
}
.song-card:hover, .song-card:focus {
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.02);
}
.song-card-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #222;
  border-radius: var(--radius-main);
}
.theme-dark .song-card {
  background: rgba(32,32,32,0.85);
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.theme-dark .file-btn {
  background: rgba(32,32,32,0.7);
  color: #ccc;
  border-color: #333;
}
.theme-dark .file-btn.active, .theme-dark .file-btn:focus {
  background: rgba(80,80,80,0.7);
  color: #eee;
  border-color: #444;
}
.theme-dark .file-btn:hover {
  background: #232323;
  color: #fff;
  border-color: #444;
}
.modal-nav-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  z-index: 20;
  pointer-events: auto;
}
.modal-nav-btn {
  background: rgba(255,255,255,0.55);
  border: 1px solid #eaeaea;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  outline: none;
}
.modal-nav-btn svg {
  color: #444;
  width: 20px;
  height: 20px;
}
.modal-nav-btn:focus, .modal-nav-btn:hover {
  background: #ededed;
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.theme-dark .modal-nav-bar {
  background: none;
}
.theme-dark .modal-nav-btn {
  background: rgba(32,32,32,0.65);
  border: 1px solid #333;
}
.theme-dark .modal-nav-btn svg {
  color: #eee;
}
.theme-dark .modal-nav-btn:focus, .theme-dark .modal-nav-btn:hover {
  background: #444;
  border-color: #888;
}
.site-header.glassy-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem auto 1.2rem auto;
  max-width: 420px;
  border-radius: 2.5em;
  background: rgba(255,255,255,0.38);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
  backdrop-filter: blur(22px) saturate(1.5);
  padding: 0.2em 1.2em;
  min-height: 48px;
  position: relative;
  border: none;
}
.theme-dark .site-header.glassy-pill {
  background: rgba(32,32,32,0.48);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
}
.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.header-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,24,24,0.98);
}
.modal-backdrop {
  display: none;
}
.modal-content {
  position: relative;
  z-index: 2;
  background: none;
  color: #eee;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#modal-video-meta {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-embed {
  margin: 0;
  text-align: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed iframe {
  width: 80vw;
  height: 80vh;
  max-width: 1280px;
  max-height: 720px;
  border: none;
  border-radius: var(--radius-main);
  background: #000;
}
.modal-close {
  position: absolute;
  top: 2.5vh;
  right: 2.5vw;
  z-index: 10;
  background: rgba(245,245,245,0.85);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s;
}
.modal-close:hover, .modal-close:focus {
  background: #222;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.modal-close svg {
  width: 40px;
  height: 40px;
  color: #222;
}
.modal-close:hover svg, .modal-close:focus svg {
  color: #fff;
}
.file-dropdown { display: none !important; }
@media (max-width: 700px) {
  .site-header.glassy-pill {
    flex-direction: column;
    padding: 0.5em 0.7em;
    min-height: 80px;
    max-width: 99vw;
  }
  .header-center { margin: 0.7em 0; }
  .site-logo { height: 36px; max-width: 80px; }
  .file-filters {
    margin: 1.2rem 0 0.7rem 0;
    gap: 0.4rem;
  }
  .file-btn {
    font-size: 1em;
    padding: 0.4em 1.1em;
  }
  .modal-nav-bar {
    bottom: 2vh;
    gap: 0.7rem;
  }
  .songs-card-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin: 0.7rem;
  }
  .song-card {
    border-radius: 0.7em;
  }
  .modal-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
  }
  #modal-video-meta, .video-embed {
    width: 100vw;
    height: 100vw;
    min-height: 60vw;
    max-height: 100vh;
  }
  .video-embed iframe {
    width: 98vw;
    height: 56vw;
    min-height: 180px;
    max-height: 60vh;
  }
  .modal-close {
    width: 44px;
    height: 44px;
    top: 1.5vh;
    right: 2vw;
  }
  body, .container, .songs-card-grid {
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }
} 