:root {
    --site-dark: #141618;
    --site-dark-soft: #24272c;
    --site-dark-card: #1b1e22;
    --site-border: rgba(255, 255, 255, 0.08);
    --site-text: #ffffff;
    --site-muted: #9ca3af;
    --site-primary: #1890ff;
    --site-primary-soft: rgba(24, 144, 255, 0.16);
    --site-secondary: #13c2c2;
    --site-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(24, 144, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(19, 194, 194, 0.12), transparent 28rem),
        var(--site-dark);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-active {
    background: rgba(20, 22, 24, 0.94);
    border-color: var(--site-border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
    box-shadow: 0 12px 28px rgba(24, 144, 255, 0.32);
}

.brand-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.brand-icon path:last-child {
    fill: currentColor;
    stroke: none;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 5px;
    color: var(--site-muted);
    font-size: 0.75rem;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-nav a {
    color: #d1d5db;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #40a9ff;
}

.header-search {
    margin-left: auto;
    min-width: 260px;
    display: flex;
    align-items: center;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.header-search input,
.search-strip input,
.search-page-form input,
.filter-bar input,
.filter-bar select,
.search-page-form select {
    width: 100%;
    color: var(--site-text);
    background: transparent;
    outline: none;
}

.header-search input {
    padding: 10px 14px;
    min-width: 0;
}

.header-search button,
.search-strip button,
.search-page-form button {
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 700;
    background: var(--site-primary);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
    padding: 10px 18px;
}

.header-search button:hover,
.search-strip button:hover,
.search-page-form button:hover {
    background: #40a9ff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: rgba(36, 39, 44, 0.96);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-nav.is-open {
    display: grid;
}

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 760px;
    height: 82vh;
    overflow: hidden;
    background: #111418;
}

.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-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    transform: scale(1.04);
    transition: transform 7s ease, opacity 0.3s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-slide img.is-empty {
    opacity: 0.08;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 22, 24, 0.96) 0%, rgba(20, 22, 24, 0.74) 42%, rgba(20, 22, 24, 0.14) 100%),
        linear-gradient(0deg, var(--site-dark) 0%, transparent 36%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1180px) / 2));
    width: min(640px, calc(100% - 48px));
    transform: translateY(-42%);
    display: grid;
    gap: 18px;
    animation: riseIn 0.8s ease both;
}

.eyebrow {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(64, 169, 255, 0.38);
    border-radius: 999px;
    color: #91caff;
    background: rgba(24, 144, 255, 0.16);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 580px;
    color: #d1d5db;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #d1d5db;
    font-size: 0.92rem;
}

.hero-meta span,
.card-meta span,
.detail-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(19, 194, 194, 0.13);
    font-size: 0.78rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-button,
.ghost-button,
.section-more,
.watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--site-primary);
    box-shadow: 0 16px 34px rgba(24, 144, 255, 0.32);
}

.primary-button:hover,
.watch-link:hover {
    transform: translateY(-2px);
    background: #40a9ff;
}

.ghost-button,
.section-more {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 169, 255, 0.55);
    background: rgba(24, 144, 255, 0.18);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(20, 22, 24, 0.52);
    border: 1px solid var(--site-border);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(24, 144, 255, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--site-primary);
}

.search-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -58px auto 64px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: rgba(36, 39, 44, 0.9);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
}

.search-strip h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
}

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

.search-strip form,
.search-page-form,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-strip input,
.search-page-form input,
.search-page-form select,
.filter-bar input,
.filter-bar select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.search-strip button,
.search-page-form button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
}

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

.content-section {
    padding: 46px 0;
}

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

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 560px;
    color: var(--site-muted);
    line-height: 1.7;
}

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

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

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

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

.movie-card {
    border: 1px solid var(--site-border);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(36, 39, 44, 0.96), rgba(27, 30, 34, 0.96));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(64, 169, 255, 0.42);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 20%, rgba(24, 144, 255, 0.36), transparent 42%),
        radial-gradient(circle at 80% 84%, rgba(19, 194, 194, 0.24), transparent 38%),
        #101316;
}

.poster-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
}

.poster-frame img.is-empty {
    opacity: 0;
}

.poster-title {
    position: absolute;
    inset: auto 14px 16px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    line-height: 1.28;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.quality-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
}

.card-body {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.card-body h3 {
    color: #ffffff;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover {
    color: #40a9ff;
}

.card-body p {
    min-height: 3.2em;
    color: var(--site-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
}

.card-bottom span {
    color: #facc15;
    font-weight: 900;
}

.card-bottom a {
    color: #40a9ff;
    font-weight: 800;
}

.mini-card .card-body,
.compact-card .card-body {
    padding: 14px;
}

.mini-card .card-body p {
    min-height: auto;
}

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

.category-panel,
.category-overview-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: rgba(36, 39, 44, 0.82);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-panel:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(64, 169, 255, 0.45);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 96px;
}

.category-covers span {
    display: block;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.08);
}

.category-panel strong {
    font-size: 1.18rem;
    font-weight: 900;
}

.category-panel p,
.category-overview-card p {
    color: var(--site-muted);
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
    align-items: start;
}

.ranking-list,
.rank-table,
.side-list {
    display: grid;
    gap: 10px;
}

.rank-item,
.side-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: rgba(36, 39, 44, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover,
.side-item:hover {
    transform: translateX(4px);
    border-color: rgba(64, 169, 255, 0.48);
}

.rank-no {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-score {
    color: #facc15;
    font-weight: 900;
}

.section-more {
    margin-top: 18px;
}

.page-main {
    padding-top: 118px;
}

.page-hero {
    position: relative;
    margin-bottom: 42px;
    padding: 58px;
    border: 1px solid var(--site-border);
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(24, 144, 255, 0.22), rgba(19, 194, 194, 0.08)),
        rgba(36, 39, 44, 0.86);
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin-top: 16px;
    max-width: 720px;
    color: #d1d5db;
    line-height: 1.8;
}

.slim-hero {
    min-height: 300px;
}

.category-overview {
    display: grid;
    gap: 28px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.category-overview-head h2 {
    font-size: 1.8rem;
    font-weight: 900;
}

.category-overview-head a {
    color: #40a9ff;
    font-weight: 900;
}

.filter-bar {
    margin-bottom: 24px;
    align-items: center;
}

.filter-bar select,
.search-page-form select {
    max-width: 180px;
}

.movie-card.is-hidden {
    display: none;
}

.rank-row {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: rgba(36, 39, 44, 0.82);
}

.rank-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

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

.rank-cover img.is-empty {
    opacity: 0;
}

.rank-cover span {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 900;
    background: var(--site-primary);
}

.rank-row h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 900;
}

.rank-row h2 a:hover {
    color: #40a9ff;
}

.rank-row p {
    margin-bottom: 12px;
    color: var(--site-muted);
    line-height: 1.65;
}

.watch-link {
    min-height: 44px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--site-primary);
}

.search-panel {
    min-height: 420px;
}

.search-page-form {
    margin-bottom: 26px;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    color: var(--site-muted);
    background: rgba(36, 39, 44, 0.78);
    text-align: center;
}

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

.archive-group {
    padding: 22px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: rgba(36, 39, 44, 0.78);
}

.archive-group h2 {
    font-size: 1.45rem;
    font-weight: 900;
}

.archive-group h2 a:hover {
    color: #40a9ff;
}

.archive-group p {
    margin: 8px 0 14px;
    color: var(--site-muted);
}

.archive-group ul {
    display: grid;
    gap: 8px;
}

.archive-group li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.archive-group li a:hover {
    background: rgba(24, 144, 255, 0.14);
}

.archive-group li span {
    color: var(--site-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
    gap: 32px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--site-border);
    border-radius: 32px;
    background: rgba(36, 39, 44, 0.88);
    box-shadow: var(--site-shadow);
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
    background: #111418;
}

.movie-player.player-started .player-cover {
    display: none;
}

.player-cover-image,
.player-cover-shade {
    position: absolute;
    inset: 0;
}

.player-cover-image {
    background-size: cover;
    background-position: center;
    opacity: 0.58;
    filter: blur(1px) saturate(1.1);
    transform: scale(1.03);
}

.player-cover-shade {
    background:
        radial-gradient(circle at center, rgba(24, 144, 255, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.player-play-icon {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
    box-shadow: 0 20px 42px rgba(24, 144, 255, 0.36);
}

.player-play-text {
    position: relative;
    z-index: 2;
    margin-top: 118px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.44);
    font-weight: 900;
}

.detail-copy {
    display: grid;
    gap: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-muted);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #40a9ff;
}

.detail-copy h1 {
    font-size: clamp(2rem, 4.8vw, 4.4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-intro {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.75;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 42px 0 0;
}

.detail-article,
.detail-side {
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: rgba(36, 39, 44, 0.78);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 16px;
    font-size: 1.55rem;
    font-weight: 900;
}

.detail-article p {
    margin-bottom: 22px;
    color: #d1d5db;
    line-height: 1.9;
}

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

.info-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.info-grid dt {
    color: var(--site-muted);
    font-size: 0.82rem;
}

.info-grid dd {
    margin-top: 5px;
    font-weight: 800;
}

.detail-side {
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 98px;
}

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

.side-item span {
    color: var(--site-muted);
    font-size: 0.88rem;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--site-border);
    background: rgba(15, 17, 20, 0.94);
}

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

.footer-brand strong,
.footer-links h2 {
    display: block;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 900;
}

.footer-brand p,
.footer-bottom {
    color: var(--site-muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #40a9ff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(-34%);
    }
    to {
        opacity: 1;
        transform: translateY(-42%);
    }
}

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

    .header-search {
        min-width: 220px;
    }

    .menu-toggle {
        display: flex;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .mini-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .detail-layout,
    .detail-top {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

    .brand-text em,
    .header-search {
        display: none;
    }

    .hero-carousel {
        min-height: 650px;
        height: 86vh;
    }

    .hero-content {
        transform: translateY(-36%);
    }

    .hero-arrow {
        display: none;
    }

    .search-strip,
    .search-strip form,
    .search-page-form,
    .filter-bar,
    .footer-inner,
    .footer-bottom,
    .category-overview-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .search-strip {
        margin-top: -46px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .mini-grid,
    .category-grid,
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .detail-top {
        padding: 16px;
        border-radius: 24px;
    }

    .detail-article {
        padding: 22px;
    }

    .info-grid,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-cover {
        width: 122px;
    }
}

@media (max-width: 520px) {
    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.55rem;
    }

    .hero-content p {
        font-size: 0.96rem;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .mini-grid,
    .category-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .card-body p {
        min-height: auto;
    }

    .poster-frame {
        aspect-ratio: 16 / 10;
    }

    .page-main {
        padding-top: 94px;
    }
}
