:root {
  --bg: #000000;
  --card: #101010;
  --text: #ffffff;
  --muted: #b3b3b3;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e50914;
  --red-dark: #c11119;
  --input: rgba(22, 22, 22, 0.72);
  --pink: #ff007a;
  --blue: #1d4fff;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  padding: 24px 0;
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 60px;
  width: auto;
  height: clamp(32px, 8vw, 48px);
  object-fit: contain;
  color: red;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  background: rgba(15, 15, 15, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  min-width: 200px;
  outline: none;
  height: 40px;
  padding: 8px 36px 8px 55px;
  transition: all 0.25s ease;
}

.lang-select:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.lang-select:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.lang-wrapper {
  position: relative;
  display: inline-block;
}

.lang-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.lang-icon img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

#signInBtn {
  height: 40px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-large {
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 165px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 110px 0 120px;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.72) 100%,
      rgba(0, 0, 0, 0.68) 100%
    ),
    radial-gradient(circle at center, rgba(229, 9, 20, 0.16), transparent 38%),
    url("bg netflix.png") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -62px;
  height: 100px;
  border-top: 3px solid #ff0a7a;
  background: radial-gradient(
    70% 180% at 50% 0%,
    rgba(5, 25, 92, 0.55) 0%,
    rgba(2, 11, 46, 0.42) 35%,
    rgba(0, 0, 0, 0.28) 52%,
    rgba(0, 0, 0, 0.28) 52%,
    rgba(0, 0, 0, 0.28) 52%,
    rgba(0, 0, 0, 0.12) 68%,
    rgba(0, 0, 0, 0) 82%
  );
  border-radius: 50% 50% 0 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero .sub {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero .desc {
  color: #f1f1f1;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 760px;
}

.email-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1 1 420px;
  max-width: 520px;
  position: relative;
}

.input-group input {
  width: 100%;
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff; 
  outline: none;
  padding: 26px 16px 10px;
  font-size: 1.1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  caret-color: #fff;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;

}

.input-group label {
  position: absolute;
  left: 18px;
  top: 17px;
  font-size: 0.9rem;
  background: transparent;
  color: #b3b3b3;
  pointer-events: none;
  transition: 0.2s ease;
}

.input-group input:focus {
  border-color: #16c172;
  box-shadow: 0 0 0 2px #16c172;
}

.input-group input,
.input-group input:focus,
.input-group input:valid,
.input-group input:not(:placeholder-shown) {
  background: transparent !important;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #141414 inset;
  transition: background-color 5000s ease-in-out 0s;
  border-color: #16c172;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 10px;
  font-size: 0.9rem;
  color: #b3b3b3;
}

.input-group.error input {
  border-color: #e50914 !important;
  box-shadow: 0 0 0 1px #e50914;
}

.input-error::before {
  content: "✖ ";
}

.input-error {
  display: none;
  margin: 8px 0 0;
  color: #e50914;
  font-size: 0.95rem;
  text-align: left;
}

.input-error.show {
  display: block;
}

.section {
  padding: 38px 0;
  background: #000;
  position: relative;
  z-index: 3;
}

.section-title {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin: 0 0 22px;
  font-weight: 800;
}

.trend-wrap {
  position: relative;
  padding: 0 70px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 120px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 14px;
  z-index: 5;
  transition: 0.2s ease;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.4s ease,
    transform 0.3s ease;
}

.slider-btn.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

.trend-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(20% - 14.4px);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 0 18px;
  scrollbar-width: none;
}

.trend-slider::-webkit-scrollbar {
  display: none;
}

.movie-card {
  position: relative;
  min-width: 0;
  height: 280px;
  border-radius: 5px;
  overflow: visible;
  transition: transform 0.3s ease;
}

.movie-card:hover {
  transform: scale(1.04);
}

.movie-poster {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.movie-rank {
  position: absolute;
  left: -10px;
  bottom: -8px;
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: #000;
  -webkit-text-stroke: 2px #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.reason-grid,
.faq-list,
.footer-links {
  display: grid;
  gap: 18px;
}

.reason-grid {
  grid-template-columns: repeat(4, 1fr);
}

.reason-card {
  min-height: 330px;
  padding: 32px 20px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1a1f5a 0%, #210d1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.reason-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 800;
}

.reason-icon {
  position: absolute;
  right: 22px;
  bottom: 18px;
}

.reason-card p {
  margin: 0;
  color: #c9c9d4;
  line-height: 1.45;
  font-size: 0.95rem;
  max-width: 90%;
  margin-bottom: 12px;
}

.reason-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.faq-list {
  grid-template-columns: 1fr;
}

.faq-item {
  background: #2d2d2d;
  border-radius: 1px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 28px;
  text-align: left;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question:hover {
  background: #3a3a3a;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background: #2d2d2d;
  border-top: 1px solid #000;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 24px;
}

.faq-answer p {
  margin: 0;
  color: #f0f0f0;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.faq-symbol {
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-symbol {
  transform: rotate(45deg);
}

.cta-bottom {
  text-align: center;
  padding-top: 18px;
}

.cta-bottom p {
  margin: 0 0 18px;
  color: #f1f1f1;
}

.footer {
  padding: 48px 0 80px;
  color: var(--muted);
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 36px;
}

.footer-links a {
  text-decoration: underline;
  line-height: 1.8;
}

.note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #8f8f8f;
  max-width: 760px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #181818;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .trend-slider {
    grid-auto-columns: calc(25% - 13.5px);
  }

  .reason-grid,
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 18px 0;
  }

  .lang-select {
    min-width: 180px;
    padding: 9px 36px 9px 55px;
  }

  .btn {
    padding: 10px 16px;
  }

  .hero {
    min-height: 88vh;
    padding: 120px 0 90px;
  }

  .email-form {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .input-group {
    flex: 1;
    max-width: 420px;
  }

  .input-group input {
    width: 100%;
    height: 58px;
  }

  .btn-large {
    width: auto;
    max-width: none;
    min-width: 160px;
    height: 58px;
  }

  .trend-slider {
    grid-auto-columns: clamp(140px, 20vw, 200px);
  }

  .movie-card {
    height: 220px;
    aspect-ratio: 2 / 3;
  }

  .slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reason-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .header {
    padding: 16px 0;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
    flex: 0 0 auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero .sub {
    font-size: 1.05rem;
  }

  .hero .desc {
    font-size: 0.95rem;
  }

  .trend-slider {
    grid-auto-columns: calc(50% - 9px);
    gap: 14px;
  }

  .movie-card {
    height: 150px;
  }

  .movie-rank {
    font-size: 3.2rem;
    left: -6px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 32px;
    max-width: 100px;
  }

  .lang-select {
    min-width: 90px;
    height: 36px;
    padding: 6px 28px 6px 34px;
    font-size: 0.9rem;
  }

  .lang-icon img {
    width: 16px;
    height: 16px;
  }

  #signInBtn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

#heroForm .input-group input {
  width: 100%;
  border-radius: 4px;
}

#heroForm .btn-large {
  font-size: 18px;
  border-radius: 4px;
  min-width: 140px;
}

#bottomForm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#bottomForm .input-group {
  flex: 1;
  max-width: 700px;
}

#bottomForm .input-group input {
  width: 100%;
  border-radius: 4px;
}

#bottomForm .btn-large {
  font-size: 18px;
  min-width: 140px;
  border-radius: 4px;
}

.btn-large span {
  font-size: 1.7rem;
  margin-left: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  transform: none;
}
