/*
Theme Name: Album Vault
Theme URI: https://example.com/album-vault
Author: Album Vault
Author URI: https://example.com
Description: A theme for adding, rating, and sorting your album collection. Logged-in users can add albums with artist, genre, sub-genre, tags, an external link, comments, and rating, plus a cover image; the collection can be searched, filtered, and sorted by artist, genre, sub-genre, tags, or rating.
Version: 2.46.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: album-vault
*/

:root {
  --bg: #12131a;
  --panel: #1b1d27;
  --panel-2: #232633;
  --border: #2e3140;
  --text: #eceef2;
  --muted: #9aa0ae;
  --accent: #ff5a6e;
  --accent-2: #ffb703;
}
body.light-theme {
  --bg: #f5f6f9;
  --panel: #ffffff;
  --panel-2: #eef0f4;
  --border: #dde1e8;
  --text: #1b1d24;
  --muted: #656b78;
  --accent: #e0435a;
  --accent-2: #b97400;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; }

.site-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--border);
}
.site-header .site-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}
.site-header .site-title a { text-decoration: none; }
.site-header .site-tagline { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer {
  padding: 20px 32px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.album-vault-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}

nav.site-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}
nav.site-nav a { color: var(--muted); text-decoration: none; }
nav.site-nav a.active { color: var(--text); font-weight: 600; }

.analytics-wrap { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 160px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; text-align: center;
}
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.pie-chart {
  width: 220px; height: 220px; border-radius: 50%; flex-shrink: 0;
  background: var(--panel-2);
}
.pie-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 220px; }
.pie-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pie-legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pie-legend-name { flex: 1; color: var(--text); }
.pie-legend-value { color: var(--muted); font-variant-numeric: tabular-nums; }
button.pie-legend-item {
  background: none; border: none; color: var(--text); font-family: inherit;
  width: 100%; text-align: left; padding: 4px 2px; border-radius: 4px; cursor: pointer;
}
button.pie-legend-item:hover { background: var(--panel-2); }
button.pie-legend-item.active .pie-legend-name { color: var(--accent); font-weight: 700; }
.analytics-clear-btn {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 12px; text-decoration: underline; margin-left: 8px; text-transform: none;
  letter-spacing: normal; font-weight: 400;
}
.artis-genre-group { margin-bottom: 22px; }
.artis-genre-group:last-child { margin-bottom: 0; }
.artis-genre-heading {
  margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent-2); font-weight: 700;
}
.artis-list { display: flex; flex-direction: column; gap: 2px; }
.artis-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  color: var(--text); font-size: 14px; cursor: pointer; width: 100%; text-align: left;
  font-family: inherit;
}
.artis-item:last-child { border-bottom: none; }
.artis-item:hover { color: var(--accent); }
.artis-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; flex: 1; }
.artis-name { flex-shrink: 0; }
.artis-meta { font-size: 11px; color: var(--muted); font-style: italic; font-weight: 400; }
.artis-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.status-active { color: #4caf50; font-weight: 700; }
.status-deceased { color: var(--accent); font-weight: 700; }
.artis-status-tag {
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
    letter-spacing: 0.3px; text-transform: uppercase; flex-shrink: 0;
}
.artis-status-tag.status-active { color: #4caf50; background: rgba(76, 175, 80, 0.12); }
.artis-status-tag.status-deceased { color: var(--accent); background: rgba(255, 90, 110, 0.12); }
.artis-rating { font-size: 13px; flex-shrink: 0; }

.av-notice {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.av-notice-success { background: #103a24; border: 1px solid #1c6b40; color: #7be3a8; }
.av-notice-error { background: #3a1010; border: 1px solid #6b1c1c; color: #ff9b9b; }

.login-gate {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.login-gate p { margin: 0; font-size: 14px; color: var(--muted); }
.login-gate strong { color: var(--text); }

.pill-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.pill-btn.primary { background: var(--accent); color: #1a0f12; border: none; font-weight: 600; }
.pill-btn.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; margin-left: auto;
  border-radius: 50%;
}
.theme-toggle-btn .icon-sun { display: block; }
.theme-toggle-btn .icon-moon { display: none; }
body.light-theme .theme-toggle-btn .icon-sun { display: none; }
body.light-theme .theme-toggle-btn .icon-moon { display: block; }

.layout { display: flex; gap: 24px; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 20px; }
.main-content { flex: 1; min-width: 0; }
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
}
.filter-panel-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.filter-panel-header h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.filter-panel-header .pill-btn { font-size: 11px; padding: 4px 10px; }
.filter-section { margin-bottom: 18px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-section h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.filter-section select {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 10px; color: #fff; font-size: 13px;
}
.filter-section select:focus { outline: none; border-color: var(--accent); }
.filter-section select option { background: var(--panel); color: #fff; }
h3.toggle-heading {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
h3.toggle-heading:hover { color: var(--text); }
.toggle-arrow { font-size: 9px; transition: transform 0.15s ease; }
.toggle-arrow.open { transform: rotate(90deg); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 5px 10px; border-radius: 20px; font-size: 12px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #1a0f12; font-weight: 600; }
.filter-btn.is-hidden { display: none; }
.filter-empty { font-size: 12px; color: var(--muted); margin: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 28px;
}
body.albums-bg {
  background:
    radial-gradient(ellipse 65% 45% at 78% 5%, rgba(8, 155, 170, 0.75), transparent 65%),
    radial-gradient(ellipse 45% 35% at 22% 28%, rgba(25, 130, 175, 0.45), transparent 65%),
    radial-gradient(ellipse 60% 22% at 48% 48%, rgba(125, 90, 155, 0.50), transparent 70%),
    radial-gradient(ellipse 55% 20% at 75% 55%, rgba(90, 80, 150, 0.35), transparent 70%),
    radial-gradient(ellipse 40% 35% at 0% 52%, rgba(0, 0, 6, 0.85), transparent 70%),
    linear-gradient(180deg, #182a60 0%, #1c3a68 28%, #33325c 48%, #14203f 68%, #081226 88%, #050b1a 100%);
  background-attachment: fixed;
}
body.albums-bg .panel,
body.albums-bg .filter-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
body.light-theme.albums-bg {
  background:
    radial-gradient(ellipse 65% 45% at 78% 5%, rgba(8, 155, 170, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 35% at 22% 28%, rgba(25, 130, 175, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 22% at 48% 48%, rgba(125, 90, 155, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 20% at 75% 55%, rgba(90, 80, 150, 0.08), transparent 70%),
    linear-gradient(180deg, #eef3fb 0%, #eef2fa 28%, #f2eff8 48%, #f6f3fa 68%, #faf9fb 88%, #fbfbfc 100%);
  background-attachment: fixed;
}
body.light-theme.albums-bg .panel,
body.light-theme.albums-bg .filter-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(20, 20, 40, 0.08);
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

form.album-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row:empty { display: none; }
.group-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.group-name-row .group-name-input { flex: 1; }
.group-names-field-wrap .pill-btn { align-self: flex-start; }
.subgenre-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.award-legacy-chip {
  background: rgba(255, 90, 110, 0.12); border: 1px dashed var(--accent); color: var(--accent);
}
.quality-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(76, 201, 240, 0.12); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.country-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(128, 237, 153, 0.12); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.instrumentalist-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(199, 125, 255, 0.12); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.relate-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 159, 28, 0.12); border: 1px solid var(--border); color: var(--text);
  font-size: 12px; padding: 4px 6px 4px 10px; border-radius: 20px;
}
.chip-remove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 2px; display: flex; align-items: center;
}
.chip-remove:hover { color: var(--accent); }
.subgenre-field-wrap, .artist-field-wrap, .composer-field-wrap, .genre-field-wrap, .quality-field-wrap, .country-field-wrap, .instrumentalist-field-wrap, .relates-field-wrap { position: relative; }
.suggestion-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  margin-top: 4px; max-height: 180px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.suggestion-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.suggestion-item:hover { background: var(--panel); }
.suggestion-item-label { flex: 1; }
.suggestion-remove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 2px 7px; border-radius: 4px; line-height: 1;
}
.suggestion-remove:hover { color: var(--accent); background: rgba(255, 90, 110, 0.12); }
.suggestion-empty { padding: 8px 10px; font-size: 12px; color: var(--muted); margin: 0; }
button.submit {
  background: var(--accent);
  color: #1a0f12;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
button.submit:hover { filter: brightness(1.08); }

.search-row { margin-bottom: 14px; }
.search-row input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}
.search-row input:focus { outline: none; border-color: var(--accent); }
.search-row input::-webkit-search-cancel-button { cursor: pointer; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar h2 { margin: 0; }
.sort-controls { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.sort-controls select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
}
.column-controls { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.column-btn-group { display: flex; gap: 4px; }
.column-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  width: 26px; height: 26px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.column-btn:hover { border-color: var(--accent); }
.column-btn.active { background: var(--accent); border-color: var(--accent); color: #1a0f12; font-weight: 700; }
.genre-banner {
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.filter-banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-banner-label {
  margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); flex-basis: 100%;
}
.filter-banner-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.page-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-indicator { font-size: 13px; color: var(--muted); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card a.card-link { text-decoration: none; color: inherit; display: block; }
.cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { color: var(--muted); font-size: 12px; text-align: center; padding: 10px; }
.card-body { padding: 12px 14px 14px; }
.card-title { font-weight: 600; font-size: 14px; margin: 0 0 2px; line-height: 1.3; }
.card-artist { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.artist-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; font-family: inherit;
}
.artist-btn:hover { color: var(--text); }
.artist-btn.active { color: var(--accent); font-weight: 600; }
.artist-filter-badge {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 14px;
}
.artist-filter-badge strong { color: var(--text); }
.artist-filter-badge button {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 20px; font-size: 11px; padding: 2px 9px; cursor: pointer;
}
.artist-filter-badge button:hover { border-color: var(--accent); }
.card-composer { color: var(--muted); font-size: 12px; margin: 0 0 8px; font-style: italic; }
.composer-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 12px; cursor: pointer; font-style: italic;
  text-decoration: underline; text-underline-offset: 2px; font-family: inherit;
}
.composer-btn:hover { color: var(--text); }
.composer-btn.active { color: var(--accent); font-weight: 600; }
.composer-filter-badge {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 14px;
}
.composer-filter-badge strong { color: var(--text); }
.composer-filter-badge button {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 20px; font-size: 11px; padding: 2px 9px; cursor: pointer;
}
.composer-filter-badge button:hover { border-color: var(--accent); }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.genre-tag {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.subgenre-tag { color: var(--muted); font-size: 11px; margin-left: 6px; }
.quality-line { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.quality-tag {
  font-size: 11px;
  color: #4cc9f0;
  background: rgba(76, 201, 240, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}
.recorded-line { margin-top: 6px; }
.recorded-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ff3b3b;
  background: rgba(255, 59, 59, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.recorded-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
}
.recorded-btn:hover { border-color: #ff3b3b; }
.recorded-btn.active { background: #ff3b3b; border-color: #ff3b3b; color: #fff; font-weight: 600; }
.tags-wrap { display: flex; align-items: center; flex-wrap: wrap; }
.rating { font-weight: 700; font-size: 14px; }
.hashtag-line { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.hashtag {
  font-size: 11px;
  color: var(--accent);
  background: rgba(255, 90, 110, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}
.card-award-line { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.card-award-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: #ff8c1a;
  background: rgba(255, 140, 26, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}
.card-award-tag svg { width: 11px; height: 11px; flex: none; }
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}
.external-link:hover { border-color: var(--accent-2); }
.comment-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0,0,0,0.55); color: var(--text);
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px; pointer-events: none;
}
.comments-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 100%;
  background: rgba(18, 19, 26, 0.97);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 4;
  overflow-y: auto;
}
.card:hover .comments-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.comments-list { display: flex; flex-direction: column; gap: 6px; }
.comment-item {
  font-size: 12px; color: var(--text); background: var(--panel-2);
  border-radius: 6px; padding: 6px 8px; margin: 0; line-height: 1.4;
}

.delete-form { margin: 0; }
.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.card-actions form { margin: 0; display: contents; }
.edit-btn, .delete-btn {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card:hover .edit-btn, .card:hover .delete-btn { opacity: 1; }

.cover-dropzone {
  border: 1px dashed var(--border);
  border-radius: 8px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--panel-2);
  padding: 8px;
  text-align: center;
  overflow: hidden;
}
.cover-dropzone:hover, .cover-dropzone:focus {
  border-color: var(--accent);
  outline: none;
}
.cover-dropzone.dragover {
  border-color: var(--accent-2);
  background: var(--panel);
}
.cover-preview-img {
  max-width: 100%;
  max-height: 74px;
  border-radius: 6px;
  object-fit: cover;
}
.cover-placeholder-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.artist-photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.artist-photo-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; background: var(--panel-2);
  display: block;
}
.artist-photo-avatar:hover { border-color: var(--accent); }
.artist-photo-dropzone {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: var(--panel-2); overflow: hidden;
  flex-shrink: 0; text-align: center;
}
.artist-photo-dropzone:hover, .artist-photo-dropzone:focus { border-color: var(--accent); outline: none; }
.artist-photo-dropzone.dragover { border-color: var(--accent-2); background: var(--panel); }
.artist-photo-preview-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.artist-photo-placeholder-text { font-size: 10px; color: var(--muted); line-height: 1.3; padding: 4px; }
.artist-photo-hint { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 6px 0 0; }
.image-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 30px; cursor: zoom-out;
}
.image-lightbox img {
  max-width: 90vw; max-height: 90vh; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); cursor: default;
}
.image-lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: none;
  color: #fff; font-size: 30px; cursor: pointer; line-height: 1; opacity: 0.8;
}
.image-lightbox-close:hover { opacity: 1; }

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

.single-album .single-album-body {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.single-album .single-cover {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  background: var(--panel-2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-album .single-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-album .single-info h1 { margin: 0 0 8px; font-size: 22px; }
.single-album .single-info .card-artist { font-size: 15px; margin-bottom: 12px; }
.single-album .single-info .genre-tag { margin-right: 10px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
}

/* Albums archive page */
.card-open-target { cursor: pointer; }
.albums-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.albums-list-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; font-family: inherit;
  color: var(--text); transition: transform 0.15s ease, opacity 1s ease; text-decoration: none; display: block;
}
.albums-list-item:hover { transform: translateY(-3px); border-color: var(--accent); }
@keyframes albumAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.albums-list-item.av-fade-out { opacity: 0; }
.albums-list-item.av-fade-init { opacity: 0; transition: none; }
.albums-list-item.av-fade-in { opacity: 1; transition: opacity 1.8s ease; }
.albums-list-cover {
  width: 100%; aspect-ratio: 1 / 1; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.albums-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.albums-flip-cover { width: 100%; aspect-ratio: 1 / 1; perspective: 800px; }
.albums-flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.5s ease; transform-style: preserve-3d;
}
.albums-list-item:hover .albums-flip-inner { transform: rotateY(180deg); }
.albums-flip-front, .albums-flip-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.albums-flip-front { background: var(--panel-2); }
.albums-flip-front img { width: 100%; height: 100%; object-fit: cover; }
.albums-flip-back {
  background: var(--panel-2); transform: rotateY(180deg);
  flex-direction: column; gap: 6px; padding: 10px; text-align: center;
}
.flip-back-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.1); z-index: 0;
}
.flip-back-content {
  position: relative; z-index: 1; width: 100%; height: 100%;
  padding: 10px; box-sizing: border-box;
  transform: translateY(36px); opacity: 0;
  transition: transform 0.9s ease 0.15s, opacity 0.9s ease 0.15s;
}
.albums-list-item:hover .flip-back-content { transform: translateY(0); opacity: 1; }
.flip-text-block {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.albums-flip-back .flip-title {
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3;
}
.albums-flip-back .flip-artist { font-size: 11px; color: #fff; opacity: 0.85; }
.albums-flip-back .flip-rating {
  position: absolute; top: 8px; right: 8px;
  font-size: 18px; font-weight: 700; color: #fff;
}
.albums-flip-back .flip-genre {
  font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.5px;
  border: none;
}
.albums-flip-back .flip-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  align-self: flex-start; padding: 2px 7px; border-radius: 10px; margin-top: 2px;
}
.albums-flip-back .flip-status-active { color: #4caf50; background: rgba(76, 175, 80, 0.18); }
.albums-flip-back .flip-status-inactive { color: var(--accent); background: rgba(255, 90, 110, 0.18); }
.albums-flip-back .flip-award {
  font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 2px;
}
.albums-showmore-wrap { display: flex; justify-content: center; margin-top: 26px; }
.albums-showmore-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 28px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.albums-showmore-btn:hover { border-color: var(--accent); color: var(--accent); }
.album-detail-spotify-player {
  margin: 16px 0 4px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.album-detail-spotify-player iframe { display: block; border: none; }
.albums-flip-back .flip-relates {
  font-size: 10px; color: #fff; opacity: 0.75; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.albums-flip-back .flip-styles {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.albums-flip-back .flip-style-tag {
  font-size: 10px; background: var(--panel); border: none;
  border-radius: 10px; padding: 2px 7px; color: #fff; text-transform: uppercase;
}
.albums-list-info { padding: 8px 10px 10px; }
.albums-list-title { font-weight: 600; font-size: 13px; margin: 0 0 2px; line-height: 1.3; }
.albums-list-artist { font-size: 12px; color: var(--muted); margin: 0; }
.albums-greeting-header { text-align: center; padding: 28px 20px 0; }
.albums-greeting-header h2 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--text);
}
.albums-greeting-header p {
  margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
}
.carousel-section { padding: 30px 20px 40px; text-align: center; }
.carousel-heading {
  font-size: 18px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); margin: 0 0 28px;
}
.carousel-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 19px; max-width: 703px; margin: 0 auto;
}
.carousel-track {
  position: relative; flex: 1; height: 344px;
  perspective: 1094px;
}
.carousel-card {
  position: absolute; top: 50%; left: 50%; width: 235px; height: 235px;
  margin-top: -118px; margin-left: -118px;
  border: none; padding: 0; background: none; cursor: pointer;
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.carousel-card.is-hidden { pointer-events: none; }
.carousel-cover {
  width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  background: var(--panel-2); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.carousel-cover img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card.is-center .carousel-cover { box-shadow: 0 16px 42px rgba(0,0,0,0.65); }
.carousel-info {
  margin-top: 12px; opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.carousel-card.is-center .carousel-info { opacity: 1; }
.carousel-title-text { font-weight: 600; font-size: 20px; margin: 0; color: var(--text); }
.carousel-artist-text { font-size: 18px; color: var(--muted); margin: 2px 0 0; }
.carousel-arrow {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer; font-size: 24px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.carousel-arrow:hover { border-color: var(--accent); }
.carousel-track-round .carousel-cover { border-radius: 50%; }
#albums-list-layout {
  flex-direction: column; align-items: center;
}
#albums-genre-banner, #artis-genre-banner {
  width: 100%; max-width: 1406px; box-sizing: border-box; text-align: center;
}
#albums-genre-banner h3.toggle-heading, #artis-genre-banner h3.toggle-heading { justify-content: center; gap: 8px; }
#albums-genre-banner .filter-group { justify-content: center; margin-top: 10px; }
#albums-genre-banner #albums-style-section-wrap h3 { text-align: center; }
.genre-tile-outer { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.genre-tile-track {
  display: flex; gap: 14px; overflow-x: auto; flex: 1;
  padding: 4px 2px 8px; scrollbar-width: none;
}
.genre-tile-track::-webkit-scrollbar { display: none; }
@keyframes genreTileSlideIn {
  from { transform: translateX(70px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.genre-tile {
  position: relative; flex-shrink: 0; width: 120px; height: 112px;
  border-radius: 12px; cursor: pointer; perspective: 600px;
  background: none; border: none; padding: 0;
  animation: genreTileSlideIn 1.1s ease both;
  transition: transform 0.25s ease;
}
.genre-tile.active { transform: scale(1.07); }
.genre-tile.active .genre-tile-front,
.genre-tile.active .genre-tile-back {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.genre-tile-flip-inner {
  position: absolute; inset: 0;
  transition: transform 0.8s ease; transform-style: preserve-3d;
}
.genre-tile:hover .genre-tile-flip-inner { transform: rotateY(180deg); }
.genre-tile-front, .genre-tile-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
}
.genre-tile-back { transform: rotateY(180deg); }
.genre-tile-back .genre-tile-bg { filter: brightness(0.1) blur(2.25px); }
.genre-tile-count {
  position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 24px;
  transform: translateY(28px); opacity: 0;
  transition: transform 1.4s ease 0.2s, opacity 1.4s ease 0.2s;
}
.genre-tile:hover .genre-tile-count { transform: translateY(0); opacity: 1; }
.genre-tile-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.45) blur(2.25px); transform: scale(1.08);
}
.genre-tile-icon {
  position: relative; z-index: 1; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
}
.genre-tile-icon img { max-width: 100%; max-height: 100%; filter: brightness(0) invert(1); }
.genre-tile-icon svg { width: 36px; height: 36px; fill: #fff; }
.genre-tile-name {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 1;
  color: #fff; font-size: 11px; font-weight: 600; text-align: center;
}
.genre-tile-edit { position: absolute; top: 6px; right: 6px; z-index: 2; display: none; gap: 4px; }
.genre-tile:hover .genre-tile-edit { display: flex; }
.genre-tile-edit-btn {
  background: rgba(0,0,0,0.65); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; font-size: 9px; padding: 3px 6px; cursor: pointer;
}
.genre-tile-edit-btn:hover { border-color: var(--accent); }
#albums-list-layout .sidebar {
  width: 100%; max-width: 1406px; position: static;
}
#albums-list-layout .main-content {
  width: 100%; max-width: 1406px;
}
#composers-list-layout {
  flex-direction: column; align-items: center;
}
#composers-list-layout .sidebar {
  width: 100%; max-width: 1406px; position: static;
}
#composers-list-layout .main-content {
  width: 100%; max-width: 1406px;
}
#artis-list-layout {
  flex-direction: column; align-items: center;
}
#artis-list-layout .main-content {
  width: 100%; max-width: 1406px;
}
.artis-inline-filters {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px;
  margin: 4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.artis-inline-filters .filter-section { margin-bottom: 0; }
.artis-inline-filters #artis-clear-filters { margin-left: auto; }
.genre-cell { margin: 0 0 8px; }
.genre-cell-heading {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 0 0 12px;
}
.genre-row-wrap { display: flex; align-items: center; gap: 10px; }
.genre-row-track {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px 2px 10px; flex: 1; scrollbar-width: none;
}
.genre-row-track::-webkit-scrollbar { display: none; }
.genre-row-item {
  flex-shrink: 0; width: 90px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0;
  font-family: inherit; color: var(--text);
}
.genre-row-photo {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.genre-row-photo img { width: 100%; height: 100%; object-fit: cover; }
.genre-row-flip { width: 90px; height: 90px; perspective: 600px; }
.genre-row-flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.5s ease; transform-style: preserve-3d;
}
.genre-row-item:hover .genre-row-flip-inner { transform: rotateY(180deg); }
.genre-row-flip-front, .genre-row-flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.genre-row-flip-back {
  background: var(--panel-2); transform: rotateY(180deg); border: 1px solid var(--border);
}
.genre-row-flip-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.1); z-index: 0;
}
.genre-row-back-content {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 0 8px;
  transform: translateY(18px); opacity: 0;
  transition: transform 0.9s ease 0.15s, opacity 0.9s ease 0.15s;
}
.genre-row-item:hover .genre-row-back-content { transform: translateY(0); opacity: 1; }
.genre-row-country {
  color: #fff; font-size: 8px; text-transform: uppercase; letter-spacing: 0.5px;
  text-align: center; line-height: 1.3;
}
.genre-row-rating { color: #fff; font-weight: 700; font-size: 16px; }
.genre-row-albums { color: #fff; font-size: 9px; }
.genre-row-name { font-size: 12px; text-align: center; line-height: 1.3; }
.genre-row-arrow {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.genre-row-arrow:hover { border-color: var(--accent); }

/* Album single detail page */
.album-detail-page-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  pointer-events: none;
  animation: albumBgDrift 50s linear infinite;
  will-change: transform, filter;
}
@keyframes albumBgDrift {
  0%   { transform: scale(1.85) rotate(0deg);   filter: blur(60px) brightness(0.55) saturate(1.2) hue-rotate(0deg); }
  25%  { transform: scale(2.05) rotate(90deg);  filter: blur(60px) brightness(0.6) saturate(1.4) hue-rotate(15deg); }
  50%  { transform: scale(1.85) rotate(180deg); filter: blur(60px) brightness(0.55) saturate(1.3) hue-rotate(0deg); }
  75%  { transform: scale(2.05) rotate(270deg); filter: blur(60px) brightness(0.6) saturate(1.4) hue-rotate(-15deg); }
  100% { transform: scale(1.85) rotate(360deg); filter: blur(60px) brightness(0.55) saturate(1.2) hue-rotate(0deg); }
}
.album-detail-page-bg::after {
  content: ''; position: fixed; inset: 0;
  background: rgba(10, 10, 18, 0.55);
}
.album-detail-body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.album-detail-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; animation: albumTitleFadeIn 0.9s ease both; }
.album-detail-title-row h1 { margin: 0; font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; }
.album-detail-title-row .title-separator { color: var(--muted); font-size: 24px; }
.album-detail-title-row .card-artist { margin: 0; font-size: 24px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.album-detail-title-row .artist-btn { color: var(--accent); font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.album-detail-title-row .artist-btn:hover { color: var(--accent); opacity: 0.85; }
.album-detail-title-row .artist-btn.active { color: var(--accent); font-weight: 700; }
@keyframes albumTitleFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.album-detail-typing-cursor::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: albumCursorBlink 0.9s steps(1) infinite;
}
@keyframes albumCursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.album-detail-top-row { display: flex; gap: 26px; flex-wrap: wrap; }
.album-detail-cover {
  width: 260px; height: 260px; flex-shrink: 0; background: var(--panel-2);
  border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.album-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-detail-info { min-width: 0; }
.album-detail-composer-relates-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.album-detail-composer-relates-row .card-composer { margin: 0; font-size: 13px; }
.album-detail-tag-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.album-detail-rating-row { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.album-detail-rating-row .rating-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.album-detail-rating-row .quality-tag { font-size: 10px; }
.album-detail-rating-row .rating { font-size: 32px; }
.album-detail-extra {
  flex: 1; min-width: 260px; padding: 14px 16px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 8px;
}
.album-detail-extra h3 {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
}
.album-detail-extra dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.album-detail-extra dt { color: var(--muted); font-size: 13px; }
.album-detail-extra dd { margin: 0; font-size: 13px; }
.album-detail-extra a { color: var(--accent-2); }
.album-detail-extra-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.album-detail-extra-header h3 { margin: 0; }
.album-detail-extra .field { margin-bottom: 10px; }
.album-detail-extra .field label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.album-detail-extra .field input,
.album-detail-extra .field textarea {
  width: 100%; box-sizing: border-box; background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.album-detail-extra .field textarea { resize: vertical; }
.album-detail-extra-actions { display: flex; gap: 8px; margin-top: 4px; }
.empty-value { color: var(--muted); font-style: italic; }
.album-detail-comments-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.album-detail-comments-list .comment-item { background: var(--panel); border-radius: 6px; padding: 8px 10px; margin: 0; font-size: 13px; line-height: 1.4; }

/* Artist / Composer detail pages (Artis & Composers views) */
.artist-detail-body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.artist-detail-title-row h1 { margin: 0 0 6px; font-size: 24px; }
.artist-detail-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 0; }
.artist-detail-rating-row { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.artist-detail-rating-row .rating-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.artist-detail-rating-row .rating { font-size: 32px; }
.artist-detail-top-row { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.artist-detail-albums { flex: 2; min-width: 260px; }
.artist-detail-albums h3 {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
}
.artist-detail-albums .albums-list-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.status-toggle-group { display: flex; gap: 8px; }


/* Add-album panel above the collection cell so dropdowns aren't covered */
#album-form-panel { position: relative; z-index: 30; isolation: isolate; }
#award-dropdown { z-index: 200; background: #1c1d29; border-color: rgba(255,255,255,0.18); }
#award-dropdown .suggestion-item-label { color: #fff; }

/* Award dropdown bar */
.award-field-wrap { position: relative; }
.award-dropdown-toggle {
  width: 100%; text-align: left; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; color: var(--text); font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.award-dropdown-toggle:hover { border-color: var(--accent); }
#award-dropdown .suggestion-item.active .suggestion-item-label { color: var(--accent); font-weight: 600; }
#award-dropdown .suggestion-item.active .suggestion-item-label::after { content: " \2713"; }

/* Award badges on album covers */
.award-badges {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  display: flex; flex-direction: column-reverse; gap: 4px;
}
.award-badge {
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
}
.award-badge svg {
  width: 100%; height: 100%;
  color: #ff8c1a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
.albums-flip-back .award-badge svg { color: #ffffff; }

/* Smaller rectangular Style tiles */
.style-tile { width: 92px; height: 86px; }
.style-tile .genre-tile-name {
  font-size: 11px; top: 0; bottom: 0; display: flex; align-items: center;
  justify-content: center; padding: 0 6px;
}
.style-tile .genre-tile-count { font-size: 18px; transform: translateY(20px); }
.style-tile:hover .genre-tile-count { transform: translateY(0); }

/* Artist card name overlay, letter-by-letter */
@keyframes artistLetterIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
.artist-name-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 12px 10px; display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  color: #fff; text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.artist-name-line { font-size: 13px; font-weight: 700; display: block; }
.artist-genre-line { font-size: 11px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.artist-name-letter {
  display: inline-block; white-space: pre;
  opacity: 0; animation: artistLetterIn 0.9s ease forwards;
}

/* Editable album cover on the single album page */
.album-detail-cover-editable { position: relative; cursor: pointer; display: block; text-decoration: none; }
.album-cover-edit-hint {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(0,0,0,0.62); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; font-size: 12px; padding: 4px 9px; opacity: 0; transition: opacity 0.15s ease;
}
.album-detail-cover-editable:hover .album-cover-edit-hint { opacity: 1; }
.album-detail-cover-editable:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
