.dvrd-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

.dvrd-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search Card */
.dvrd-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dvrd-search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.dvrd-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dvrd-query-group {
  flex: 2;
  min-width: 240px;
}

.dvrd-format-group,
.dvrd-genre-group {
  flex: 1;
  min-width: 180px;
}

.dvrd-btn-group {
  min-width: 120px;
}

.dvrd-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.dvrd-input,
.dvrd-select {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  box-sizing: border-box;
  width: 100%;
}

.dvrd-input:focus,
.dvrd-select:focus {
  outline: 2px solid #ea580c;
  outline-offset: 1px;
  border-color: #ea580c;
}

.dvrd-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.dvrd-btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.dvrd-btn-secondary:hover {
  background: #cbd5e1;
}

/* Presets Row */
.dvrd-presets-row {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dvrd-presets-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.dvrd-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dvrd-pill-btn {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.dvrd-pill-btn:hover {
  background: #e2e8f0;
}

.dvrd-pill-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

/* Content Grid */
.dvrd-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .dvrd-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Release Card */
.dvrd-release-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dvrd-card-header {
  display: flex;
  flex-direction: column;
}

.dvrd-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dvrd-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dvrd-badge-format {
  background: #ffedd5;
  color: #9a3412;
}

.dvrd-badge-year {
  background: #f1f5f9;
  color: #475569;
}

.dvrd-badge-country {
  background: #e0f2fe;
  color: #0369a1;
}

.dvrd-badge-cat {
  background: #dcfce7;
  color: #166534;
}

.dvrd-release-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.dvrd-artist-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ea580c;
  margin: 0 0 1rem;
}

.dvrd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.dvrd-meta-item strong {
  color: #334155;
}

/* Section Styling */
.dvrd-section {
  display: flex;
  flex-direction: column;
}

.dvrd-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.dvrd-section-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

/* Matrix Box */
.dvrd-matrix-box {
  background: #f8fafc;
  border-left: 4px solid #ea580c;
  border-radius: 4px 8px 8px 4px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dvrd-matrix-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.dvrd-side-tag {
  font-weight: 700;
  color: #ea580c;
  min-width: 55px;
}

.dvrd-matrix-code {
  font-family: monospace, monospace;
  background: #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #1e293b;
}

/* Tracklist Table */
.dvrd-table-wrap {
  overflow-x: auto;
}

.dvrd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.dvrd-table th {
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
}

.dvrd-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Sidebar Styles */
.dvrd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dvrd-side-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dvrd-side-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.dvrd-side-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1rem;
}

/* Grading Form */
.dvrd-grading-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dvrd-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dvrd-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.dvrd-form-select {
  height: 44px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: inherit;
  box-sizing: border-box;
}

.dvrd-market-summary {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.dvrd-market-row {
  display: flex;
  justify-content: space-between;
  color: #475569;
}

.dvrd-market-row.total {
  padding-top: 0.4rem;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
  color: #ea580c;
  font-size: 1.05rem;
}

.dvrd-grading-tip {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #9a3412;
  background: #ffedd5;
  padding: 0.5rem;
  border-radius: 6px;
  line-height: 1.4;
}

/* Checklist */
.dvrd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #475569;
}

.dvrd-checklist li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
}

.dvrd-checklist li::before {
  content: "\266A";
  position: absolute;
  left: 0;
  color: #ea580c;
  font-weight: bold;
}

/* Release List */
.dvrd-release-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.dvrd-release-item {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: background-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.dvrd-release-item:hover {
  background: #e2e8f0;
}

.dvrd-release-item.active {
  background: #ffedd5;
  border-color: #ea580c;
}

.dvrd-item-artist {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ea580c;
}

.dvrd-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.dvrd-item-cat {
  font-size: 0.78rem;
  color: #64748b;
}

/* Ad Containers */
.dvrd-ad-container {
  min-height: 280px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

/* In-Cluster Links */
.dvrd-related-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.dvrd-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f172a;
}

.dvrd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.dvrd-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.dvrd-related-card:hover {
  border-color: #ea580c;
}

.dvrd-related-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ea580c;
}

.dvrd-related-desc {
  font-size: 0.82rem;
  color: #64748b;
}

.dvrd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
