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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.content {
  width: 100%;
}

/* ===== Hero (content1) — mobile first, match idrama.video ===== */
.content1 {
  position: relative;
  background-image: url("background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 33px 28px 4px;
}

.header.pb0 {
  padding-bottom: 0;
}

.logo.max {
  display: flex;
  align-items: center;
}

.logo.max img {
  width: 1.69rem;
  height: 1.69rem;
  flex-shrink: 0;
  margin-right: 0.563rem;
  border-radius: 0.35rem;
}

.logo.max .title {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14.4px;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
}

.slogan {
  text-align: center;
  margin-top: 4rem;
  padding: 0.13rem 0 0;
}

.slogan-top {
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  font-family: Montserrat, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 150%;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download {
  margin-top: 26px;
  padding-bottom: 58px;
  text-align: center;
}

.pc-button-box {
  display: flex;
  justify-content: center;
}

.pc-button {
  display: none;
}

.mobile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 166px;
  height: 36px;
  border-radius: 4px;
  background: #fff;
}

.mobile-button .text {
  color: #000;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
  margin-right: 8px;
}

.mobile-button .img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #000;
}

/* ===== Top Picks (content2) ===== */
.content2 {
  max-width: 100%;
  margin: 0;
  padding: 2rem 2.5rem 2.5rem;
}

.section-title {
  font-size: 0;
}

.section-title-span {
  color: #000;
  font-family: Montserrat, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 150%;
}

.episodes {
  display: flex;
  flex-direction: column;
}

.episode {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin: 1.9375rem 0 0;
  padding-bottom: 16.36px;
  border-bottom: 1px solid #d9d9d9;
}

.episode-image {
  flex: 0 0 74px;
}

.episode-image img {
  width: 74px;
  height: 98px;
  object-fit: cover;
}

.episode-details {
  margin-left: 1.0625rem;
  max-width: 204px;
  overflow: hidden;
}

.episode-title {
  margin: 0 0 5px;
  color: #3a4b5b;
  font-family: Montserrat, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 130%;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.episode-description {
  margin: 0;
  color: #3a4b5b;
  font-family: Montserrat, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 150%;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Footer (content3) ===== */
.footer-box {
  background: rgba(217, 217, 217, 0.2);
}

.content3 {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 2.5rem 2.25rem;
}

.company-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.company-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d9d9d9;
  transform: scaleY(0.5);
}

.contact,
.legal {
  flex: 1;
  margin-bottom: 20px;
}

.company-intro h2 {
  margin: 0;
  color: #000;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 130%;
}

.company-intro ul {
  margin: 0;
}

.company-intro ul li {
  margin: 8px 0 0;
  color: #000;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 150%;
}

.company-intro ul li:first-child {
  margin-top: 12px;
}

.footer {
  max-width: 100%;
  margin: 12px 0 0;
  text-align: left;
  color: #9f9fa2;
  font-size: 8px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.16px;
  padding-bottom: 0;
}

/* ===== Desktop — match idrama.video ===== */
@media (min-width: 769px) {
  .content1 {
    height: 100vh;
    max-height: 53.25rem;
    min-height: 852px;
  }

  .header {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2.3rem 1.5rem;
    border-bottom: 3px solid rgba(134, 134, 134, 0.5);
  }

  .header.pb0 {
    padding-bottom: 2.3rem;
    border-bottom: 3px solid rgba(134, 134, 134, 0.5);
  }

  .logo.max img {
    width: 3.8rem;
    height: auto;
    margin-right: 1.25rem;
    border-radius: 0.75rem;
  }

  .logo.max .title {
    font-size: 32px;
  }

  .slogan {
    margin-top: 160px;
    padding: 1.25rem 0;
  }

  .slogan-top {
    font-size: 3.625rem;
    line-height: 100%;
    height: 87px;
    text-shadow: none;
  }

  .download {
    margin-top: 0;
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .pc-button {
    display: inline-block;
    margin: 11px 30px 0;
  }

  .pc-button img {
    width: 15rem;
    height: 5.3125rem;
    object-fit: contain;
  }

  .mobile-button {
    display: none;
  }

  .content2 {
    width: 75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 1.25rem;
  }

  .section-title {
    color: #000;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 200%;
  }

  .section-title-span {
    font-size: 3rem;
    font-weight: 700;
    line-height: 150%;
  }

  .episodes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .episode {
    width: 45.3333%;
    margin: 2.5rem 0;
    padding-bottom: 2.25rem;
  }

  .episode-image {
    flex: 0 0 128px;
  }

  .episode-image img {
    width: 128px;
    height: 170px;
  }

  .episode-details {
    margin-left: 1rem;
    max-width: 400px;
  }

  .episode-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 150%;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .episode-description {
    margin: 8px 0 0;
    font-size: 14px;
    max-height: 108px;
    -webkit-line-clamp: 5;
  }

  .content3,
  .company-intro {
    width: 75rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .content3 {
    padding: 2rem 1.5rem 2.5rem;
  }

  .company-intro {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .company-intro::after {
    display: none;
  }

  .company-intro h2 {
    font-size: 24px;
    margin-top: 19.92px;
    margin-bottom: 10px;
  }

  .company-intro ul li {
    margin: 15px 0;
    font-size: 1.25rem;
  }

  .company-intro ul li:first-child {
    margin-top: 15px;
  }

  .footer {
    text-align: center;
    color: #9f9fa2;
    font-size: 1rem;
    letter-spacing: 0.32px;
    padding-bottom: 2rem;
  }
}
