.trailer-page {
  width: min(1680px, calc(100% - 28px));
  flex: 1 0 auto;
}

.trailer-app {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.trailer-panel {
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(7, 18, 38, 0.9), rgba(12, 28, 52, 0.88));
  box-shadow: 0 16px 32px rgba(2, 6, 14, 0.34);
}

[hidden] {
  display: none !important;
}

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

.trailer-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  min-height: 0;
  height: var(--trailer-sidebar-max-height, auto);
  max-height: var(--trailer-sidebar-max-height, none);
  overflow: visible;
}

.trailer-main {
  display: grid;
  gap: 18px;
}

.trailer-watched-panel {
  grid-column: 1 / -1;
  padding: 20px;
}

.trailer-player-panel,
.trailer-rating-panel,
.trailer-info {
  padding: 20px;
}

.trailer-section-heading {
  display: grid;
  gap: 8px;
}

.trailer-admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  width: 100%;
  padding: 0 0 10px;
  align-items: end;
}

.trailer-admin-tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #74deff;
  box-shadow: 0 0 14px rgba(116, 222, 255, 0.4);
  transition: transform 0.25s ease, width 0.25s ease;
}

.trailer-admin-tabs__button {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(116, 222, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.trailer-admin-tabs__button:hover,
.trailer-admin-tabs__button:focus-visible {
  outline: none;
  color: #f4fbff;
}

.trailer-admin-tabs__button.is-active {
  color: #f4fbff;
}

.trailer-section-heading__eyebrow,
.trailer-player-panel__eyebrow {
  margin: 0;
  color: #74deff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.trailer-section-heading h1,
.trailer-player-panel h2,
.trailer-list-section__header h2,
.trailer-info h2 {
  margin: 0;
}

.trailer-section-heading__text {
  margin: 0;
  color: rgba(232, 250, 255, 0.78);
}

.trailer-form {
  display: grid;
  gap: 12px;
}

#trailerTitleResultsContainer {
  margin-top: -4px;
}

#trailerTitleResultsContainer .autocomplete-list {
  max-height: 240px;
}

.trailer-selected-movie {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: -2px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(135deg, rgba(5, 15, 31, 0.92), rgba(12, 25, 47, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.trailer-selected-movie__poster {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.trailer-selected-movie__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.trailer-selected-movie__title,
.trailer-selected-movie__meta {
  margin: 0;
}

.trailer-selected-movie__title {
  color: #f4fbff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.trailer-selected-movie__meta {
  color: rgba(212, 244, 255, 0.72);
  font-size: 0.86rem;
}

.trailer-selected-movie__clear {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8f8ff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.trailer-selected-movie__clear:hover,
.trailer-selected-movie__clear:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 145, 145, 0.42);
  background: rgba(89, 18, 18, 0.32);
}

.trailer-form__field,
.trailer-rating-panel__field {
  display: grid;
  gap: 8px;
}

.trailer-form__field span,
.trailer-rating-panel__field span {
  font-weight: 700;
  color: #d7f7ff;
}

.trailer-form__submit {
  justify-content: center;
  gap: 10px;
}

.trailer-form__status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(232, 250, 255, 0.72);
}

.trailer-list-section {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.trailer-list-section--planned {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(9, 20, 40, 0.78), rgba(7, 15, 30, 0.58));
  border: 1px solid rgba(0, 212, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -10px 22px rgba(0, 0, 0, 0.18);
}

.trailer-boosty-section {
  align-content: start;
}

.trailer-boosty-card,
.trailer-saved-streams {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 20, 40, 0.78), rgba(7, 15, 30, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -10px 22px rgba(0, 0, 0, 0.18);
}

.trailer-boosty-card {
  position: relative;
  overflow: hidden;
}

.trailer-boosty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 111, 55, 0.18), transparent 46%),
    radial-gradient(circle at bottom right, rgba(255, 166, 0, 0.14), transparent 42%);
  pointer-events: none;
}

.trailer-boosty-card > * {
  position: relative;
  z-index: 1;
}

.trailer-boosty-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trailer-boosty-card__brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trailer-boosty-card__brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.trailer-boosty-card__brand-text {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff8f0;
  text-transform: lowercase;
}

.trailer-boosty-card__body {
  display: grid;
  gap: 10px;
}

.trailer-boosty-card__title,
.trailer-saved-streams__header h2 {
  margin: 0;
  color: #f4fbff;
}

.trailer-boosty-card__description {
  margin: 0;
  color: rgba(244, 251, 255, 0.82);
  line-height: 1.45;
}

.trailer-boosty-card__button {
  position: relative;
  justify-self: center;
  isolation: isolate;
  min-width: min(100%, 320px);
  min-height: 52px;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 208, 138, 0.32);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 244, 211, 0.28), transparent 34%),
    linear-gradient(90deg, #ff3a1f 0%, #ff6d0a 38%, #ffb30b 100%);
  color: #fff8ef;
  text-decoration: none;
  font-size: clamp(1rem, 0.88rem + 0.45vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 10px 0 rgba(150, 53, 7, 0.92),
    0 22px 34px rgba(255, 111, 14, 0.22),
    0 18px 30px rgba(2, 8, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -14px 20px rgba(166, 58, 4, 0.18);
  text-shadow: 0 2px 8px rgba(95, 30, 3, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.trailer-boosty-card__button:hover,
.trailer-boosty-card__button:focus-visible {
  outline: none;
  color: #ffffff;
  border-color: rgba(255, 231, 190, 0.56);
  filter: brightness(1.04) saturate(1.03);
  transform: translateY(-2px);
  box-shadow:
    0 12px 0 rgba(150, 53, 7, 0.92),
    0 26px 38px rgba(255, 126, 22, 0.3),
    0 18px 32px rgba(2, 8, 18, 0.24),
    0 0 0 3px rgba(255, 179, 11, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -14px 20px rgba(166, 58, 4, 0.16);
}

.trailer-boosty-card__button:active {
  transform: translateY(4px);
  box-shadow:
    0 6px 0 rgba(150, 53, 7, 0.92),
    0 14px 22px rgba(255, 111, 14, 0.16),
    0 12px 18px rgba(2, 8, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px rgba(166, 58, 4, 0.18);
}

.trailer-saved-streams__list {
  display: grid;
  gap: 10px;
}

.trailer-saved-streams__add-button {
  justify-self: center;
  min-width: 220px;
  min-height: auto;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(168, 236, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.trailer-saved-streams__add-button:hover,
.trailer-saved-streams__add-button:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #d8f8ff;
  transform: none;
}

.boosty-review-form {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background: rgba(4, 12, 24, 0.42);
}

.trailer-saved-stream-card {
  position: relative;
  width: 100%;
}

.trailer-saved-stream-card__link {
  width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(135deg, rgba(5, 15, 31, 0.92), rgba(12, 25, 47, 0.88));
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trailer-saved-stream-card__link:hover,
.trailer-saved-stream-card__link:focus-visible {
  outline: none;
  border-color: rgba(255, 159, 92, 0.46);
  box-shadow: 0 14px 28px rgba(6, 10, 22, 0.36);
  transform: translateY(-1px);
}

.trailer-saved-stream-card__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.9);
  color: #f4fbff;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.trailer-saved-stream-card__delete:hover,
.trailer-saved-stream-card__delete:focus-visible {
  outline: none;
  transform: scale(1.04);
  border-color: rgba(255, 137, 137, 0.52);
  background: rgba(88, 18, 18, 0.82);
}

.trailer-saved-stream-card__image {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.trailer-saved-stream-card__body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.trailer-saved-stream-card__title {
  color: #f4fbff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.trailer-saved-stream-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(244, 251, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.trailer-saved-stream-card__meta i {
  color: #ff7d45;
}

.trailer-page.is-public-view .trailer-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}

.trailer-boosty-delete-modal {
  width: min(460px, calc(100% - 32px));
}

.trailer-boosty-delete-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trailer-list-section__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trailer-list-section--planned .trailer-list-section__header {
  align-items: start;
  gap: 14px;
  padding-bottom: 2px;
}

.trailer-list-section--planned .trailer-list-section__header h2 {
  line-height: 1.05;
}

.trailer-list-section__more {
  min-height: 40px;
  padding: 9px 14px;
  white-space: normal;
  text-align: center;
  border-radius: 12px;
  font-weight: 800;
  box-shadow:
    0 10px 24px rgba(0, 212, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trailer-list-section__more--link {
  min-height: auto;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(168, 236, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}

.trailer-list-section__more--link:hover,
.trailer-list-section__more--link:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #d8f8ff;
  transform: none;
}

.trailer-list-section__more--link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.trailer-list-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trailer-list-section__header--modal {
  justify-content: flex-start;
  gap: 14px;
}

.trailer-count-chip {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.14);
  color: #a8ecff;
  font-weight: 800;
}

.trailer-count-chip--watched {
  background: rgba(61, 209, 133, 0.16);
  color: #bff7d6;
}

.trailer-list {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.trailer-list-section--planned .trailer-list {
  align-content: start;
  grid-auto-rows: max-content;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.9), rgba(8, 18, 34, 0.96));
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  overflow-y: auto;
  padding-right: 6px;
}

.trailer-list-section--planned #plannedTrailerEmpty {
  padding: 6px 2px 0;
}

.trailer-list-section--planned .trailer-list::-webkit-scrollbar,
.trailer-list--modal::-webkit-scrollbar {
  width: 8px;
}

.trailer-list-section--planned .trailer-list::-webkit-scrollbar-thumb,
.trailer-list--modal::-webkit-scrollbar-thumb {
  background: rgba(116, 222, 255, 0.3);
  border-radius: 999px;
}

.trailer-planned-modal {
  width: 100%;
  max-width: 1400px;
  max-height: min(82vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.modal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.trailer-list--modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
}

.trailer-list--modal .trailer-item {
  align-items: start;
}

.trailer-list--modal .trailer-item__body {
  align-self: center;
  justify-content: start;
  align-content: start;
  justify-items: start;
  align-items: start;
  width: 100%;
  text-align: left;
}

.trailer-list--modal .trailer-item__title,
.trailer-list--modal .trailer-item__meta,
.trailer-list--modal .trailer-item__rating {
  text-align: left;
  justify-self: start;
  width: 100%;
}

.trailer-item {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: stretch;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(135deg, rgba(5, 15, 31, 0.92), rgba(12, 25, 47, 0.88));
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trailer-item:hover,
.trailer-item:focus-visible,
.trailer-item.is-active {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.trailer-item__poster {
  width: 56px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.trailer-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-left: 4px;
}

.trailer-item__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #f4fbff;
}

.trailer-item__meta,
.trailer-item__rating {
  margin: 0;
  color: rgba(212, 244, 255, 0.72);
  font-size: 0.88rem;
}

.trailer-item__badge {
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  color: #d9f8ff;
}

.trailer-item__badge--watched {
  background: rgba(61, 209, 133, 0.16);
  color: #bff7d6;
}

.trailer-item__actions {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.trailer-item__kp-link {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.trailer-item__kp-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.trailer-item__kp-link:hover,
.trailer-item__kp-link:focus-visible {
  outline: none;
  border-color: rgba(255, 208, 0, 0.42);
  background: rgba(255, 208, 0, 0.12);
  transform: translateY(-1px);
}

.trailer-watched-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px;
  margin-top: 12px;
}

.trailer-watched-search {
  margin-top: 14px;
}

.trailer-watched-search .search-input {
  width: 100%;
}

.trailer-watched-card .movie-poster {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.trailer-watched-card {
  cursor: pointer;
}

.trailer-watched-card:hover,
.trailer-watched-card:focus-visible {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 212, 255, 0.3);
  border-color: var(--secondary-color);
  outline: none;
}

.trailer-watched-card .movie-info {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.trailer-watched-card .movie-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.trailer-watched-card .movie-year {
  color: rgba(212, 244, 255, 0.72);
  font-size: 0.84rem;
}

.trailer-watched-card .movie-rating {
  margin-bottom: 0;
  gap: 8px;
  padding: 8px 0 0;
}

.trailer-watched-card .movie-rating .rating-item {
  flex: 1 1 calc(50% - 5px);
  padding: 6px 8px;
  gap: 6px;
}

.trailer-watched-card .movie-rating img {
  width: 22px;
  height: 22px;
}

.trailer-watched-card .movie-rating span {
  font-size: 0.9rem;
}

.trailer-watched-card .movie-footer {
  margin-top: auto;
  padding: 0 14px 14px;
  align-items: center;
}

.trailer-watched-card .movie-actions {
  width: 100%;
}

.trailer-watched-card .btn-rate {
  width: 100%;
}

.trailer-empty {
  margin: 12px 0 0;
  color: rgba(212, 244, 255, 0.65);
}

.trailer-section-loader {
  min-height: 150px;
  padding: 22px 16px;
}

.trailer-sidebar-loader {
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 20, 40, 0.78), rgba(7, 15, 30, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -10px 22px rgba(0, 0, 0, 0.18);
}

.trailer-section-loader .section-loader__text {
  max-width: 260px;
  font-size: 0.86rem;
}

.trailer-info-loader {
  min-height: 180px;
}

.trailer-player-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.trailer-embed-wrap {
  position: relative;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 0, 76, 0.16), rgba(4, 8, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trailer-embed {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.trailer-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.76);
  pointer-events: none;
  z-index: 2;
  background: rgba(4, 8, 19, 0.22);
}

.trailer-embed-placeholder[hidden] {
  display: none;
}

.trailer-embed-placeholder p {
  display: block;
  max-width: 320px;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.trailer-embed-placeholder[data-state="loading"] {
  background: rgba(4, 8, 19, 0.16);
}

.trailer-embed-placeholder[data-state="empty"] {
  background: rgba(4, 8, 19, 0.22);
}

.trailer-rating-panel__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.trailer-rating-panel__score {
  display: grid;
  gap: 18px;
}

.trailer-rating-stars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 18, 36, 0.92), rgba(12, 28, 52, 0.86));
  border: 1px solid rgba(116, 222, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(2, 6, 14, 0.22);
}

.trailer-rating-stars .rating-star {
  margin-bottom: 0;
}

.trailer-rating-stars .rating-star:not(.rating-label) {
  width: 100%;
  max-width: 34px;
  height: 34px;
  justify-self: center;
}

.trailer-rating-stars .rating-star.rating-label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#trailerRatingStars .rating-star.rating-label,
#trailerUserRateStars .rating-star.rating-label {
  width: 100%;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
  background-color: rgba(255, 235, 59, 0.3);
  -webkit-mask: url('/images/Rat_rate.webp') center/contain no-repeat;
  mask: url('/images/Rat_rate.webp') center/contain no-repeat;
  justify-self: center;
  transform: none;
}

#trailerRatingStars .rating-star.rating-label:hover,
#trailerUserRateStars .rating-star.rating-label:hover,
#trailerRatingStars .rating-star.rating-label.hover-highlight,
#trailerUserRateStars .rating-star.rating-label.hover-highlight {
  background-color: rgba(255, 235, 59, 0.3);
  border-color: transparent;
  color: transparent;
  text-shadow: none;
  transform: none;
}

#trailerRatingStars .rating-star.rating-label[data-rating="0"]:hover,
#trailerUserRateStars .rating-star.rating-label[data-rating="0"]:hover,
#trailerRatingStars .rating-star.rating-label[data-rating="0"].hovered,
#trailerUserRateStars .rating-star.rating-label[data-rating="0"].hovered {
  background-color: #ff8a6b;
  -webkit-mask-image: url('/images/Rat_Worst.webp');
  mask-image: url('/images/Rat_Worst.webp');
}

#trailerRatingStars:not(.is-hover-previewing) .rating-star.rating-label[data-rating="0"].active,
#trailerUserRateStars:not(.is-hover-previewing) .rating-star.rating-label[data-rating="0"].active {
  background-color: #ff6b57;
  -webkit-mask-image: url('/images/Rat_Worst.webp');
  mask-image: url('/images/Rat_Worst.webp');
}

#trailerRatingStars .rating-star.rating-label[data-rating="11"]:hover,
#trailerUserRateStars .rating-star.rating-label[data-rating="11"]:hover,
#trailerRatingStars .rating-star.rating-label[data-rating="11"].hovered,
#trailerUserRateStars .rating-star.rating-label[data-rating="11"].hovered {
  background-color: #00e74f;
  -webkit-mask-image: url('/images/Rat_Best.webp');
  mask-image: url('/images/Rat_Best.webp');
}

#trailerRatingStars:not(.is-hover-previewing) .rating-star.rating-label[data-rating="11"].active,
#trailerUserRateStars:not(.is-hover-previewing) .rating-star.rating-label[data-rating="11"].active {
  background-color: #00e74f;
  -webkit-mask-image: url('/images/Rat_Best.webp');
  mask-image: url('/images/Rat_Best.webp');
}


.trailer-rating-panel__header {
  align-items: flex-start;
}

.trailer-rating-panel__heading {
  display: grid;
  gap: 8px;
}

.trailer-rating-panel__description {
  margin: 0;
  color: rgba(212, 244, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.45;
}

.trailer-rating-panel__value-row {
  display: block;
}

.trailer-rating-panel__value-box {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, 0.9), rgba(11, 27, 49, 0.82));
  border: 1px solid rgba(116, 222, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(2, 6, 14, 0.18);
}

.trailer-rating-panel__value-field {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(6, 16, 31, 0.26);
}

.trailer-rating-panel__value-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fdfff;
}

.trailer-rating-input-wrapper {
  justify-content: flex-start;
  margin-bottom: 0;
  gap: 12px;
}

#trailerRatingInput.rating-input {
  width: 105px;
  padding: 12px 14px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
  color: #f4fbff;
  background: linear-gradient(135deg, rgba(8, 22, 44, 0.92), rgba(20, 10, 38, 0.88));
  border: 1px solid rgba(116, 222, 255, 0.3);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(2, 6, 14, 0.25);
}

#trailerRatingInput.rating-input::placeholder {
  color: rgba(212, 244, 255, 0.42);
}

#trailerRatingInput.rating-input:focus,
#trailerUserRateInput.rating-input:focus {
  outline: none;
  border-color: rgba(116, 222, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(0, 212, 255, 0.14),
    0 10px 22px rgba(2, 6, 14, 0.3);
}

#trailerUserRateInput.rating-input {
  width: 105px;
  padding: 12px 14px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: left;
  color: #f4fbff;
  background: linear-gradient(135deg, rgba(8, 22, 44, 0.92), rgba(20, 10, 38, 0.88));
  border: 1px solid rgba(116, 222, 255, 0.3);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(2, 6, 14, 0.25);
}

#trailerUserRateInput.rating-input::placeholder {
  color: rgba(212, 244, 255, 0.42);
}

.trailer-rating-input-wrapper .rating-max {
  color: rgba(212, 244, 255, 0.82);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.trailer-rating-panel__meaning {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  border-left: 1px solid rgba(116, 222, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.trailer-rating-panel__meaning-text {
  color: var(--trailer-rating-meaning-color, #f4fbff);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.trailer-rating-panel__meaning.is-level-0,
.trailer-rating-panel__meaning.is-level-1,
.trailer-rating-panel__meaning.is-level-2 {
  --trailer-rating-meaning-color: #ff9b9b;
  background: linear-gradient(135deg, rgba(92, 22, 22, 0.34), rgba(54, 12, 22, 0.2));
  border-left-color: rgba(255, 120, 120, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.05);
}

.trailer-rating-panel__meaning.is-level-3,
.trailer-rating-panel__meaning.is-level-4 {
  --trailer-rating-meaning-color: #ffbd80;
  background: linear-gradient(135deg, rgba(94, 54, 18, 0.3), rgba(63, 33, 10, 0.18));
  border-left-color: rgba(255, 177, 99, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 177, 99, 0.05);
}

.trailer-rating-panel__meaning.is-level-5,
.trailer-rating-panel__meaning.is-level-6 {
  --trailer-rating-meaning-color: #f1de9c;
  background: linear-gradient(135deg, rgba(92, 82, 28, 0.22), rgba(58, 47, 10, 0.14));
  border-left-color: rgba(241, 222, 156, 0.2);
  box-shadow: inset 0 0 0 1px rgba(241, 222, 156, 0.04);
}

.trailer-rating-panel__meaning.is-level-7,
.trailer-rating-panel__meaning.is-level-8 {
  --trailer-rating-meaning-color: #8ce3c0;
  background: linear-gradient(135deg, rgba(16, 82, 60, 0.24), rgba(9, 48, 34, 0.14));
  border-left-color: rgba(105, 226, 177, 0.22);
  box-shadow: inset 0 0 0 1px rgba(105, 226, 177, 0.04);
}

.trailer-rating-panel__meaning.is-level-9,
.trailer-rating-panel__meaning.is-level-10,
.trailer-rating-panel__meaning.is-level-11 {
  --trailer-rating-meaning-color: #7fdfff;
  background: linear-gradient(135deg, rgba(10, 70, 92, 0.26), rgba(8, 34, 61, 0.16));
  border-left-color: rgba(127, 223, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(127, 223, 255, 0.05);
}

#trailerMarkWatchedButton {
  width: 100%;
  min-height: 52px;
}

#trailerDeleteButton {
  min-width: 124px;
  min-height: 52px;
}

.trailer-delete-button {
  border-color: rgba(255, 145, 145, 0.22);
  color: #ffd2d2;
}

.trailer-delete-button:hover,
.trailer-delete-button:focus-visible {
  border-color: rgba(255, 145, 145, 0.42);
  background: rgba(89, 18, 18, 0.42);
}

.trailer-info {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  height: var(--trailer-sidebar-max-height, auto);
  max-height: var(--trailer-sidebar-max-height, none);
  overflow: hidden;
}

.trailer-kinopoisk-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 22, 44, 0.92), rgba(20, 10, 38, 0.88));
  border: 1px solid rgba(255, 208, 0, 0.28);
  color: #f6f7fb;
  text-decoration: none;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(2, 6, 14, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trailer-kinopoisk-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.trailer-kinopoisk-button:hover,
.trailer-kinopoisk-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 208, 0, 0.5);
  background: linear-gradient(135deg, rgba(18, 34, 62, 0.96), rgba(32, 14, 48, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(2, 6, 14, 0.32);
}

.trailer-user-rate-modal {
  max-width: 560px;
}

.trailer-user-rate-modal__score {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.trailer-user-rate-modal__score > label {
  display: none;
}

.trailer-user-rate-modal .rate-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.trailer-user-rate-modal .rate-image {
  width: 3rem;
}

.trailer-user-rate-modal .rate-poster {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.trailer-user-rate-modal .rating-stars {
  margin-top: 0;
}

.trailer-user-rate-modal #trailerUserRatePoster {
  display: block;
  margin: 0 auto 10px auto;
  width: 60%;
  max-width: 250px;
}

.trailer-user-rate-modal #trailerUserRateTitle {
  order: -1;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 12px 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfe3ff;
  text-align: center;
  border-top: 1px solid rgba(116, 150, 210, 0.18);
  border-bottom: 1px solid rgba(116, 150, 210, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  text-wrap: balance;
}

.trailer-user-rate-modal .btn-rate {
  min-height: 52px;
}

.trailer-release-date-modal {
  max-width: 520px;
}

.trailer-release-date-modal #trailerReleaseDateTitle {
  margin: 0 0 16px;
  width: 100%;
  max-width: none;
  padding: 12px 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfe3ff;
  text-align: center;
  border-top: 1px solid rgba(116, 150, 210, 0.18);
  border-bottom: 1px solid rgba(116, 150, 210, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  text-wrap: balance;
}

.trailer-info__empty {
  color: rgba(212, 244, 255, 0.72);
  overflow-y: auto;
  min-height: 0;
}

.trailer-info__loading {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: 10px 6px 0;
  color: rgba(212, 244, 255, 0.8);
  text-align: center;
}

.trailer-info__loading p {
  margin: 0;
}

.trailer-info__content {
  display: grid;
  gap: 18px;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
}

.trailer-info__empty::-webkit-scrollbar,
.trailer-info__loading::-webkit-scrollbar,
.trailer-info__content::-webkit-scrollbar {
  width: 8px;
}

.trailer-info__empty::-webkit-scrollbar-thumb,
.trailer-info__loading::-webkit-scrollbar-thumb,
.trailer-info__content::-webkit-scrollbar-thumb {
  background: rgba(116, 222, 255, 0.3);
  border-radius: 999px;
}

.trailer-info__hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: start;
}

.trailer-info__poster-wrap {
  width: 112px;
  height: 164px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.trailer-info__poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trailer-info__headline {
  display: grid;
  gap: 8px;
}

.trailer-info__headline h3,
.trailer-info__block h4 {
  margin: 0;
}

.trailer-info__title--refreshable {
  cursor: pointer;
  color: #dff7ff;
}

.trailer-info__title--refreshable.is-loading {
  opacity: 0.72;
}

.trailer-info__meta,
.trailer-info__description {
  margin: 0;
  color: rgba(225, 246, 255, 0.8);
}

.trailer-info__description--release {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.trailer-actor-name {
  display: inline-block;
}

.trailer-actor-name--has-photo {
  cursor: pointer;
  color: #dff7ff;
  border-bottom: 1px dashed rgba(127, 223, 255, 0.45);
}

.actor-photo-tooltip {
  position: fixed;
  z-index: 4000;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  width: min(240px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(127, 223, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 18, 33, 0.98), rgba(15, 28, 51, 0.96));
  box-shadow: 0 20px 40px rgba(2, 6, 14, 0.42);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.actor-photo-tooltip__image {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.actor-photo-tooltip__text {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.actor-photo-tooltip__name {
  color: #f3fbff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.actor-photo-tooltip__role {
  color: rgba(212, 244, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.25;
}

.trailer-release-add-button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 222, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
  color: #c7f7ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.trailer-release-add-button:hover,
.trailer-release-add-button:focus-visible {
  outline: none;
  border-color: rgba(116, 222, 255, 0.48);
  background: rgba(0, 212, 255, 0.14);
  transform: translateY(-1px);
}

.trailer-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trailer-info__badges span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.12);
  color: #c7f7ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.trailer-info__block {
  display: grid;
  gap: 8px;
}

.trailer-kp-matches {
  display: grid;
  gap: 8px;
}

.trailer-kp-match {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.trailer-kp-match:hover,
.trailer-kp-match:focus-visible {
  outline: none;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.08);
}

@media (max-width: 1280px) {
  .trailer-app {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

  .trailer-info {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .trailer-sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .trailer-watched-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trailer-saved-stream-card {
  }

  .trailer-saved-stream-card__link {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .trailer-saved-stream-card__image {
    width: 84px;
    height: 58px;
  }
}

@media (max-width: 860px) {
  .trailer-app {
    grid-template-columns: 1fr;
  }

  .trailer-info__hero {
    grid-template-columns: 88px 1fr;
  }

  .trailer-info__poster-wrap {
    width: 88px;
    height: 132px;
  }

  .trailer-embed-wrap,
  .trailer-embed {
    min-height: 320px;
  }

  .trailer-player-panel__header {
    flex-direction: column;
  }

  .trailer-list-section__header,
  .trailer-list-section__actions {
    flex-wrap: wrap;
  }

  .trailer-rating-panel__value-row {
    display: block;
  }

  .trailer-rating-panel__value-box {
    grid-template-columns: 1fr;
  }

  .trailer-rating-panel__meaning {
    min-height: 72px;
    border-left: 0;
    border-top: 1px solid rgba(116, 222, 255, 0.16);
  }

  .trailer-rating-panel__controls {
    grid-template-columns: 1fr;
  }

  #trailerDeleteButton {
    width: 100%;
  }

  .trailer-watched-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .trailer-watched-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trailer-rating-stars {
    gap: 8px;
    padding: 12px;
  }

  .trailer-rating-stars .rating-star:not(.rating-label) {
    max-width: 28px;
    height: 28px;
  }

  #trailerRatingInput.rating-input {
    width: 112px;
    font-size: 1.3rem;
  }

  #trailerUserRateInput.rating-input {
    width: 112px;
    font-size: 1.3rem;
  }

  .trailer-watched-grid {
    grid-template-columns: 1fr;
  }
}
