.hero {
  position: relative;
  height: 88vh;
  max-height: 840px;
  min-height: 540px;
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}

.hero-slide.active .hero-bg {
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-slide.prev {
  opacity: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 10s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(12, 14, 13, 0.96) 0%,
      rgba(12, 14, 13, 0.75) 35%,
      rgba(12, 14, 13, 0.3) 65%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(12, 14, 13, 1) 0%,
      rgba(12, 14, 13, 0.6) 20%,
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(12, 14, 13, 0.7) 0%, transparent 25%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 48px 72px;
  max-width: 680px;
  z-index: 2;
}

.hero-slide.active .hero-content {
  animation: heroContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge-rating {
  background: var(--accent);
  color: #0c0e0d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(150, 167, 141, 0.25);
}

.badge-plain {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title-area {
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
}

.hero-logo-wrap {
  margin-bottom: 4px;
}

.hero-logo {
  max-height: 110px;
  max-width: 420px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.9));
  display: block;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 8px 30px rgba(0, 0, 0, 0.7);
}

.hero-overview {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(244, 246, 244, 0.7);
  margin-bottom: 28px;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  letter-spacing: 0.3px;
}

.hero-btn.primary {
  background: var(--accent-gradient);
  color: #0c0e0d;
  box-shadow: 0 6px 20px rgba(150, 167, 141, 0.35);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(150, 167, 141, 0.5);
  filter: brightness(1.05);
}

.hero-btn.primary:active {
  transform: translateY(0);
}

.hero-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(150, 167, 141, 0.4);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(150, 167, 141, 0.15);
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: var(--accent);
  width: 44px;
  box-shadow: 0 0 12px rgba(150, 167, 141, 0.5);
}

.home-view {
  padding-bottom: 60px;
}

.row-section {
  margin-top: 44px;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  margin-bottom: 16px;
}

.row-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.row-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border2);
}

.row-type-badge.movie {
  color: var(--accent);
  border-color: rgba(150, 167, 141, 0.3);
  background: rgba(150, 167, 141, 0.1);
}

.row-type-badge.series {
  color: #7bb0f5;
  border-color: rgba(123, 176, 245, 0.3);
  background: rgba(123, 176, 245, 0.1);
}

.row-scroller {
  overflow-x: auto;
  padding: 8px 36px 18px;
  cursor: grab;
  scroll-behavior: smooth;
}

.row-scroller::-webkit-scrollbar {
  height: 4px;
}

.row-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.row-toggle {
  display: flex;
  margin-left: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
}

.row-toggle-btn {
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text2);
  transition: all var(--ease);
}

.row-toggle-btn.active {
  background: var(--accent);
  color: #0c0e0d;
  box-shadow: 0 1px 6px rgba(150, 167, 141, 0.3);
}

.row-toggle-btn:not(.active):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.row-toggle-btn.active.series-active {
  background: #4a90d9;
  color: #fff;
  box-shadow: 0 1px 6px rgba(74, 144, 217, 0.4);
}
