:root {
  --text: #222;
  --muted: #777;
  --border: #e5e5e5;
  --bg: #fafafa;
  --theme-color: #004234;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background: #e9e9e9;
  color: var(--text);
} /* outer gray background */

/* BOXED LAYOUT WRAPPER */
.page-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

header {
  text-align: center;
  padding: 20px 0 10px;
}
.logo img {
  width: 250px;
  height: 250px;
}

.main__nav {
  background-color: #fff;
  height: 60px;
  line-height: 60px;
  border: 1px solid var(--border);
  /* border-top: 1px solid var(--theme-color);
  border-bottom: 1px solid var(--theme-color); */
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 15px;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: #333;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* CAROUSEL (FIXED CLEAN) */
.carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.carousel-track {
  display: flex;
  transition: 0.5s ease;
}
.slide {
  min-width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  color: #fff;
  position: relative;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}
.slide-content {
  position: relative;
  z-index: 2;
}
.slide-category {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
}
.slide-title {
  font-size: 15px;
  font-weight: 600;
  margin: 3px 0;
}
.slide-desc {
  font-size: 12px;
  opacity: 0.9;
}

.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel-buttons button {
  background: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
}
.section h3 {
  font-size: 14px;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #111;
}

.slide-title {
  color: #fff;
}

/* LATEST (PROPERLY ALIGNED) */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.post a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.post img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.post .info {
  flex: 1;
}
.tag {
  font-size: 10px;
  color: #999;
}
.title {
  font-size: 13px;
  margin: 3px 0;
  line-height: 1.3;
}
.date {
  font-size: 11px;
  color: var(--muted);
}

.archive-header h2 {
  background-color: #111;
  color: #fff;
  width: fit-content;
  font-size: 15px;
  padding: 10px 20px;
  margin: 10px 0;
  text-transform: uppercase;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.search__form {
  display: flex;
  justify-content: center;
}

.search__form form {
  display: flex;
}

.search__form form input {
  height: 40px;
  padding: 0 10px;
  border: 0;
  outline: none;
}

.search__form form button {
  height: 40px;
  width: 40px;
  font-size: 14px;
  border-radius: 50px;
  background-color: var(--theme-color);
  color: #fff;
  border: 0;
}

.search__form form {
  border: 1px solid var(--border);
  padding: 5px 2px;
  border-radius: 30px;
}

/* TRENDING (MATCH ORIGINAL LOOK BETTER) */

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child {
  border-bottom: none;
}
.trending-rank {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  width: 20px;
}
.trending-item img {
  width: 150px !important;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}
.trending-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.trending-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}
.trending-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.page {
  border: 1px solid var(--border);
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}
.page.active {
  background: #111;
  color: #fff;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  padding: 20px 0;
}

.footer-links ul {
  display: flex;
  justify-content: center;
  padding: 10px o;
  list-style: none;
  gap: 10px;
}

/* Single post */

.single-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
  background-color: var(--theme-color);
  color: #fff;
}

.single-card .title {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0;
}

.meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.featured-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.content p {
  padding: 10px 0;
}

.content ul,
.content ol {
  margin-left: 20px;
}

.tags {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.tags span {
  display: inline-block;
  background: #eee;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 20px;
  font-size: 13px;
}

.share {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.related {
  margin: 0 10px;
}

.related h2 {
  display: inline-block;
  padding-bottom: 5px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.card img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.card h3 {
  font-size: 14px;
  margin: 5px 0;
}

.card .date {
  font-size: 12px;
  color: #777;
}

@media (min-width: 400px) {
  .logo img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .single-card .title {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .nav {
    background-color: var(--theme-color);
  }
  .container {
    grid-template-columns: 1fr;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

/* Artists widget */

.artist-widget {
  width: 90%;
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  margin: 0 auto;
  position: relative;
}

.verified-badge {
  display: inline-block;
  margin-left: 6px;
  width: 14px;
  height: 14px;
  background: #1da1f2;
  border-radius: 50%;
  position: relative;
}

.verified-badge::after {
  content: "✔";
  font-size: 9px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#nextArtist {
  position: absolute;
  z-index: 20;
  right: 20px;
}

/* VIEWPORT (HORIZONTAL CLIP AREA) */
.artist-viewport {
  overflow: hidden;
  width: 100%;
}

/* HORIZONTAL SLIDER */
.artist-slider {
  display: flex;
  gap: 12px;
  transition: transform 0.5s ease;
}

/* MODERN CARD */
.artist-card {
  min-width: 110px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ROUND IMAGE STYLE */
.artist-img-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eee;
}

.artist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAME STYLE */
.artist-name {
  font-size: 12px;
  margin-top: 6px;
  color: #111;
  font-weight: 600;
}

/* CONTROLS */
.artist-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.artist-controls button {
  background: #ff0055;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 32;
}

.view-all-artists {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: var(--border);
  padding: 8px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
}

/* Artists Page */

.artist-hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: #fff;
}

/* dark gradient overlay like Spotify */
.artist-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.1)
  );
}

/* content sits above overlay */
.artist-overlay {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}

/* artist image */
.artist-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* name styling */
.artist-overlay h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

/* verified badge */
.verified-badge {
  display: inline-block;
  background: #1da1f2;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  font-weight: 600;
}

/* album text */
.album-name {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 5px;
}

/* BIO SECTION */
.artist-bio {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* SONG SECTION WRAPPER */
.songs-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.songs-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* MUSIC GRID (modern card style) */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

/* SONG CARD */
.song-card {
  background: #111;
  color: #fff;
  padding: 18px;
  border-radius: 14px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* hover effect like music apps */
.song-card:hover {
  transform: translateY(-5px);
  background: #1a1a1a;
}

/* title */
.song-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* subtle glow effect */
.song-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  pointer-events: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .artist-hero {
    height: 300px;
    padding: 20px;
  }

  .artist-avatar {
    width: 100px;
    height: 100px;
  }

  .artist-overlay h1 {
    font-size: 26px;
  }

  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.artist-hero {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.artist-hero-overlay {
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.artist-info {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.artist-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.artist-info h1 {
  font-size: 32px;
  margin: 0;
}

.badge {
  background: #1db954;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.sub {
  font-size: 13px;
  opacity: 0.8;
}

/* BIO */
.artist-bio {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* SONG LIST */
.songs-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.songs-container h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-item {
  padding: 12px 15px;
  background: #f7f7f7;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  transition: 0.2s;
}

.song-item:hover {
  background: #eaeaea;
}

.pagination {
  margin-top: 25px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 3px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.pagination .current {
  background: #111;
  color: #fff;
}

.artists-page {
  padding: 20px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 15px;
}

.artist-filters {
  margin-bottom: 20px;
}

.artist-filters input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* GRID */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

/* CARD */
.artist-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.artist-img {
  width: 100px;
  height: 100px;
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
}

.artist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-info h3 {
  font-size: 13px;
  margin-top: 8px;
  color: #111;
}

/* VERIFIED */
.verified-badge {
  background: #1da1f2;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  padding: 2px 5px;
  margin-left: 4px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.page-number {
  display: inline-block;
  padding: 6px 12px;
  margin: 3px;
  background: #eee;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
}

.page-number.active {
  background: #ff0055;
  color: #fff;
}
