:root {
    --nova-bg: #090812;
    --nova-bg-2: #11101c;
    --nova-panel: rgba(22, 20, 34, .88);
    --nova-panel-strong: #171527;
    --nova-card: #161426;
    --nova-card-2: #201d32;
    --nova-line: rgba(255, 255, 255, .12);
    --nova-line-soft: rgba(255, 255, 255, .07);
    --nova-text: #f8f7ff;
    --nova-muted: #c9c4dc;
    --nova-dim: #8c86a4;
    --nova-primary: #8b5cf6;
    --nova-primary-2: #c084fc;
    --nova-accent: #14f1d9;
    --nova-warm: #f8c35b;
    --nova-radius: 8px;
    --nova-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--nova-bg);
}

body.nova-body {
    min-height: 100vh;
    color: var(--nova-text);
    background:
        radial-gradient(circle at 8% -10%, rgba(139, 92, 246, .22), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(20, 241, 217, .12), transparent 28rem),
        linear-gradient(180deg, #090812 0%, #11101c 48%, #090812 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.is-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.nova-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nova-container {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
}

.nova-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nova-line-soft);
    background: rgba(9, 8, 18, .78);
    backdrop-filter: blur(22px);
}

.nova-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nova-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nova-text);
    font-weight: 900;
    font-size: 21px;
}

.nova-brand__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--nova-radius);
    color: #080711;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
    box-shadow: 0 14px 34px rgba(139, 92, 246, .28);
}

.nova-brand__name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nova-nav > a,
.nova-nav__trigger {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: transparent;
    white-space: nowrap;
    font-size: 14px;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nova-nav > a:hover,
.nova-nav > a.is-active,
.nova-nav__trigger:hover,
.nova-nav__trigger.is-active {
    color: var(--nova-text);
    border-color: var(--nova-line);
    background: rgba(255, 255, 255, .07);
}

.nova-nav__group {
    position: relative;
}

.nova-nav__trigger {
    position: relative;
    min-width: 78px;
    justify-content: center;
    padding: 0 12px 0 14px;
    color: #d8d2ee;
    border-color: rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    cursor: default;
}

.nova-nav__trigger::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    background: linear-gradient(90deg, var(--nova-accent), var(--nova-primary-2));
    transition: opacity .18s ease, transform .18s ease;
    transform: scaleX(.55);
}

.nova-nav__trigger span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 0;
    border-radius: 50%;
    background: rgba(20, 241, 217, .1);
    transition: background .18s ease, transform .18s ease;
}

.nova-nav__trigger span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -2px;
    border-right: 2px solid var(--nova-accent);
    border-bottom: 2px solid var(--nova-accent);
    transform: rotate(45deg);
    transition: border-color .18s ease;
}

.nova-nav__group:hover .nova-nav__trigger,
.nova-nav__trigger.is-active {
    color: #ffffff;
    border-color: rgba(20, 241, 217, .38);
    background: linear-gradient(135deg, rgba(20, 241, 217, .14), rgba(139, 92, 246, .18));
    box-shadow: 0 10px 24px rgba(20, 241, 217, .08), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.nova-nav__group:hover .nova-nav__trigger::before,
.nova-nav__trigger.is-active::before {
    opacity: 1;
    transform: scaleX(1);
}

.nova-nav__group:hover .nova-nav__trigger span {
    background: rgba(20, 241, 217, .18);
    transform: rotate(180deg);
}

.nova-nav__group::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.nova-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 176px;
    display: block;
    padding: 8px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-panel-strong);
    box-shadow: var(--nova-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transform-origin: top left;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nova-nav__group:hover .nova-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nova-nav__menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--nova-muted);
    white-space: nowrap;
    font-size: 14px;
}

.nova-nav__menu a:hover,
.nova-nav__menu a.is-active {
    color: var(--nova-text);
    background: rgba(139, 92, 246, .18);
}

.nova-search {
    flex: 0 0 310px;
    height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, .07);
}

.nova-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 13px;
    color: var(--nova-text);
    background: transparent;
}

.nova-search input::placeholder {
    color: var(--nova-dim);
}

.nova-search button {
    border: 0;
    color: #080711;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
    font-weight: 800;
    cursor: pointer;
}

.nova-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: rgba(255, 255, 255, .07);
}

.nova-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--nova-text);
}

.nova-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    border: 0;
    background: rgba(0, 0, 0, .65);
}

.nova-overlay.is-active {
    display: block;
}

.nova-drawer {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    z-index: 1002;
    width: min(380px, 88vw);
    transform: translateX(104%);
    transition: transform .22s ease;
    border-left: 1px solid var(--nova-line);
    background: var(--nova-panel-strong);
    box-shadow: var(--nova-shadow);
}

.nova-drawer.is-open {
    transform: translateX(0);
}

.nova-drawer__inner {
    height: 100%;
    overflow: auto;
    padding: 18px;
}

.nova-drawer__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
    margin-bottom: 12px;
}

.nova-drawer__search input,
.nova-drawer__search button {
    min-height: 40px;
    border-radius: var(--nova-radius);
    border: 1px solid var(--nova-line);
}

.nova-drawer__search input {
    padding: 0 10px;
    color: var(--nova-text);
    background: rgba(255, 255, 255, .07);
    outline: 0;
}

.nova-drawer__search button {
    color: #080711;
    border: 0;
    background: var(--nova-accent);
    font-weight: 800;
}

.nova-drawer a,
.nova-drawer summary {
    display: block;
    padding: 11px 10px;
    border-radius: 7px;
    color: var(--nova-muted);
}

.nova-drawer a:hover,
.nova-drawer summary:hover {
    color: var(--nova-text);
    background: rgba(255, 255, 255, .07);
}

.nova-main {
    flex: 1 0 auto;
}

.nova-kicker {
    color: var(--nova-accent);
    font-size: 13px;
    font-weight: 900;
}

.nova-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-text);
    background: rgba(255, 255, 255, .08);
    font-weight: 900;
    cursor: pointer;
}

.nova-btn--primary {
    color: #080711;
    border-color: transparent;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
}

.nova-btn--light:hover,
.nova-more:hover {
    border-color: rgba(20, 241, 217, .45);
}

.nova-hero {
    position: relative;
    min-height: clamp(520px, 55vw, 720px);
    overflow: hidden;
    background: #04040a;
}

.nova-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}

.nova-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.nova-hero__image {
    position: absolute;
    inset: 0;
}

.nova-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.nova-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 8, 18, .96), rgba(9, 8, 18, .72) 42%, rgba(9, 8, 18, .18)),
        linear-gradient(180deg, rgba(9, 8, 18, .08), #090812 92%);
}

.nova-hero__content {
    position: relative;
    z-index: 2;
    min-height: clamp(520px, 55vw, 720px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 86px 0 122px;
}

.nova-hero__content h1 {
    max-width: 760px;
    margin-top: 10px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.04;
}

.nova-hero__desc {
    max-width: 680px;
    margin-top: 16px;
    color: var(--nova-muted);
    font-size: 17px;
    line-height: 1.8;
}

.nova-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.nova-meta span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--nova-line);
    border-radius: 999px;
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
}

.nova-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.nova-hero-tabs {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.nova-hero-tab {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: rgba(22, 20, 34, .72);
    backdrop-filter: blur(16px);
}

.nova-hero-tab.is-active,
.nova-hero-tab:hover {
    color: var(--nova-text);
    border-color: rgba(20, 241, 217, .5);
    background: rgba(255, 255, 255, .1);
}

.nova-hero-tab span {
    display: block;
    color: var(--nova-accent);
    font-weight: 900;
}

.nova-hero-tab strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.nova-empty-hero {
    margin-top: 28px;
    padding: 44px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-panel);
}

.nova-empty-hero h1 {
    margin-top: 8px;
    font-size: 38px;
}

.nova-section {
    margin-top: 48px;
}

.nova-section__head,
.nova-panel__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.nova-section__head h2,
.nova-panel__head h2 {
    margin-top: 3px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.nova-more,
.nova-panel__head button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .06);
}

.nova-panel__head button {
    cursor: pointer;
}

.nova-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.nova-card {
    min-width: 0;
}

.nova-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--nova-line-soft);
    border-radius: var(--nova-radius);
    background: var(--nova-card);
}

.nova-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.nova-card:hover .nova-card__poster img {
    transform: scale(1.045);
}

.nova-card__poster span,
.nova-media__poster span {
    position: absolute;
    top: 9px;
    right: 9px;
    max-width: calc(100% - 18px);
    padding: 3px 7px;
    border-radius: 5px;
    color: #080711;
    background: var(--nova-warm);
    font-size: 12px;
    font-weight: 900;
}

.nova-card__body {
    padding: 10px 2px 0;
}

.nova-card__body h3 {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-card__body p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.nova-card__body p span {
    padding: 2px 7px;
    border: 1px solid var(--nova-line-soft);
    border-radius: 999px;
    color: var(--nova-dim);
    font-size: 12px;
}

.nova-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.nova-category-grid a {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-text);
    background: rgba(255, 255, 255, .06);
    font-weight: 900;
}

.nova-rank {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nova-rank a {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--nova-line-soft);
    border-radius: var(--nova-radius);
    background: rgba(255, 255, 255, .05);
}

.nova-rank a:hover {
    border-color: rgba(20, 241, 217, .45);
}

.nova-rank span {
    color: var(--nova-accent);
    font-size: 22px;
    font-weight: 900;
}

.nova-rank strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-rank em {
    color: var(--nova-dim);
    font-size: 13px;
    font-style: normal;
}

.nova-library {
    padding: 30px 0 58px;
}

.nova-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--nova-dim);
    font-size: 14px;
}

.nova-breadcrumb a:hover {
    color: var(--nova-accent);
}

.nova-page-head {
    padding: 28px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(20, 241, 217, .07)), var(--nova-panel);
    box-shadow: var(--nova-shadow);
}

.nova-page-head h1 {
    margin-top: 5px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.nova-page-head p:last-child {
    margin-top: 8px;
    color: var(--nova-muted);
}

.nova-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.nova-filter a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--nova-line);
    border-radius: 999px;
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .05);
    font-size: 14px;
}

.nova-filter a:hover,
.nova-filter a.is-active {
    color: #080711;
    border-color: transparent;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
}

.nova-filter-cta {
    margin-top: 12px;
    margin-bottom: 0;
}

.nova-filter-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nova-accent);
    text-decoration: none;
}

.nova-filter-cta__link:hover {
    color: var(--nova-primary-2);
    text-decoration: underline;
}

.nova-index-filter {
    margin: 18px 0 22px;
    padding: 18px 20px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-panel);
    box-shadow: var(--nova-shadow);
}

.nova-index-filter__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.nova-index-filter__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--nova-text);
}

.nova-index-filter__badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #080711;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
}

.nova-index-filter__hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--nova-dim);
}

.nova-index-filter__row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
}

.nova-index-filter__row + .nova-index-filter__row {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--nova-line-soft);
}

.nova-index-filter__label {
    padding-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nova-dim);
    white-space: nowrap;
}

.nova-index-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nova-index-filter__chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--nova-line);
    border-radius: 999px;
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .05);
    font-size: 13px;
    text-decoration: none;
}

.nova-index-filter__chip:hover {
    color: var(--nova-text);
    border-color: var(--nova-accent);
}

.nova-index-filter__chip.is-active {
    color: #080711;
    border-color: transparent;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
}

.nova-index-filter__footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--nova-line-soft);
}

.nova-index-filter__back {
    font-size: 14px;
    font-weight: 600;
    color: var(--nova-accent);
    text-decoration: none;
}

.nova-index-filter__back:hover {
    color: var(--nova-primary-2);
    text-decoration: underline;
}

.nova-media-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nova-media {
    min-width: 0;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--nova-line-soft);
    border-radius: var(--nova-radius);
    background: rgba(255, 255, 255, .05);
}

.nova-media__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: var(--nova-card);
}

.nova-media__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nova-media__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nova-media__content h2 {
    font-size: 21px;
    line-height: 1.35;
}

.nova-media__content p {
    margin-top: 10px;
    color: var(--nova-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-text-link {
    margin-top: 10px;
    color: var(--nova-accent);
    font-weight: 800;
}

.nova-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.nova-pagination a,
.nova-pagination span {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .06);
}

.nova-pagination span,
.nova-pagination a:hover {
    color: #080711;
    background: var(--nova-accent);
    border-color: transparent;
}

.nova-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: var(--nova-panel);
}

.nova-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 44px;
}

.nova-detail-bg {
    position: absolute;
    inset: 0;
}

.nova-detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.08);
}

.nova-detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 8, 18, .62), #090812 94%);
}

.nova-detail-hero__inner {
    position: relative;
    z-index: 1;
}

.nova-detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: end;
}

.nova-detail-poster {
    overflow: hidden;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-card);
    box-shadow: var(--nova-shadow);
}

.nova-detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.nova-detail-info h1 {
    margin-top: 5px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
}

.nova-detail-desc {
    max-width: 780px;
    margin-top: 14px;
    color: var(--nova-muted);
    font-size: 16px;
    line-height: 1.8;
}

.nova-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.nova-detail-stats span {
    min-width: 106px;
    padding: 10px 12px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .07);
}

.nova-detail-stats strong {
    display: block;
    color: var(--nova-text);
    font-size: 22px;
    line-height: 1.1;
}

.nova-detail-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    max-width: 820px;
    margin-top: 18px;
}

.nova-detail-fields div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
}

.nova-detail-fields dt {
    color: var(--nova-dim);
}

.nova-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.nova-detail-body,
.nova-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
    padding: 28px 0 58px;
}

.nova-detail-main,
.nova-watch-main {
    min-width: 0;
}

.nova-panel,
.nova-related {
    padding: 18px;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-panel);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
}

.nova-panel + .nova-panel,
.nova-adjacent {
    margin-top: 18px;
}

.nova-source + .nova-source {
    margin-top: 18px;
}

.nova-source h3 {
    margin-bottom: 10px;
    color: var(--nova-muted);
    font-size: 16px;
}

.nova-episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 9px;
}

.nova-episode {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    overflow: hidden;
    border: 1px solid var(--nova-line);
    border-radius: 7px;
    color: var(--nova-muted);
    background: rgba(255, 255, 255, .05);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.nova-episode:hover,
.nova-episode.is-active {
    color: #080711;
    border-color: transparent;
    background: linear-gradient(135deg, var(--nova-accent), var(--nova-primary-2));
}

.nova-story__content {
    color: var(--nova-muted);
    line-height: 1.9;
}

.nova-story-title {
    margin: 18px 0 8px;
    color: var(--nova-text);
    font-size: 17px;
    font-weight: 900;
}

.nova-story-title:first-child {
    margin-top: 0;
}

.nova-story-text {
    margin: 0 0 12px;
    color: var(--nova-muted);
}

.nova-adjacent,
.nova-nextprev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: var(--nova-panel);
}

.nova-adjacent a,
.nova-adjacent > span,
.nova-nextprev a,
.nova-nextprev > span {
    min-width: 0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 15px;
    color: var(--nova-muted);
}

.nova-adjacent a + a,
.nova-adjacent a + span,
.nova-adjacent span + a,
.nova-adjacent span + span,
.nova-nextprev a + a,
.nova-nextprev a + span,
.nova-nextprev span + a,
.nova-nextprev span + span {
    border-left: 1px solid var(--nova-line-soft);
}

.nova-adjacent a:hover,
.nova-nextprev a:hover {
    color: var(--nova-text);
    background: rgba(255, 255, 255, .06);
}

.nova-adjacent strong,
.nova-nextprev strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-adjacent span span,
.nova-nextprev span span,
.nova-adjacent a span,
.nova-nextprev a span {
    color: var(--nova-dim);
    font-size: 13px;
}

.nova-related {
    position: sticky;
    top: 96px;
}

.nova-related h2 {
    margin-bottom: 13px;
    font-size: 20px;
}

.nova-related a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 9px;
    border-radius: var(--nova-radius);
}

.nova-related a:hover {
    background: rgba(255, 255, 255, .07);
}

.nova-related img {
    width: 74px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 7px;
    background: var(--nova-card);
}

.nova-related strong {
    display: -webkit-box;
    color: var(--nova-text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-related em {
    display: block;
    margin-top: 5px;
    color: var(--nova-dim);
    font-size: 12px;
    font-style: normal;
}

.nova-watch {
    padding-top: 26px;
}

.nova-watch-layout {
    padding-top: 18px;
}

.nova-watch-head h1 {
    margin-top: 4px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.nova-watch-head small {
    display: block;
    margin-top: 6px;
    color: var(--nova-accent);
    font-size: .48em;
}

.nova-player {
    overflow: hidden;
    border: 1px solid var(--nova-line);
    border-radius: var(--nova-radius);
    background: #000;
    box-shadow: var(--nova-shadow);
}

.nova-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    background: #000;
}

.nova-nextprev {
    margin-top: 14px;
}

.nova-episodes--watch {
    margin-top: 18px;
}

.nova-search-cloud {
    padding: 24px 0;
    border-top: 1px solid var(--nova-line-soft);
    background: #0c0b16;
}

.nova-search-cloud h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.nova-search-cloud__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nova-search-cloud__list a {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 10px;
    border: 1px solid var(--nova-line-soft);
    border-radius: 999px;
    color: var(--nova-dim);
    font-size: 12px;
}

.nova-search-cloud__list a:hover {
    color: var(--nova-accent);
    border-color: rgba(20, 241, 217, .4);
}

.nova-footer {
    margin-top: auto;
    padding: 22px 0;
    border-top: 1px solid var(--nova-line-soft);
    color: var(--nova-dim);
    background: #080711;
}

.nova-footer__inner {
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .nova-search {
        flex-basis: 250px;
    }

    .nova-card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .nova-nav,
    .nova-search {
        display: none;
    }

    .nova-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nova-hero-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .nova-rank,
    .nova-media-list,
    .nova-detail-body,
    .nova-watch-layout {
        grid-template-columns: 1fr;
    }

    .nova-related {
        position: static;
    }
}

@media (max-width: 760px) {
    .nova-container {
        width: min(100% - 28px, 1500px);
    }

    .nova-header__inner {
        min-height: 66px;
    }

    .nova-hero,
    .nova-hero__content {
        min-height: 590px;
    }

    .nova-hero__content {
        padding: 70px 0 150px;
    }

    .nova-hero__content h1 {
        font-size: 38px;
    }

    .nova-hero__desc {
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .nova-hero-tabs {
        grid-template-columns: 1fr;
        max-height: 138px;
        overflow: auto;
    }

    .nova-section__head,
    .nova-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nova-card-grid,
    .nova-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .nova-media {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
    }

    .nova-media__content h2 {
        font-size: 18px;
    }

    .nova-media__content p {
        display: none;
    }

    .nova-detail-layout {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: start;
    }

    .nova-detail-info h1 {
        font-size: 30px;
    }

    .nova-detail-fields {
        grid-template-columns: 1fr;
    }

    .nova-adjacent,
    .nova-nextprev {
        grid-template-columns: 1fr;
    }

    .nova-adjacent a + a,
    .nova-adjacent a + span,
    .nova-adjacent span + a,
    .nova-adjacent span + span,
    .nova-nextprev a + a,
    .nova-nextprev a + span,
    .nova-nextprev span + a,
    .nova-nextprev span + span {
        border-left: 0;
        border-top: 1px solid var(--nova-line-soft);
    }
}

@media (max-width: 520px) {
    .nova-brand__name {
        max-width: 136px;
    }

    .nova-card-grid,
    .nova-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nova-card__body h3 {
        font-size: 14px;
    }

    .nova-media {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .nova-detail-layout {
        grid-template-columns: 1fr;
    }

    .nova-detail-poster {
        width: 180px;
    }

    .nova-panel,
    .nova-related,
    .nova-page-head {
        padding: 14px;
    }

    .nova-episode-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
