.content-page {
  background:
    radial-gradient(1000px 520px at 10% -10%, rgba(239, 68, 68, 0.08), transparent),
    radial-gradient(780px 420px at 100% 0%, rgba(168, 85, 247, 0.08), transparent),
    var(--bg);
}

.content-shell {
  padding: 32px 0 56px;
}

.content-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.content-sidebar,
.content-main {
  min-width: 0;
}

.content-poster-card,
.ratings-block,
.sidebar-card,
.content-hero-card,
.cast-section {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.94), rgba(11, 16, 32, 0.96));
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.content-poster-card {
  overflow: hidden;
}

.content-poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(180deg, rgba(15, 21, 40, 0.9), rgba(11, 16, 32, 0.95));
}

.content-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px 0;
}

.poster-btn,
.fav-btn,
.content-social button,
.title-icons button {
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 21, 40, 0.95);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.poster-btn:hover,
.fav-btn:hover,
.content-social button:hover,
.title-icons button:hover,
.watch-btn:hover,
.list-btn:hover,
.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.55);
}

.poster-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.watch-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 16px 0;
}

.watch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 21, 40, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.watch-btn__icon {
  font-size: 22px;
  line-height: 1;
}

.watch-btn__text {
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.list-actions {
  display: flex;
  gap: 10px;
  padding: 16px;
}

.list-btn {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.14);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fav-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 20px;
}

.ratings-block,
.sidebar-card {
  margin-top: 18px;
  padding: 18px;
}

.ratings-head,
.ratings-values,
.ratings-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.ratings-head {
  color: var(--muted);
  font-size: 12px;
}

.ratings-values {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1;
}

.ratings-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.rating-red {
  color: #ff5d5d;
}

.rating-green {
  color: #6ee787;
}

.sidebar-card__title {
  font-size: 18px;
  font-weight: 700;
}

.collections-preview__empty {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 21, 40, 0.85);
  color: var(--muted);
}

.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 21, 40, 0.88);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tab.active {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.14);
}

.tab.disabled {
  color: #6b7280;
  background: rgba(15, 21, 40, 0.52);
  cursor: default;
}

.content-hero-card,
.cast-section {
  padding: 24px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.content-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.content-year {
  color: var(--muted);
  font-weight: 500;
}

.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.title-meta__dot {
  opacity: 0.5;
}

.title-rating {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-rating {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: #ff5d5d;
}

.title-icons {
  display: flex;
  gap: 10px;
}

.title-icons button,
.content-social button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.content-info-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 200px;
  gap: 22px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(15, 21, 40, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.info-flag {
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0 33%, #2b65ff 33% 66%, #e63946 66% 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 18px;
  align-content: start;
}

.info-label {
  color: var(--muted);
}

.info-value {
  color: var(--text);
  font-weight: 500;
}

.info-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.72);
  overflow: hidden;
}

.info-logo__title {
  padding: 18px;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.info-logo img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

.content-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 216, 107, 0.18);
  border: 1px solid rgba(255, 216, 107, 0.35);
  color: #ffe08a;
  font-size: 13px;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.32);
  color: #9fd0ff;
}

.tag-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.content-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-description {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(229, 231, 235, 0.96);
}

.cast-section {
  margin-top: 22px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 30px;
}

.cast-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.cast-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cast-row {
  min-width: 0;
}

.cast-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cast-row__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.cast-row__meta {
  font-size: 12px;
  color: var(--muted);
}

.cast-row__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 124, 255, 0.55) rgba(255, 255, 255, 0.05);
}

.cast-row__track::-webkit-scrollbar {
  height: 8px;
}

.cast-row__track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.cast-row__track::-webkit-scrollbar-thumb {
  background: rgba(79, 124, 255, 0.55);
  border-radius: 999px;
}

.cast-card {
  flex: 0 0 100px;
  width: 100px;
  background: transparent;
}

.cast-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(59, 130, 246, 0.12));
}

.cast-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cast-card__name {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cast-card__role {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(156, 163, 175, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cast-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 84px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 21, 40, 0.82);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .ratings-block,
  .sidebar-card {
    margin-top: 0;
  }

  .content-info-card {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .info-logo {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .content-shell {
    padding: 18px 0 32px;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .watch-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-row,
  .content-bottom-row,
  .section-title-row,
  .cast-row__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-title {
    font-size: 30px;
  }

  .main-rating {
    font-size: 34px;
  }

  .content-info-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-flag {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #ffffff 0 33%, #2b65ff 33% 66%, #e63946 66% 100%);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .cast-card {
    flex-basis: 92px;
    width: 92px;
  }
}
