* {
    transition: all .25s ease;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #ffe6f3 0%, #fff3fb 40%, #ffffff 100%);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Background parallax */
.movie-page-bg {
    background-image: url('/images/bg-cloud-pink.png');
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 50px;
}

/* Navbar ------------------------------------------------- */
.movie-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 111, 155, 0.12);
    animation: fadeDown .6s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.movie-navbar .navbar-brand {
    color: #ff2f8c !important;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Hover menu underline */
.movie-menu .nav-link {
    position: relative;
    font-weight: 600;
}

.movie-menu .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ff2f8c;
    border-radius: 50px;
    transition: width .3s ease;
}

.movie-menu .nav-link:hover::after {
    width: 100%;
}

/* Button primary ------------------------------------------------ */
.btn-primary {
    background: linear-gradient(135deg, #ff6fb2, #ff2f8c);
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(255, 47, 140, .35);
    border-radius: 14px;
    padding: .55rem 1.3rem;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 47, 140, .45);
}

/* Movie grid --------------------------------------------------- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    animation: fadeUp .8s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card đẹp hơn */
.movie-card {
    background: linear-gradient(180deg, #ffffff 0%, #ffeef8 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 124, 180, .22);
    animation: floatUp 1.2s ease;
}

@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Poster hover zoom */
.movie-card-poster {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform .4s ease;
}

.movie-card:hover .movie-card-poster {
    transform: scale(1.08);
}

/* Card nội dung */
.movie-card-body {
    padding: 1.3rem 1.5rem;
}

.movie-card-title {
    font-weight: 800;
    color: #3a203f;
}

/* Genre badge */
.badge-genre {
    padding: .25rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffc3e9, #ffd6f1);
    font-size: .75rem;
    font-weight: 600;
}

/* Hover nổi bật item */
.movie-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255, 47, 140, .28);
}

/* Price */
.movie-card-price {
    font-weight: 800;
    color: #ff2f8c;
    font-size: 1.1rem;
}

/* Rating icon */
.movie-card-rating {
    color: #ffbb00;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid rgba(255, 111, 155, 0.15);
}
/* Poster trong giỏ hàng: nhỏ lại */
.cart-item-poster-wrap {
  flex: 0 0 120px;
  max-width: 120px;
}

.cart-item-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Nút hồng chính */
.btn-cart-primary {
  border-radius: 999px;
  padding: 10px 26px;
  border: none;
  background: linear-gradient(135deg, #ff4b9a, #ff7ac4);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(255, 105, 180, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-cart-primary:hover,
.btn-cart-primary:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(255, 105, 180, 0.55);
  opacity: 0.96;
}

/* Nút viền (Chọn thêm phim, Xóa…) */
.btn-cart-ghost {
  border-radius: 999px;
  padding: 8px 20px;
  border: 1px solid #ff9ac8;
  background: rgba(255, 255, 255, 0.7);
  color: #b10b63 !important;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-cart-ghost:hover,
.btn-cart-ghost:focus {
  background: #ffe0f0;
  color: #8f064b !important;
  box-shadow: 0 8px 18px rgba(255, 140, 190, 0.35);
}

/* Tùy chỉnh riêng nút trong thẻ summary */
.cart-summary-card .btn-outline-light {
  border-radius: 999px;
  padding: 8px 20px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.7);
  color: #b10b63;
  font-weight: 500;
}

.cart-summary-card .btn-outline-light:hover {
  background: #fff;
  color: #8f064b;
}
/* ========== HOME PAGE ========== */

.home-page {
  max-width: 1160px;
  margin: 0 auto 60px auto;
  padding: 24px 16px 40px;
}

/* HERO */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 28px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, #ffe4f5 0, #ffd2ec 30%, #ffeef8 70%, #ffeefe 100%);
  box-shadow: 0 20px 40px rgba(255, 140, 190, 0.25);
  margin-bottom: 40px;
}

.home-hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b10b63;
  margin-bottom: 6px;
}

.home-hero-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: #4a1332;
  margin-bottom: 10px;
}

.home-hero-subtitle {
  font-size: 15px;
  color: #7a4863;
  max-width: 480px;
}

.home-hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hero-primary {
  border-radius: 999px;
  padding: 10px 26px;
  border: none;
  background: linear-gradient(135deg, #ff4b9a, #ff7ac4);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(255, 105, 180, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(255, 105, 180, 0.5);
  opacity: 0.96;
}

.btn-hero-ghost {
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid #ff9ac8;
  background: rgba(255, 255, 255, 0.75);
  color: #b10b63 !important;
  font-weight: 500;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-hero-ghost:hover,
.btn-hero-ghost:focus {
  background: #ffe0f0;
  color: #8f064b !important;
  box-shadow: 0 10px 20px rgba(255, 140, 190, 0.36);
}

.home-hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7a4863;
}

.home-hero-meta span::before {
  content: "• ";
}

/* Poster bên phải */

.home-hero-poster {
  display: flex;
  justify-content: center;
}

.home-hero-poster-inner {
  position: relative;
  width: 260px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #000;
}

.home-hero-poster-inner img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.home-hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 71, 142, 0.95);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.home-hero-poster-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
}

.home-hero-poster-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* SECTION chung */

.home-section {
  margin-bottom: 40px;
}

.home-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #4a1332;
  margin-bottom: 20px;
}

/* Card lý do */

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card {
  border-radius: 22px;
  padding: 18px 18px 20px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(255, 140, 190, 0.16);
  text-align: left;
}

.home-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe4f2;
  font-size: 22px;
  margin-bottom: 8px;
}

.home-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #4a1332;
  margin-bottom: 4px;
}

.home-feature-card p {
  font-size: 14px;
  color: #7a4863;
}

/* CTA cuối */

.home-cta {
  margin-top: 10px;
}

.home-cta-inner {
  border-radius: 26px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #ffc4e0, #ffeaf5);
  box-shadow: 0 16px 30px rgba(255, 140, 190, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-cta-inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: #4a1332;
  margin-bottom: 4px;
}

.home-cta-inner p {
  font-size: 14px;
  color: #7a4863;
  max-width: 520px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-poster {
    order: -1;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-title {
    font-size: 28px;
  }
}
