/* =========================================================
   RESPONSIVE — QUAKE IT
   ========================================================= */

/* ---------- Large screens ---------- */
@media screen and (max-width: 1700px) {
  .hero-content { top: 60%; }
  .playlist-container::before { top: 10%; left: 35.1%; }
  .spotify-btn { left: 35.1%; }
}

/* =========================================================
   TABLET & DOWN
   ========================================================= */
@media screen and (max-width: 991px) {

  /* ---------- HERO ---------- */
  .hero {
    height: auto;
    padding-top: 0;
  }

  .hero-main {
    width: 100%;
    height: auto;
    border-radius: 0;
    padding-bottom: 40px;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    padding-top: 260px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-content p {
    line-height: 22px;
  }

  /* ---------- QUAKE CARDS (tablet scale) ---------- */
  .quake-card { width: 300px; height: 210px; }
  .quake-box { width: 210px; height: 210px; border-radius: 28px; }

  .quake-date {
    top: 26px;
    font-size: 26px;
    line-height: 30px;
    width: 210px;
  }

  .quake-mag {
    top: 36px;
    font-size: 96px;
    line-height: 120px;
    width: 300px;
  }

  .quake-loc {
    font-size: 32px;
    line-height: 40px;
    max-width: 180px;
  }

  /* ---------- FILTER ---------- */
  .filter-box {
    padding: 24px;
    border-radius: 40px;
  }

  select {
    font-size: 15px;
    padding: 10px 12px;
  }
}



/* =========================================================
   MOBILE
   ========================================================= */
@media screen and (max-width: 767px) {

  .logo {
    top: 5%;
    left: -55%;

    right: auto;
    width: auto;
    display: block;
    justify-content: initial;

    transform: none;
  }

  .logo img {
    width: 90%;
    height: auto;
    display: block;
  }

  .hero-content {
    width: 90%;
    padding-top: 260px;
  }

  .hero-content h5 {
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 17px;
    line-height: 20px;
  }

  /* ---------- SECTION TITLES ---------- */
  .sec-title {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: -24px;
  }

  .sec-title h2 {
    font-size: 25px;
  }

  .sec-title p {
    width: 100%;
  }

  /* ---------- CAROUSEL ---------- */
  .quake-carousel .quaked-item {
    padding-left: 16px;
    padding-right: 0;
  }

  /* ---------- MOBILE QUAKE CARD ---------- */
  .quake-card {
    width: 180px;
    height: 140px;
    margin: 0;
  }

  .quake-box {
    width: 140px;
    height: 140px;
    border-radius: 24px;
  }

  .quake-date {
    top: 16px;
    font-size: 16px;
    line-height: 20px;
    width: 140px;
  }

  .quake-mag {
    top: 32px;
    font-size: 60px;
    line-height: 72px;
    width: 180px;
  }

  .quake-loc {
    bottom: 12px;
    font-size: 20px;
    line-height: 24px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quaked-item p {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* ---------- FILTER ---------- */
  .filters {
    gap: 10px;
  }

  .filters select {
    width: calc(50% - 5px);
    font-size: 14px;
  }

  #countryFilter {
    width: 100%;
  }

  /* ---------- ARCHIVE LIST ---------- */
  .playlist-item {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "mag location"
      "mag date"
      "mag depth"
      "mag songs";
    gap: 6px 10px;
    padding: 14px;
  }

  .playlist-item .magnitude { grid-area: mag; }
  .playlist-item .location { grid-area: location; }
  .playlist-item .date { grid-area: date; font-size: 13px; }
  .playlist-item .depth { grid-area: depth; font-size: 13px; }
  .playlist-item .songs {
    grid-area: songs;
    text-align: left;
    font-size: 13px;
  }

  .load-more-btn {
    width: 100%;
  }

  /* =========================================================
     PLAYLIST PAGE — MOBILE
     ========================================================= */
  .playlist-page .headphone {
    display: none;
  }

  .playlist-page .center-title {
    margin-top: 70px;
    padding: 0 16px;
  }

  .playlist-page .center-title h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .playlist-page .center-title p {
    font-size: 16px;
  }

  .playlist-page .playlist-container {
    padding: 28px 0 90px;
    border-radius: 28px;
    margin-top: 28px;
  }

  .playlist-page .playlist-container::before {
    left: 18px;
    top: 12%;
    height: 78%;
    width: 2px;
  }

  .playlist-page .spotify-btn {
    left: 18px;
    bottom: 18px;
  }

  .playlist-page .spotify-btn img {
    width: 190px;
  }

  .playlist-page .main-playlist {
    width: 92%;
    margin: 0 auto 18px;
    position: relative;
    padding-top: 22px;
    display: block;
  }

  .playlist-page .playlist-left {
    position: absolute;
    left: 40px;
    top: 0;

    min-width: 0;
    width: auto;
    padding-left: 0;
    justify-content: flex-start;
  }

  .playlist-page .playlist-left p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    opacity: 0.95;
    white-space: nowrap;
  }

  .playlist-page .playlist-left p span {
    font-size: 16px;
    font-weight: 700;
  }

  .playlist-page .playlist-right {
    width: 100%;
    margin-top: 10px;

    grid-template-columns: 52px 1fr 62px;
    padding: 14px 14px;
    border-radius: 18px;
  }

  .playlist-page .playlist-right::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }

  .playlist-page .track-no {
    font-size: 18px;
  }

  .playlist-page .track-title,
  .playlist-page .track-artist,
  .playlist-page .track-dur {
    font-size: 16px;
  }

  .playlist-page iframe {
    height: 260px;
  }

  .playlist-page .about {
    width: 92%;
    padding-top: 30px;
  }

  .playlist-page .about-container {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    margin-bottom: 24px;
  }

  .playlist-page .about-container h1 {
    font-size: 22px;
  }

  .playlist-page .about-container p {
    font-size: 14px;
  }
}