/* v15 minimal hotfix: no seasonal skins. Keep the original v11 home. */
@media (max-width: 900px) {
  input,
  textarea,
  select,
  .search-field input,
  .main-search input,
  .header-search input,
  .library-toolbar input {
    font-size: 16px !important;
  }
}

.personal-rating-chip.numeric {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #516eb9;
  background: #eef3ff;
  border: 1px solid #dbe5ff;
  font-weight: 750;
}

.rating-score-editor {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcff;
}
.rating-score-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
}
.rating-score-line strong {
  font-size: 30px;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating-score-line span {
  color: var(--muted);
  font-size: 13px;
}
.rating-score-editor input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--blue);
  touch-action: pan-x;
}

.v15-rating-dialog {
  width: min(560px, calc(100% - 24px));
  max-width: 560px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  overflow: visible;
  color: inherit;
}
.v15-rating-dialog::backdrop {
  background: rgba(23, 29, 47, .46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.v15-rating-card {
  position: relative;
  overflow: hidden;
  padding: 18px 22px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
  box-shadow: 0 22px 70px rgba(20, 28, 48, .28);
  text-align: center;
}
.v15-rating-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: #dce2ec;
}
.v15-step {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #526fb8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.v15-rating-card h2 {
  margin: 10px 0 5px;
  font-size: 25px;
  letter-spacing: .02em;
}
.v15-rating-card > p {
  margin: 0;
  color: #7a8497;
  font-size: 12px;
  line-height: 1.55;
}
.v15-rating-number {
  display: block;
  margin: 23px 0 7px;
  color: #506fbd;
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.v15-star-display {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
  color: #dde2eb;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 5px;
  white-space: nowrap;
}
.v15-star-display .v15-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #5876c4;
  white-space: nowrap;
}
.v15-scrub {
  position: relative;
  height: 44px;
  margin: 0 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  outline: none;
}
.v15-scrub-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecf3;
}
.v15-scrub-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #728dd0, #526fb8);
}
.v15-scrub-thumb {
  position: absolute;
  top: 8px;
  left: 0;
  width: 28px;
  height: 28px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #5b77c1;
  box-shadow: 0 2px 10px rgba(55, 75, 128, .3);
  transform: translateX(-50%);
  pointer-events: none;
}
.v15-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: #8a94a8;
  font-size: 10px;
}
.v15-rating-actions {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 9px;
  margin-top: 24px;
}
.v15-rating-actions button {
  min-height: 52px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
}
.v15-rating-back {
  border: 1px solid #dfe4ed;
  background: #fff;
  color: #5d6677;
}
.v15-rating-save {
  border: 0;
  background: #5876c4;
  color: #fff;
  box-shadow: 0 8px 20px rgba(88, 118, 196, .23);
}

@media (max-width: 600px) {
  .v15-rating-dialog {
    position: fixed;
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    margin: 0;
  }
  .v15-rating-card {
    padding: 16px 19px max(20px, env(safe-area-inset-bottom));
    border-radius: 26px;
  }
  .v15-rating-number { font-size: 54px; }
  .v15-star-display { font-size: 31px; letter-spacing: 4px; }
}
