.quick-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max(100%, 280px);
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px #0003;
}
.quick-result-list {
  max-height: min(300px, 55vh);
  overflow-y: auto;
}
.quick-results .quick-results-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
}
.quick-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 8px;
  border-radius: 6px;
}
.quick-results a:is(:hover, :focus-visible) { background: var(--bg); }
.quick-results img { width: 28px; height: 38px; object-fit: cover; border-radius: 4px; }
.quick-results p { margin: 8px; }
.quick-search + .top-actions {
  margin-left: 0;
}
@media (min-width: 1101px) {
  .topbar .search-icon { display: none; }
}
.catalog-home,
.watch-page {
  max-width: 1488px;
  padding-inline: clamp(16px, 3.2vw, 48px);
}
.home-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 31vw;
  object-fit: cover;
}
.schedule-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.schedule-title h2 { margin: 0; }
.schedule-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.schedule-day {
  display: grid;
  justify-items: center;
  padding: 10px 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.schedule-day[aria-current="date"] { border-color: var(--accent); }
.schedule-day[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.schedule-day[aria-pressed="true"] small { color: inherit; }
.schedule-posters .grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.schedule-episode,
.schedule-quality {
  position: absolute;
  left: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}
.schedule-episode {
  top: 8px;
  color: #301706;
  background: #ffb653;
}
.schedule-quality {
  bottom: 8px;
  color: #073335;
  background: #8af0e5;
}
@media (max-width: 820px) {
  .schedule-posters .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-banner { max-height: none; }
  .schedule-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schedule-day { font-size: 14px; }
  .schedule-day small { display: none; }
  .schedule-posters .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .topbar .brand { font-size: 18px; }
  .topbar .brand img { width: 27px; height: 27px; }
}
.rank-views {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.home-intro :is(h1, h2) {
  font-size: clamp(30px, 4.2vw, 55px);
  letter-spacing: -0.04em;
  margin: 4px 0 0;
}
.spotlight {
  position: relative;
  min-width: 0;
}
.featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 8px;
}
.spotlight-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #2d1d33;
  color: #fff8ee;
  scroll-snap-align: start;
}
.spotlight-item:focus-visible {
  outline-offset: -4px;
}
.spotlight-item img,
.spotlight-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.spotlight-placeholder {
  background: radial-gradient(ellipse at 36% 28%, #a4476a, #37243a 65%);
}
.spotlight-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 43%, #160e19bb 75%, #160e19 100%);
  pointer-events: none;
}
.spotlight-badge,
.spotlight-caption {
  position: absolute;
  z-index: 1;
}
.spotlight-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #ffca58;
  color: #2c1910;
  font-size: 14px;
  font-weight: 800;
}
.spotlight-caption {
  inset: auto 16px 16px;
}
.spotlight-caption span {
  color: #ffe39c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.spotlight-caption h2 {
  font-size: clamp(15px, 2.05vw, 26px);
  line-height: 1.16;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.featured-controls {
  display: none;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  align-items: center;
  pointer-events: none;
  padding: 0 10px;
}
.spotlight:has(.spotlight-item:nth-child(5)) .featured-controls {
  display: flex;
}
.featured-controls button {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  background: #201626dc;
  color: white;
  font-size: 27px;
  line-height: 1;
}
.catalog-shortcuts,
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-shortcuts {
  margin: 20px 0 6px;
}
.catalog-shortcuts a,
.genre-links a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 650;
}
.catalog-shortcuts a:hover,
.genre-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.catalog-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(236px, 290px);
  gap: 24px;
  align-items: start;
}
.catalog-main {
  min-width: 0;
}
.catalog-main .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.catalog-side {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.ranking-panel,
.genre-panel {
  padding: 16px;
}
.ranking-panel .section-head {
  margin-bottom: 9px;
}
.ranking-panel h2,
.genre-panel h2 {
  font-size: 19px;
}
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranking-list li + li {
  border-top: 1px solid var(--line);
}
.ranking-list a {
  display: grid;
  grid-template-columns: 23px 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 0;
}
.ranking-list a:hover b {
  color: var(--accent);
}
.ranking-list img,
.ranking-placeholder {
  width: 38px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.ranking-list b,
.ranking-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-list b {
  font-size: 15px;
  margin-bottom: 4px;
}
.ranking-list small {
  font-size: 13px;
}
.ranking-number,
.ranking-more {
  color: var(--accent);
}
