:root {
    --twilight-950: #3b0764;
    --twilight-900: #581c87;
    --twilight-800: #6b21a8;
    --twilight-700: #7e22ce;
    --twilight-600: #9333ea;
    --twilight-500: #a855f7;
    --twilight-300: #d8b4fe;
    --dusk-600: #c026d3;
    --dusk-400: #e879f9;
    --sunset-500: #f97316;
    --sunset-300: #fdba74;
    --white-soft: rgba(255, 255, 255, 0.82);
    --white-muted: rgba(255, 255, 255, 0.62);
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.20);
    --shadow-glow: 0 20px 60px rgba(147, 51, 234, 0.28);
    --shadow-card: 0 18px 48px rgba(18, 3, 35, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(216, 180, 254, 0.22), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.16), transparent 28%),
        linear-gradient(135deg, var(--twilight-950) 0%, var(--twilight-900) 48%, #4a044e 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(59, 7, 100, 0.72);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 0 24px rgba(216, 180, 254, 0.28);
    transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
}

.logo-text,
.gradient-text {
    background: linear-gradient(90deg, var(--twilight-300), var(--dusk-400), var(--sunset-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--twilight-300);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    outline: none;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-bar input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--twilight-300);
    background: rgba(255, 255, 255, 0.14);
}

.header-search button,
.mobile-search button,
.menu-toggle {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 10px 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(59, 7, 100, 0.96);
}

.mobile-panel.open {
    display: grid;
    gap: 14px;
}

.mobile-panel a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.mobile-search input {
    flex: 1;
    padding: 10px 12px;
}

main {
    min-height: 70vh;
}

.hero-shell {
    position: relative;
    min-height: 82vh;
    margin-top: 0;
    overflow: hidden;
    background: #120320;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--twilight-950) 0%, rgba(59, 7, 100, 0.86) 34%, rgba(59, 7, 100, 0.18) 100%),
        linear-gradient(135deg, rgba(126, 34, 206, 0.50), rgba(192, 38, 211, 0.16) 48%, transparent 78%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 158px;
    width: min(720px, calc(100vw - 48px));
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-kicker,
.detail-tags,
.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-kicker span,
.detail-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 18px 0 8px;
    font-size: clamp(32px, 5.4vw, 68px);
    line-height: 1.05;
    max-width: 900px;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3.6vw, 52px);
    line-height: 1.1;
}

.hero-content p {
    margin: 0;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.72;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 12px 34px rgba(139, 92, 246, 0.42);
}

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

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(216, 180, 254, 0.50);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-thumbbar {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: min(1232px, calc(100vw - 48px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.hero-dot {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.hero-dot.active,
.hero-dot:hover {
    border-color: rgba(216, 180, 254, 0.65);
    background: rgba(147, 51, 234, 0.32);
}

.hero-dot img {
    width: 58px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-dot span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
}

.page-wrap {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.home-wrap {
    padding: 48px 0 76px;
}

.content-section {
    margin: 0 0 58px;
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.section-between {
    justify-content: space-between;
}

.section-heading h2,
.article-section h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading p,
.article-section p {
    margin: 0;
    color: var(--white-muted);
    line-height: 1.72;
}

.section-icon {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--twilight-300);
    font-size: 28px;
}

.view-more {
    flex: none;
    color: var(--twilight-300);
    font-weight: 800;
    transition: color 0.2s ease;
}

.view-more:hover {
    color: var(--sunset-300);
}

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

.compact-grid {
    gap: 18px;
}

.movie-card {
    position: relative;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 180, 254, 0.45);
    box-shadow: 0 22px 58px rgba(18, 3, 35, 0.42);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
}

.large-card .poster-link {
    aspect-ratio: 16 / 9;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.12), transparent);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.84);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(10px);
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunset-500), var(--dusk-600));
}

.card-body {
    padding: 14px;
}

.card-meta,
.card-foot {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    justify-content: space-between;
}

.card-meta span:first-child {
    color: var(--twilight-300);
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 16px;
    line-height: 1.36;
}

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

.movie-card p {
    margin: 0 0 12px;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-tile {
    position: relative;
    min-height: 168px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(112, 26, 117, 0.44), rgba(107, 33, 168, 0.36)),
        rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 180, 254, 0.45);
}

.category-glow {
    position: absolute;
    right: -44px;
    top: -44px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(216, 180, 254, 0.22);
    filter: blur(2px);
}

.category-tile strong {
    position: relative;
    font-size: 24px;
    margin-bottom: 10px;
}

.category-tile p,
.category-tile em {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.62;
    font-style: normal;
}

.category-tile em {
    margin-top: 12px;
    color: rgba(253, 186, 116, 0.82);
    font-size: 13px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
}

.rank-cover-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-glow);
}

.rank-cover-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.rank-cover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent 70%);
}

.rank-cover-card div {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 1;
}

.rank-cover-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.86);
}

.rank-cover-card h3 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
}

.rank-cover-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.72;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 72px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(216, 180, 254, 0.42);
}

.rank-number {
    color: var(--sunset-300);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info strong {
    margin-bottom: 6px;
    font-size: 15px;
}

.rank-info em {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    min-height: 55vh;
    padding-top: 120px;
    overflow: hidden;
}

.small-hero {
    min-height: 54vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 58px;
}

.page-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-bg img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}

.page-hero-bg span,
.detail-bg span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--twilight-950), rgba(59, 7, 100, 0.82), rgba(59, 7, 100, 0.22)),
        linear-gradient(135deg, rgba(126, 34, 206, 0.55), transparent 70%);
}

.page-hero-content {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow,
.eyebrow a {
    margin: 0 0 12px;
    color: var(--sunset-300);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 64px);
}

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

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.filter-bar input {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
}

.filter-bar select {
    min-width: 140px;
    padding: 12px 14px;
}

.filter-bar option {
    color: #1f1230;
}

.detail-hero {
    padding-bottom: 56px;
}

.detail-wrap {
    position: relative;
    padding-top: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--twilight-300);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 310px) 1fr;
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-glow);
}

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

.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
}

.lead {
    margin: 0 0 24px;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.75;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.meta-list div {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-list dt {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.meta-list dd {
    margin: 6px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffffff;
    font-weight: 800;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.detail-main {
    padding: 48px 0 80px;
}

.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-glow);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(147, 51, 234, 0.38), transparent 38%),
        linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 0 36px rgba(216, 180, 254, 0.48);
    transform: scale(1);
    transition: transform 0.2s ease;
}

.player-layer:hover .player-start {
    transform: scale(1.08);
}

.article-section {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.article-section h2:not(:first-child) {
    margin-top: 28px;
}

.article-section p {
    font-size: 17px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(59, 7, 100, 0.46);
}

.footer-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(59, 7, 100, 0.60));
    pointer-events: none;
}

.footer-inner {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 28px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 38px;
}

.footer-brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.72;
}

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

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--twilight-300);
}

.footer-bottom {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 32px;
    color: rgba(255, 255, 255, 0.46);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.fade-in {
    animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-thumbbar {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
        padding: 0 16px;
    }

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

    .header-search {
        display: none;
    }

    .hero-shell {
        min-height: 86vh;
    }

    .hero-content {
        bottom: 210px;
        left: 20px;
        width: calc(100vw - 40px);
    }

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

    .hero-content h2 {
        font-size: 28px;
    }

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

    .hero-thumbbar {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        bottom: 20px;
    }

    .hero-dot:nth-child(n + 4) {
        display: none;
    }

    .page-wrap,
    .page-hero-content,
    .footer-inner,
    .footer-bottom {
        width: calc(100% - 32px);
    }

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

    .category-grid,
    .big-category-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .search-filter {
        flex-direction: column;
    }

    .filter-bar select {
        width: 100%;
    }

    .rank-cover-card,
    .rank-cover-card img {
        min-height: 440px;
    }

    .rank-row {
        grid-template-columns: 36px 64px 1fr;
        gap: 10px;
    }

    .rank-row img {
        width: 64px;
        height: 48px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-poster {
        max-width: 260px;
    }

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

    .lead {
        font-size: 17px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .player-start {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-card .poster-link {
        aspect-ratio: 16 / 10;
    }
}
