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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --text: #f4f1ea;
  --muted: #b8b2a7;
  --border: #2a2a2a;
  --accent: #d2b48c;
  --accent-soft: #8f7758;
  --max-width: 1120px;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

main {
  width: 100%;
}

.hero {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  padding: 120px 0 80px;
  text-align: center;
}

.hero h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 850px;
  margin: 0 auto 22px;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button-primary {
  background-color: var(--accent);
  color: #111111;
}

.button-primary:hover {
  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background-color: transparent;
}

.button-secondary:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.section-heading {
  width: min(var(--max-width), 92%);
  margin: 0 auto 24px;
}

.section-heading h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
}

.featured {
  padding: 10px 0 90px;
}

.featured-albums {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.album-grid {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.album-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.album-card:hover {
  transform: translateY(-6px);
}

.album-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.album-card-content {
  padding: 20px;
}

.album-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.album-card p {
  color: #d7d0c6;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.album-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.rating {
  color: var(--accent);
  font-weight: 800;
}

.favorite-track {
  color: #ead7b7;
  font-weight: 700;
}

.review-text {
  color: #ddd6cc;
}

.page-intro,
.about-intro {
  width: min(760px, 92%);
  margin: 0 auto;
  text-align: center;
  padding: 90px 0 36px;
}

.page-intro h2,
.about-intro h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.page-intro p,
.about-intro p {
  color: var(--muted);
  font-size: 1.02rem;
}

.reviews-grid {
  width: min(var(--max-width), 92%);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.about-content {
  width: min(var(--max-width), 92%);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about-block {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.about-block h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.about-block p {
  color: #d7d0c6;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}

@media (max-width: 760px) {
  nav {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 16px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .hero {
    padding: 90px 0 60px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }
}

#reviewsGrid {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#reviewsGrid .review-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

#reviewsGrid .review-cover {
  flex: 0 0 260px;
  width: 260px;
}

#reviewsGrid .review-cover a {
  display: block;
}

#reviewsGrid .review-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

#reviewsGrid .review-content {
  flex: 1;
  min-width: 0;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
}

#reviewsGrid .review-content h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.1;
}

#reviewsGrid .review-content .album-meta {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

#reviewsGrid .review-content .rating,
#reviewsGrid .review-content .favorite-track {
  margin: 0 0 10px;
  font-weight: 700;
  color: #e7d2b0;
  line-height: 1.5;
}

#reviewsGrid .review-content .review-text {
  margin: 14px 0 0;
  max-width: 70ch;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  #reviewsGrid .review-card {
    flex-direction: column;
  }

  #reviewsGrid .review-cover {
    width: 100%;
    flex: none;
  }
}

.admin-page,
.reviews-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-section {
  margin-bottom: 50px;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.search-bar input,
#reviewForm input,
#reviewForm textarea,
#reviewForm select {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}

.search-bar button,
#reviewForm button,
.save-album-btn {
  padding: 12px 18px;
  border: none;
  cursor: pointer;
}

.spotify-results,
.albums-grid,
#reviewsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.spotify-card,
.album-card,
.review-card {
  background: #111;
  border: 1px solid #222;
  padding: 16px;
}

.spotify-card img,
.album-card img,
.review-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.review-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.review-content p {
  margin: 8px 0;
}

.admin-page,
.reviews-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-section {
  margin-bottom: 50px;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.search-bar input,
#reviewForm input,
#reviewForm textarea,
#reviewForm select,
.login-box input,
.login-box button {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}

.search-bar button,
#reviewForm button,
.save-album-btn {
  padding: 12px 18px;
  border: none;
  cursor: pointer;
}

.spotify-results,
.albums-grid,
#reviewsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.spotify-card,
.album-card,
.review-card,
.login-box {
  background: #111;
  border: 1px solid #222;
  padding: 16px;
}

.spotify-card img,
.album-card img,
.review-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.review-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.review-content p {
  margin: 8px 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-box h1 {
  margin-bottom: 20px;
}

.login-box form {
  display: grid;
  gap: 14px;
}

#loginMessage {
  margin-top: 14px;
}

.album-detail-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.album-detail-card img {
  width: 100%;
  object-fit: cover;
}

.album-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rating {
  margin-top: 10px;
  font-weight: bold;
  color: #ffd700;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.6;
  color: #cfcfcf;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn-primary {
  background: #d9b98c;
  color: #111;
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid #6e5737;
  color: #e7d5b4;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.featured-section {
  padding: 40px 0 80px;
}

.featured-section h2,
.featured-section p {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.featured-section h2 {
  margin-bottom: 10px;
}

.featured-section p {
  margin-bottom: 28px;
  color: #cfcfcf;
}

.featured-slider-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.featured-slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: featuredScroll 35s linear infinite;
  padding: 10px 20px;
}

.featured-slider-track:hover {
  animation-play-state: paused;
}

.featured-review-card {
  width: 280px;
  min-width: 280px;
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-review-card:hover {
  transform: translateY(-6px);
  border-color: #6e5737;
}

.featured-review-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.featured-review-content {
  padding: 16px;
}

.featured-review-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.featured-artist {
  color: #d0d0d0;
  margin-bottom: 8px;
}

.featured-rating {
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 10px;
}

.featured-text {
  color: #bfbfbf;
  line-height: 1.5;
  font-size: 0.95rem;
}

@keyframes featuredScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.8rem;
  }

  .featured-review-card {
    width: 240px;
    min-width: 240px;
  }
}

.manage-reviews-list {
  display: grid;
  gap: 24px;
}

.manage-review-card {
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  border-radius: 18px;
}

.manage-review-top {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.manage-review-top img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.manage-review-meta h3 {
  margin-bottom: 6px;
}

.manage-review-meta p {
  margin: 4px 0;
  color: #c9c9c9;
}

.manage-review-card label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 700;
}

.manage-review-card input,
.manage-review-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  border-radius: 10px;
}

.manage-review-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.manage-review-actions button {
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
}

.save-review-edit-btn {
  background: #d9b98c;
  color: #111;
  font-weight: 700;
}

.delete-review-btn {
  background: #2a1212;
  color: #ffb8b8;
  border: 1px solid #5c2a2a;
}