:root {
    --color-blue: #2563eb;
    --color-cyan: #0891b2;
    --color-teal: #0f766e;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-slate-800);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 52%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.22);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo-text {
    font-size: 24px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.header-search input,
.mobile-panel input,
.wide-search input,
.filter-bar input,
.search-page-form input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: var(--color-slate-800);
    background: #ffffff;
}

.header-search input {
    height: 34px;
    padding: 0 14px;
}

.header-search button,
.wide-search button,
.search-page-form button,
.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    cursor: pointer;
    font-weight: 700;
}

.live-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--color-slate-800);
    box-shadow: var(--shadow-soft);
    max-height: 420px;
    overflow: auto;
}

.live-search-panel.is-open {
    display: block;
}

.live-search-panel a,
.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.live-search-panel a:hover,
.search-result-item:hover {
    background: #f1f5f9;
}

.live-search-panel img,
.search-result-item img {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}

.live-search-panel strong,
.search-result-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-slate-800);
}

.live-search-panel span,
.search-result-item span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--color-slate-600);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    height: 42px;
    padding: 0 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: linear-gradient(120deg, #1d4ed8 0%, #0891b2 52%, #0f766e 100%);
}

.hero-shell {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(5px) saturate(1.16);
    transform: scale(1.06);
    opacity: 0.34;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.22), transparent 34%), linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 340px;
    align-items: center;
    gap: 54px;
    padding: 76px 0 92px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3.4vw, 42px);
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.78;
}

.hero-tags,
.detail-meta,
.tag-box div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-box span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(1.3deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-cyan);
    font-size: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 54px;
    background: #ffffff;
}

.quick-categories {
    margin-top: -34px;
    position: relative;
    z-index: 6;
}

.quick-categories .container {
    padding: 18px;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-title span {
    display: block;
    color: var(--color-cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-title strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.quick-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.footer-links a,
.category-pager a,
.filter-bar a,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--color-cyan);
    background: #ecfeff;
    font-weight: 750;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover,
.footer-links a:hover,
.category-pager a:hover,
.filter-bar a:hover,
.more-link:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transform: translateY(-1px);
}

.search-strip {
    padding: 64px 0 26px;
}

.search-strip-inner,
.filter-bar,
.search-page-form,
.wide-search {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-strip-inner {
    justify-content: space-between;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    box-shadow: var(--shadow-card);
}

.search-strip h2,
.search-strip p {
    margin: 0;
}

.search-strip p {
    margin-top: 6px;
    color: var(--color-slate-600);
}

.wide-search {
    min-width: min(500px, 100%);
}

.wide-search input,
.search-page-form input {
    height: 48px;
    padding: 0 18px;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.section-wrap {
    padding: 58px 0;
}

.stacked-sections {
    display: grid;
    gap: 56px;
    padding: 0 0 64px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 28px;
}

.section-head.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--color-blue);
    background: #dbeafe;
}

.section-head h2 {
    margin: 0;
    color: var(--color-slate-800);
    font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--color-slate-600);
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.05) 55%, transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .movie-poster-link::after {
    opacity: 1;
}

.movie-poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster-link img {
    transform: scale(1.08);
}

.movie-region,
.movie-year {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-region {
    top: 10px;
    right: 10px;
    background: var(--color-cyan);
}

.movie-year {
    left: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}

.movie-play-mark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.movie-card:hover .movie-play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    min-height: 46px;
    margin: 0 0 8px;
    color: var(--color-slate-800);
    font-size: 16px;
    line-height: 1.45;
}

.movie-card h3 a:hover {
    color: var(--color-cyan);
}

.movie-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-slate-600);
    font-size: 13px;
    line-height: 1.6;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.movie-card-meta span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-block {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.rank-and-focus,
.rank-page-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 32px 0;
}

.rank-panel,
.focus-panel,
.side-card,
.summary-box,
.review-box,
.tag-box,
.player-card,
.movie-detail-content,
.category-overview-card,
.top-rank-card,
.search-empty {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-panel,
.focus-panel {
    padding: 28px;
}

.rank-panel.full {
    grid-column: 1 / -1;
}

.focus-panel {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2, #0f766e);
}

.focus-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    top: -60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.focus-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    font-size: 32px;
}

.focus-panel p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #ecfeff;
}

.rank-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.rank-item strong,
.rank-item em {
    display: block;
    min-width: 0;
}

.rank-item strong {
    color: var(--color-slate-800);
    font-size: 15px;
    line-height: 1.4;
}

.rank-item em {
    margin-top: 4px;
    color: var(--color-slate-600);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(120deg, #1d4ed8, #0891b2, #0f766e);
}

.small-hero,
.ranking-hero {
    padding: 72px 0;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.category-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-overview-card {
    overflow: hidden;
}

.category-overview-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.category-overview-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-body p {
    margin: 0 0 20px;
    color: var(--color-slate-600);
    line-height: 1.7;
}

.filter-bar {
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-bar input {
    height: 48px;
    padding: 0 18px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

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

.top-rank-card {
    position: relative;
    overflow: hidden;
}

.top-rank-card a {
    display: block;
    position: relative;
}

.top-rank-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    background: #e2e8f0;
}

.top-rank-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 65%);
}

.top-rank-number {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 18px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-size: 28px;
    font-weight: 900;
}

.top-rank-card strong,
.top-rank-card em {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    display: block;
    color: #ffffff;
}

.top-rank-card strong {
    bottom: 54px;
    font-size: 22px;
}

.top-rank-card em {
    bottom: 26px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.detail-shell {
    padding: 32px 0 36px;
}

.detail-shell .breadcrumb {
    color: var(--color-slate-600);
}

.detail-shell .breadcrumb a:hover {
    color: var(--color-cyan);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 12px;
    background: #0f172a;
}

.movie-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(8, 145, 178, 0.22), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-start-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-start strong {
    max-width: 86%;
    font-size: clamp(18px, 2.6vw, 28px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.movie-detail-content {
    padding: 28px;
}

.movie-detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 42px);
    color: var(--color-slate-800);
}

.detail-meta {
    margin-bottom: 24px;
}

.detail-meta span,
.tag-box span {
    color: var(--color-slate-700);
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.summary-box,
.review-box,
.tag-box {
    padding: 24px;
    margin-top: 18px;
    box-shadow: none;
}

.summary-box {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.review-box {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.tag-box {
    background: #f8fafc;
}

.summary-box h2,
.review-box h2,
.tag-box h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--color-slate-800);
    font-size: 22px;
}

.summary-box p,
.review-box p {
    margin: 0;
    color: var(--color-slate-700);
    line-height: 1.9;
}

.summary-box .lead-text {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 650;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 22px;
}

.side-rank .rank-item {
    grid-template-columns: 54px 1fr;
}

.side-rank .rank-num {
    display: none;
}

.movie-card-compact h3 {
    font-size: 15px;
}

.search-page-form {
    max-width: 680px;
    margin-top: 28px;
}

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

.search-result-item {
    grid-template-columns: 78px 1fr;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-result-item img {
    width: 78px;
    height: 112px;
    border-radius: 14px;
}

.search-result-item strong {
    font-size: 18px;
}

.search-result-item p {
    margin: 8px 0 0;
    color: var(--color-slate-600);
    line-height: 1.6;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 28px;
    color: var(--color-slate-600);
    text-align: center;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    max-width: 420px;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 16px;
    color: #67e8f9;
    font-size: 18px;
}

.footer-links a {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    padding: 22px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .movie-grid,
    .large-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .header-search {
        display: none;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .hero,
    .hero-shell,
    .hero-content {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 54px 0 86px;
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .quick-categories .container,
    .search-strip-inner,
    .rank-and-focus,
    .rank-page-layout,
    .detail-layout,
    .footer-inner,
    .category-overview-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .search-strip-inner,
    .filter-bar,
    .wide-search,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-side {
        position: static;
    }

    .rank-list-wide {
        grid-template-columns: 1fr;
    }

    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .top-rank-card img {
        height: 360px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        height: 62px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .movie-grid,
    .large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-block,
    .rank-panel,
    .focus-panel,
    .movie-detail-content,
    .summary-box,
    .review-box,
    .tag-box {
        padding: 20px;
    }

    .rank-item {
        grid-template-columns: auto 52px 1fr;
    }

    .side-rank .rank-item {
        grid-template-columns: 52px 1fr;
    }

    .rank-item img {
        width: 52px;
        height: 74px;
    }
}
