:root {
    --aero-bg: #f5f8fc;
    --aero-panel: #ffffff;
    --aero-text: #1f2a44;
    --aero-muted: #738099;
    --aero-blue: #2d72ff;
    --aero-blue-2: #5b8fff;
    --aero-cyan: #42d8d2;
    --aero-line: #e3eaf4;
    --aero-soft: #eef4ff;
    --aero-shadow: 0 18px 45px rgba(34, 65, 120, .08);
    --aero-radius: 18px;
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.aero-body { margin: 0; min-height: 100vh; background: var(--aero-bg); color: var(--aero-text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.aero-shell,
.aero-wrap { width: min(1480px, 94%); margin: 0 auto; }

/* Header */
.aero-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--aero-line); backdrop-filter: blur(14px); }
.aero-header-row { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.aero-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.aero-brand-mark { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--aero-blue), var(--aero-cyan)); box-shadow: 0 8px 22px rgba(45,114,255,.22); }
.aero-nav { min-width: 0; display: flex; align-items: center; gap: 3px; color: #66748c; font-size: 14px; }
.aero-nav a { position: relative; padding: 25px 9px 23px; white-space: nowrap; }
.aero-nav a:hover, .aero-nav a.is-active { color: var(--aero-blue); }
.aero-nav a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 13px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--aero-blue), var(--aero-cyan)); }
.aero-header-search { margin-left: auto; min-width: 260px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--aero-line); border-radius: 999px; background: #f9fbfe; }
.aero-header-search input { width: 100%; min-width: 0; height: 40px; padding: 0 4px 0 15px; border: 0; outline: 0; background: transparent; color: var(--aero-text); }
.aero-header-search button { flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.aero-header-search button::before { content: ""; position: absolute; width: 12px; height: 12px; left: 12px; top: 11px; border: 2px solid var(--aero-blue); border-radius: 50%; }
.aero-header-search button::after { content: ""; position: absolute; width: 7px; height: 2px; left: 24px; top: 25px; background: var(--aero-blue); transform: rotate(45deg); border-radius: 2px; }
.aero-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--aero-line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.aero-nav-toggle span { width: 17px; height: 2px; background: var(--aero-text); border-radius: 2px; }

.aero-main { padding: 26px 0 46px; }

/* Home hero carousel */
.aero-home { display: grid; gap: 22px; }
.aero-feature-carousel { position: relative; min-height: 450px; overflow: hidden; border-radius: 26px; background: #17223a; box-shadow: 0 24px 60px rgba(26,45,84,.16); }
.aero-feature-track { position: relative; min-height: 450px; }
.aero-feature-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.aero-feature-slide.is-active { opacity: 1; visibility: visible; }
.aero-feature-bg { position: absolute; inset: 0; background-size: cover; background-position: center 28%; transform: scale(1.01); }
.aero-feature-copy { position: relative; z-index: 2; width: min(650px, 70%); min-height: 450px; display: flex; flex-direction: column; justify-content: center; padding: 54px 62px 58px; color: #fff; }
.aero-feature-kicker { margin-bottom: 13px; color: #a9c8ff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.aero-feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aero-feature-tags span { padding: 5px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.09); font-size: 12px; color: #eef5ff; backdrop-filter: blur(6px); }
.aero-feature-copy h1 { margin: 16px 0 10px; max-width: 620px; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.035em; }
.aero-feature-copy p { max-width: 590px; margin: 0; color: rgba(239,246,255,.84); font-size: 15px; line-height: 1.8; }
.aero-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.aero-feature-btn { min-width: 108px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.10); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.aero-feature-btn.is-primary { border-color: transparent; background: linear-gradient(135deg, var(--aero-blue), #4f8cff); box-shadow: 0 12px 28px rgba(45,114,255,.34); }
.aero-feature-arrow { position: absolute; z-index: 4; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(8,18,36,.42); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.aero-feature-arrow.is-prev { left: 18px; }
.aero-feature-arrow.is-next { right: 18px; }
.aero-feature-dots { position: absolute; z-index: 4; right: 28px; bottom: 24px; display: flex; gap: 8px; }
.aero-feature-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.46); cursor: pointer; transition: width .2s ease, background .2s ease; }
.aero-feature-dot.is-active { width: 24px; background: #fff; }

/* Shared sections + cards */
.aero-section,
.aero-block,
.aero-detail-card,
.aero-detail-side-card { background: var(--aero-panel); border: 1px solid var(--aero-line); border-radius: var(--aero-radius); box-shadow: var(--aero-shadow); }
.aero-section { padding: 20px; }
.aero-section-head { min-height: 42px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.aero-section-head > div { min-width: 0; }
.aero-section-head span { display: block; margin-bottom: 5px; color: var(--aero-blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.aero-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.aero-section-head p { margin: 0; color: var(--aero-muted); font-size: 12px; }
.aero-section-head > a { flex: 0 0 auto; color: var(--aero-blue); font-size: 13px; font-weight: 700; }

.aero-poster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; }
.aero-poster-card { min-width: 0; display: block; }
.aero-poster-pic { position: relative; overflow: hidden; border-radius: 14px; background: #eaf0f7; }
.aero-poster-pic img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; transition: transform .25s ease; }
.aero-poster-card:hover .aero-poster-pic img { transform: scale(1.025); }
.aero-poster-pic > span { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 4px 8px; border-radius: 999px; background: rgba(21,34,58,.78); color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(5px); }
.aero-poster-card b { display: block; margin-top: 9px; overflow: hidden; color: #2b3852; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.aero-poster-card small { display: block; margin-top: 4px; overflow: hidden; color: #8c97aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.aero-ranking-section { padding-bottom: 15px; }
.aero-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 34px; }
.aero-rank-item { min-width: 0; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px dashed #e7edf5; }
.aero-rank-item:nth-child(-n+2) { border-top: 0; }
.aero-rank-item em { color: #aab4c4; font-size: 16px; font-style: normal; font-weight: 900; }
.aero-rank-item em.is-top { color: var(--aero-blue); }
.aero-rank-item b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.aero-rank-item span { max-width: 120px; overflow: hidden; color: #9aa5b7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* List */
.aero-list-page { display: grid; gap: 16px; }
.aero-list-filter-panel { padding: 15px 17px; }
.aero-filter { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px 10px; align-items: start; }
.aero-filter + .aero-filter { margin-top: 10px; }
.aero-filter > b { padding-top: 6px; font-size: 13px; }
.aero-filter-options { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.aero-filter-options a { padding: 5px 10px; border: 1px solid #e4eaf3; border-radius: 999px; background: #f7f9fc; color: #67748a; font-size: 12px; line-height: 1.2; transition: .15s ease; }
.aero-filter-options a:hover { border-color: #bcd0ff; background: #f2f6ff; color: var(--aero-blue); }
.aero-filter-options a.is-active { border-color: var(--aero-blue); background: var(--aero-blue); color: #fff; box-shadow: 0 4px 10px rgba(45,114,255,.16); }

.aero-list-results { padding: 16px 17px 19px; }
.aero-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #edf1f6; }
.aero-list-toolbar-title { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.aero-list-toolbar-title span { color: var(--aero-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.aero-list-toolbar-title strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.aero-list-toolbar > em { flex: 0 0 auto; color: #9aa5b5; font-size: 12px; font-style: normal; }
.aero-grid.aero-list-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; }
.aero-card { min-width: 0; display: block; }
.aero-card img { width: 100%; aspect-ratio: 3 / 4.18; object-fit: cover; border-radius: 12px; background: #eaf0f7; transition: transform .2s ease, box-shadow .2s ease; }
.aero-card:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,55,99,.14); }
.aero-card b { display: block; margin-top: 8px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.aero-card span { display: block; margin-top: 4px; overflow: hidden; color: #929cae; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.aero-empty { padding: 38px 16px; color: var(--aero-muted); text-align: center; }
.aero-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 24px 0 2px; padding-top: 16px; border-top: 1px solid #edf1f6; }
.aero-pager a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid #e0e7f0; border-radius: 9px; background: #fff; color: #66738a; font-size: 12px; }
.aero-pager a:hover { border-color: #b9cdff; color: var(--aero-blue); }
.aero-pager a.active { border-color: var(--aero-blue); background: var(--aero-blue); color: #fff; box-shadow: 0 5px 12px rgba(45,114,255,.18); }
.aero-pager span { color: #aab3c0; }

/* Detail */
.aero-detail-page { display: grid; gap: 16px; }
.aero-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; color: #8b96a9; font-size: 12px; }
.aero-breadcrumb a:hover { color: var(--aero-blue); }
.aero-breadcrumb strong { min-width: 0; overflow: hidden; color: #526078; text-overflow: ellipsis; white-space: nowrap; }
.aero-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.aero-detail-main { min-width: 0; display: grid; gap: 16px; }
.aero-detail-card { padding: 20px; }
.aero-detail-top { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 22px; }
.aero-detail-poster { position: relative; overflow: hidden; align-self: start; border-radius: 16px; background: #eaf0f7; }
.aero-detail-poster img { width: 100%; aspect-ratio: 3 / 4.18; object-fit: cover; }
.aero-detail-poster > span { position: absolute; left: 9px; top: 9px; padding: 5px 9px; border-radius: 999px; background: rgba(21,34,58,.78); color: #fff; font-size: 11px; }
.aero-detail-info { min-width: 0; position: relative; }
.aero-detail-type { color: var(--aero-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.aero-detail-info h1 { margin: 8px 0 12px; font-size: clamp(26px,3vw,38px); line-height: 1.18; letter-spacing: -.03em; }
.aero-detail-score { display: inline-flex; align-items: baseline; gap: 5px; margin-bottom: 14px; }
.aero-detail-score strong { color: var(--aero-blue); font-size: 26px; }
.aero-detail-score span { color: #8e99ac; font-size: 11px; }
.aero-detail-meta { margin: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 9px 10px; font-size: 13px; }
.aero-detail-meta dt { color: #97a1b2; }
.aero-detail-meta dd { min-width: 0; margin: 0; color: #526078; line-height: 1.55; }
.aero-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.aero-detail-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #dfe6ef; border-radius: 999px; background: #fff; color: #637087; font-size: 12px; font-weight: 700; }
.aero-detail-btn.is-primary { border-color: var(--aero-blue); background: linear-gradient(135deg,var(--aero-blue),var(--aero-blue-2)); color: #fff; box-shadow: 0 8px 18px rgba(45,114,255,.2); }
.aero-detail-section-head { margin-bottom: 13px; }
.aero-detail-section-head > span { display: block; margin-bottom: 5px; color: var(--aero-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.aero-detail-section-head h2 { margin: 0; font-size: 18px; }
.aero-detail-plot p { margin: 0; color: #637087; font-size: 14px; line-height: 1.95; }
.aero-detail-side { position: sticky; top: 90px; }
.aero-detail-side-card { padding: 17px; }
.aero-detail-rank { margin: 0; padding: 0; list-style: none; }
.aero-detail-rank li { border-top: 1px dashed #e6ecf4; }
.aero-detail-rank li:first-child { border-top: 0; }
.aero-detail-rank a { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 8px; padding: 11px 0; }
.aero-detail-rank em { color: #aab3c0; font-style: normal; font-size: 15px; font-weight: 900; }
.aero-detail-rank em.is-top { color: var(--aero-blue); }
.aero-detail-rank a > div { min-width: 0; }
.aero-detail-rank b, .aero-detail-rank span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aero-detail-rank b { font-size: 12px; }
.aero-detail-rank span { margin-top: 3px; color: #9ca6b6; font-size: 10px; }
.aero-detail-rank .is-empty { padding: 22px 0; color: #98a2b2; text-align: center; font-size: 12px; }
.aero-related-section { margin-top: 2px; }

/* Embedded player - keep aero original player functionality */
.aero-player { display: flex; flex-direction: column; gap: 14px; }
.player-frame { overflow: hidden; border: 1px solid #dce5f0; border-radius: 16px; background: #000; }
.player-controls { display: flex; flex-direction: column; gap: 13px; }
.control-block { display: flex; flex-direction: column; gap: 7px; }
.control-label { margin: 0; color: #8b96a8; font-size: 11px; font-weight: 700; }
.pill-group { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { min-height: 32px; padding: 0 12px; border: 1px solid #dfe6ef; border-radius: 999px; background: #f8fafe; color: #657188; cursor: pointer; font-size: 12px; }
.pill.active, .pill:hover { border-color: #b8cdff; background: #eef4ff; color: var(--aero-blue); }

/* Footer */
.aero-footer { padding: 28px 0 34px; border-top: 1px solid var(--aero-line); background: #fff; }
.aero-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.aero-footer-title { margin: 0; font-weight: 800; }
.aero-footer-subtitle, .aero-footer-meta p { margin: 5px 0 0; color: #929caf; font-size: 12px; }
.aero-footer-meta { text-align: right; }

@media (max-width: 1180px) {
    .aero-nav { display: none; order: 4; width: 100%; padding: 0 0 14px; flex-wrap: wrap; }
    .aero-nav[data-open="true"] { display: flex; }
    .aero-nav a { padding: 8px 9px; }
    .aero-nav a.is-active::after { bottom: 2px; }
    .aero-nav-toggle { display: inline-flex; margin-left: auto; }
    .aero-header-search { margin-left: 0; min-width: 220px; }
    .aero-header-row { flex-wrap: wrap; padding: 10px 0; }
    .aero-poster-grid, .aero-grid.aero-list-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .aero-detail-layout { grid-template-columns: minmax(0,1fr) 270px; }
}

@media (max-width: 900px) {
    .aero-feature-carousel, .aero-feature-track, .aero-feature-copy { min-height: 390px; }
    .aero-feature-copy { width: min(720px, 86%); padding: 44px 44px 52px; }
    .aero-section-head p { display: none; }
    .aero-poster-grid, .aero-grid.aero-list-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .aero-detail-layout { grid-template-columns: 1fr; }
    .aero-detail-side { position: static; }
    .aero-rank-grid { grid-template-columns: 1fr; }
    .aero-rank-item:nth-child(2) { border-top: 1px dashed #e7edf5; }
}

@media (max-width: 640px) {
    .aero-shell, .aero-wrap { width: min(94%, 100%); }
    .aero-main { padding-top: 16px; }
    .aero-header-search { order: 5; width: 100%; min-width: 0; }
    .aero-feature-carousel, .aero-feature-track, .aero-feature-copy { min-height: 360px; }
    .aero-feature-copy { width: 100%; padding: 38px 24px 54px; justify-content: flex-end; }
    .aero-feature-copy h1 { font-size: 31px; }
    .aero-feature-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .aero-feature-arrow { display: none; }
    .aero-feature-dots { right: 20px; bottom: 18px; }
    .aero-section, .aero-block, .aero-detail-card { padding: 14px; border-radius: 14px; }
    .aero-poster-grid, .aero-grid.aero-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }
    .aero-filter { grid-template-columns: 1fr; gap: 7px; }
    .aero-filter > b { padding-top: 0; }
    .aero-list-toolbar-title strong { font-size: 16px; }
    .aero-pager { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .aero-detail-top { grid-template-columns: 1fr; }
    .aero-detail-poster { width: min(220px, 68vw); }
    .aero-detail-info h1 { font-size: 27px; }
    .aero-footer-meta { text-align: left; }
}
