/* styles.css */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #0a0a0a;
  color: #e8e8e8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  padding: 16px 22px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Layout */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding: 18px 22px;
}

.container-wrapper {
  padding: 6px 22px 44px;
}

.section-title {
  margin: 26px 0 11px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Service cards */
.card {
  background: #141414;
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.card:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.14);
}

.card.selected {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.07);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 5px;
  padding: 2px;
}

.title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.price {
  font-size: 12px;
  color: #888;
}

/* Bundled out */
.card.bundled-out {
  opacity: 0.42;
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.card.bundled-out::after {
  content: "In bundle";
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
}

.card.bundled-out .logo {
  opacity: 0.4;
}

/* Summary */
.summary {
  padding: 18px 22px;
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.bundle-box {
  padding: 12px;
  margin-top: 11px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
}

/* Selected chips */
.selected-chip {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ccc;
}

.selected-chip img {
  width: 13px;
  height: 13px;
}

.remove-x {
  cursor: pointer;
  color: #666;
  font-weight: 500;
}

.remove-x:hover {
  color: #4ade80;
}

/* Bundle rows */
.bundle {
  border-radius: 5px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #141414;
  transition: border-color 0.15s;
}

.bundle:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.bundle-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.bundle-title {
  font-weight: 600;
  font-size: 13px;
  color: #e8e8e8;
}

.bundle-desc {
  font-size: 12px;
  color: #666;
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-top: 11px;
  user-select: none;
}

#bundle-toggle {
  font-size: 13px;
  color: #666;
}

.bundles-collapsed {
  display: none;
}

.bundles-expanded {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Buttons */
button {
  padding: 8px 15px;
  margin-top: 9px;
  background: #4ade80;
  color: #121212;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}

button:hover {
  background: #22c55e;
}

.bundle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8e8e8;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}

.bundle-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #aaa;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all 0.15s;
}

.tab-provider-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.tab-btn.active {
  background: #4ade80;
  color: #121212;
  font-weight: 700;
  border-color: #4ade80;
}

/* Search */
.search-bar {
  padding: 14px 22px;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-input-wrapper {
  display: flex;
  gap: 9px;
  max-width: 660px;
  margin: 0 auto;
}

#search-input {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  color: #e8e8e8;
  outline: none;
  transition: border-color 0.15s;
}

#search-input::placeholder {
  color: #555;
}

#search-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

#search-btn {
  padding: 0 22px;
  background: #4ade80;
  color: #121212;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0;
  font-size: 13px;
}

#search-btn:hover {
  background: #22c55e;
}

/* Search results */
#search-results {
  padding: 0 22px 30px;
}

#search-results .section-title {
  margin-top: 18px;
}

#search-results .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 9px 0;
}

#search-results .card {
  width: 100%;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #141414;
  display: flex;
  flex-direction: column;
}

#search-results .card:hover {
  transform: scale(1.02);
}

#search-results .card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

#search-results .title {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 9px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

#search-results .price {
  font-size: 11px;
  color: #777;
  padding: 2px 9px 9px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  background: #141414;
  width: 95%;
  max-width: 760px;
  max-height: 90vh;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  background: #1a1a1a;
  border-radius: 5px;
  margin-bottom: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.source-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 5px;
  background: #000;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.modal-col {
  min-width: 0;
}

/* Horizontal cards */
#trending-results .card,
#theaters-results .card,
#top10-movies-results .similar-card,
#top10-tv-results .similar-card,
.genre-row .card,
.similar-card {
  flex: 0 0 140px;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px;
  box-sizing: border-box;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
  overflow: hidden;
}

#trending-results .card *,
#theaters-results .card *,
.similar-card *,
.card-info {
  min-width: 0;
  max-width: 100%;
}

#trending-results .title,
#theaters-results .title,
.genre-row .title,
.similar-card .title,
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #f0f0f0;
  margin: 7px 0 2px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

#trending-results .price,
#theaters-results .price,
.genre-row .price,
.similar-card .price,
.card-subtext {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin: 0 0 2px;
  width: 100%;
  white-space: normal;
  line-height: 1.3;
  display: block;
}

.similar-card .price span,
#theaters-results .price span,
.card-subtext span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accordion */
.accordion {
  margin: 0 22px 18px;
}

.accordion-item {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  margin-bottom: 7px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  user-select: none;
  transition: background 0.15s;
}

.accordion-header:hover {
  background: #1a1a1a;
}

.accordion-icon {
  font-size: 15px;
  color: #888;
  transition: transform 0.2s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0f0f0f;
}

.accordion-item.active .accordion-content {
  max-height: 8000px;
  padding: 7px 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.plan-section {
  padding: 18px 22px;
}

.plan-box {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 18px;
}

/* Title page */
#title-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px;
}

.page {
  padding-bottom: 44px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8e8;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 22px;
  transition: background 0.15s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.poster {
  width: 100%;
  max-width: 270px;
  border-radius: 5px;
  align-self: center;
  display: block;
}

.info {
  flex: 1;
}

.info h1.title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.meta span {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.meta .rating {
  background: rgba(255, 220, 0, 0.09);
  border-color: rgba(255, 220, 0, 0.16);
  color: #ffc;
}

.maturity-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.rating {
  font-size: 17px;
  margin-bottom: 18px;
  color: #ffd700;
}

.overview {
  line-height: 1.6;
  font-size: 14px;
  color: #bbb;
  margin-bottom: 22px;
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.provider {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1a1a1a;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.provider img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 3px;
}

.trailer {
  margin-top: 32px;
}

.trailer h2 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.trailer iframe {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  border: none;
  background: #000;
}

.muted {
  color: #666;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 36px;
}

.poster-container {
  display: flex;
  justify-content: center;
}

.hero-info h3 {
  margin: 20px 0 9px;
  font-size: 17px;
  font-weight: 600;
}

.hero-info p {
  margin: 7px 0;
  color: #aaa;
  font-size: 13px;
}

.no-image-big {
  width: 100%;
  max-width: 270px;
  height: 380px;
  background: #1c1c1c;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: #444;
}

/* Cast */
.cast-section {
  margin: 44px 0 28px;
}

.cast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cast-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cast-arrows {
  display: flex;
  gap: 7px;
}

.cast-arrow {
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8e8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.cast-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cast-grid-horizontal {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.cast-grid-horizontal::-webkit-scrollbar {
  display: none;
}

.cast-card {
  flex: 0 0 auto;
  width: 110px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cast-card:hover {
  opacity: 0.8;
}

.cast-card img,
.cast-card .no-image {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 5px;
}

.cast-card .no-image {
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.cast-name {
  font-weight: 600;
  margin-top: 7px;
  font-size: 12px;
  color: #e0e0e0;
}

.cast-character {
  font-size: 11px;
  color: #777;
  line-height: 1.3;
}

/* Similar */
.similar-section {
  margin: 44px 0 28px;
}

.similar-section h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}

.similar-grid {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.similar-grid::-webkit-scrollbar {
  display: none;
}

.similar-card {
  flex: 0 0 135px;
  width: 135px;
  min-width: 135px;
  max-width: 135px;
  cursor: pointer;
  overflow: hidden;
}

.similar-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.similar-card .title {
  font-size: 12px;
  margin-top: 7px;
  font-weight: 600;
}

.similar-card .price {
  font-size: 11px;
  color: #777;
}

/* Streaming tabs */
.whatsnew-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 3px 2px 11px;
  scrollbar-width: none;
}

.whatsnew-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 40px;
  color: #a0a0a0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  user-select: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.tab-btn.active {
  background: #fff;
  color: #121212;
  border-color: #fff;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.12);
}

.tab-provider-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  border-radius: 3px;
}

/* Top 10 */
#top10-movies-results .similar-card,
#top10-tv-results .similar-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

#top10-movies-results .poster-container,
#top10-tv-results .poster-container {
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.chart-rank-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 7px;
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
}

.card-subtext {
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

/* Profile accordion */
.profile-accordion {
  background: #141414;
  border-radius: 5px;
  margin: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.profile-header {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  transition: background 0.15s;
}

.profile-header:hover {
  background: #1f1f1f;
}

.profile-content {
  display: none;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-content.open {
  display: block;
}

.profile-section {
  margin-bottom: 14px;
}

.profile-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #666;
  margin-bottom: 9px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 7px;
}

.profile-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  background: #1a1a1a;
  padding: 9px 11px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.profile-option:hover {
  background: #222;
}

.profile-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.profile-btn {
  padding: 7px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.profile-btn.primary {
  background: #e8e8e8;
  color: #0a0a0a;
}

.profile-btn.primary:hover {
  background: #fff;
}

.profile-btn.danger {
  background: transparent;
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #e50914;
}

.profile-btn.danger:hover {
  background: rgba(229, 9, 20, 0.07);
  border-color: #e50914;
}

/* Misc */
.submenu {
  display: none;
  margin-top: 9px;
  background: #0f0f0f;
  padding: 9px 11px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu label {
  display: block;
  font-size: 12px;
  color: #bbb;
  margin: 4px 0;
  cursor: pointer;
}

.overview-section {
  margin: 28px 0;
}

.watch-section {
  display: none;
}

/* Footer */
.app-footer {
  margin-top: 44px;
  padding: 32px 22px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: #555;
}

.footer-content {
  max-width: 540px;
  margin: 0 auto;
}

.app-footer p {
  font-size: 12px;
  line-height: 1.55;
  margin: 3px 0;
}

.copyright {
  font-weight: 600;
  margin-top: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: #444;
}

/* Media queries */
@media (max-width: 650px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-body {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  #search-results .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 4px 0;
  }
  #title-page {
    padding: 14px;
  }
  .info h1.title {
    font-size: 22px;
  }
  .poster {
    max-width: 210px;
  }
  .container-wrapper {
    padding: 6px 14px 36px;
  }
  .search-bar {
    padding: 12px 14px;
  }
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
  }
  .poster {
    width: 250px;
    flex-shrink: 0;
    align-self: flex-start;
  }
  .info h1.title {
    font-size: 36px;
  }
  .hero-grid {
    grid-template-columns: 270px 1fr;
    gap: 32px;
    align-items: start;
  }
  .poster-container {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .hero {
    gap: 40px;
  }
}

/* ===================== HERO CAROUSEL (FULL-BLEED & RESPONSIVE) ===================== */
.hero-carousel-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 20px;
    padding: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(280px, 40vh, 460px);
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
}

/* Vignette Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0a0a0a 18%, rgba(10, 10, 10, 0.55) 60%, transparent 100%),
                linear-gradient(0deg, #0a0a0a 0%, transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 0 0 0 50px;
}

.hero-badge {
    display: inline-block;
    background: #4ade80;
    color: #0f0f0f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(20px, 3.2vw, 32px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #bbb;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-meta .rating-badge {
    color: #ffd700;
    font-weight: 700;
}

.hero-overview {
    font-size: 13px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-watch-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.hero-watch-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-provider-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-provider-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.hero-btn.secondary {
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* Nav Controls & Dots */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }

.hero-indicators {
    position: absolute;
    bottom: 14px;
    right: 30px;
    display: flex;
    gap: 6px;
    z-index: 3;
    max-width: 80%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #4ade80;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */
@media (max-width: 1024px) {
    .hero-carousel { height: clamp(240px, 36vh, 360px); }
    .hero-content { padding-left: 40px; max-width: 440px; }
}

@media (max-width: 768px) {
    .hero-carousel { 
        height: clamp(210px, 32vh, 280px); 
    }

    .hero-slide { 
        align-items: flex-end; 
    }

    .hero-content { 
        padding: 0 40px 22px 40px; 
        max-width: 100%; 
    }

    .hero-overview { 
        display: none; 
    }

    .hero-nav {
        display: flex !important;
        width: 30px;
        height: 30px;
        font-size: 13px;
        background: rgba(0, 0, 0, 0.6);
    }

    .hero-nav.prev { left: 6px; }
    .hero-nav.next { right: 6px; }

    .hero-indicators { 
        right: 50%; 
        transform: translateX(50%); 
        bottom: 8px; 
        justify-content: center;
    }
}