.notes-section {
  padding: 60px 0 90px;
  background: linear-gradient(180deg, #faf9f7 0%, #f3f1ed 100%);
}

.notes-section__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  text-align: center;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.notes-section__subtitle {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin: 0 0 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.notes-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e4df;
}

.notes-controls__search {
  flex: 1 1 240px;
  position: relative;
}

.notes-controls__search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #d4cfc8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #faf9f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.notes-controls__search input:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
  background: #fff;
}

.notes-controls__search::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}

.notes-controls__filter {
  flex: 0 1 200px;
}

.notes-controls__filter select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d4cfc8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #faf9f7;
  cursor: pointer;
}

.notes-controls__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.notes-controls__checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #1a1a1a;
  cursor: pointer;
}

.notes-stats {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

.notes-stats strong {
  color: #1a1a1a;
}

.notes-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e4df;
  background: #fff;
}

.notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 800px;
}

.notes-table thead {
  background: #1a1a1a;
  color: #fff;
}

.notes-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.notes-table th:hover {
  background: #333;
}

.notes-table th .sort-icon {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.4;
  font-size: 12px;
}

.notes-table th.sorted-asc .sort-icon,
.notes-table th.sorted-desc .sort-icon {
  opacity: 1;
}

.notes-table th.sorted-asc .sort-icon::after {
  content: "▲";
}

.notes-table th.sorted-desc .sort-icon::after {
  content: "▼";
}

.notes-table th:not(.sorted-asc):not(.sorted-desc) .sort-icon::after {
  content: "⇅";
}

.notes-table tbody tr {
  border-bottom: 1px solid #f0ece6;
  transition: background 0.12s;
}

.notes-table tbody tr:hover {
  background: #faf7f2;
}

.notes-table tbody tr:nth-child(even) {
  background: #fdfcfa;
}

.notes-table tbody tr:nth-child(even):hover {
  background: #faf7f2;
}

.notes-table td {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.45;
}

.notes-table td.num {
  color: #999;
  font-size: 13px;
  width: 48px;
}

.notes-table td.opus {
  font-weight: 600;
  color: #8b6914;
  white-space: nowrap;
  width: 72px;
}

.notes-table td.opus.empty {
  color: #ccc;
}

.notes-table td.title {
  font-weight: 500;
  color: #1a1a1a;
}

.notes-table td.title .title-en {
  display: block;
  font-size: 13px;
  color: #888;
  font-weight: 400;
  margin-top: 2px;
}

.notes-table td.genre {
  white-space: nowrap;
}

.genre-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f0ece6;
  color: #555;
}

.genre-badge--symphony { background: #e8f0f8; color: #2c5282; }
.genre-badge--concert { background: #f0e8f8; color: #553c9a; }
.genre-badge--chamber { background: #e8f5e8; color: #276749; }
.genre-badge--piano { background: #fef3e2; color: #c05621; }
.genre-badge--romance { background: #fce8ef; color: #97266d; }
.genre-badge--opera { background: #ede8f8; color: #6b46c1; }
.genre-badge--choir { background: #e6f7f5; color: #0d6e6e; }
.genre-badge--instrumental { background: #f5f0e8; color: #744210; }

.notes-table td.year {
  color: #666;
  white-space: nowrap;
  width: 90px;
}

.notes-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1a1a1a;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.notes-link:hover {
  background: #444;
  transform: translateY(-1px);
}

.notes-link--disabled {
  background: #e8e4df;
  color: #aaa !important;
  cursor: default;
  pointer-events: none;
}

.notes-empty {
  text-align: center;
  padding: 48px 24px;
  color: #888;
  font-size: 16px;
}

.literature-block {
  padding: 90px 0 30px;
}

.literature-block__title {
  font-family: Georgia, serif;
  font-size: 42px;
  text-align: center;
  margin: 0 0 30px;
}

.literature-item__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #050505;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #333;
}

.download-btn svg {
  width: 20px;
  height: 24px;
  fill: #fff;
}

.page-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .notes-section__title,
  .literature-block__title {
    font-size: 28px;
  }

  .notes-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .notes-controls__filter {
    flex: 1 1 auto;
  }
}
