* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff0f7;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --blue: #60a5fa;
    --shadow: 0 18px 45px rgba(239, 68, 68, 0.14);
    --shadow-strong: 0 28px 70px rgba(236, 72, 153, 0.24);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(236, 72, 153, 0.16), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(96, 165, 250, 0.17), transparent 32%),
        linear-gradient(135deg, #fff1f7 0%, #ffffff 52%, #eff6ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(236, 72, 153, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--red));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
    animation: heartbeat 1.6s ease-in-out infinite;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.header-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    width: 210px;
    padding: 8px 10px 8px 14px;
}

.header-search button,
.hero-search button,
.primary-action,
.ranking-more,
.text-link {
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink), var(--red));
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 16px;
}

.primary-action,
.ranking-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
}

.primary-action.small {
    padding: 10px 16px;
    white-space: nowrap;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    color: var(--red);
    font-weight: 800;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.10);
}

.header-search button:hover,
.hero-search button:hover,
.primary-action:hover,
.secondary-action:hover,
.ranking-more:hover,
.text-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.30);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--red);
    background: #fff0f7;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
}

.hero-slider {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 64px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
    box-shadow: var(--shadow-strong);
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 34px;
    padding: clamp(28px, 5vw, 64px);
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.6s ease both;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.24)),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 28%);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    order: 2;
    aspect-ratio: 3 / 4;
    max-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.38);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 650px;
}

.hero-kicker,
.section-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 0 0 22px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-search {
    width: min(100%, 530px);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.hero-search input {
    flex: 1;
    padding: 12px 16px;
}

.hero-search button {
    padding: 12px 22px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.22);
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.hero-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hero-thumb {
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.10);
}

.hero-thumb.is-active {
    border-color: rgba(239, 68, 68, 0.50);
}

.hero-thumb img {
    width: 46px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

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

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

.content-section.no-pad {
    padding-bottom: 0;
}

.gradient-band {
    margin-bottom: 64px;
    padding: 62px 0;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.92), rgba(252, 231, 243, 0.92));
}

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

.section-kicker {
    color: var(--red);
    background: #fff0f7;
}

.section-head h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--red), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.section-head p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--red);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.10);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ef, #e0f2fe);
}

.featured-grid .movie-poster {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .movie-poster img,
.category-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--red);
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.movie-body {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.movie-body h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-body h3 a:hover,
.rank-info a:hover,
.category-card h2 a:hover,
.aside-panel a:hover {
    color: var(--red);
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #be123c;
    font-size: 12px;
    background: #ffe4ef;
}

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

.category-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    font-weight: 900;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-chip:hover {
    color: var(--red);
    transform: translateY(-4px);
}

.category-chip em {
    color: var(--red);
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.filter-panel,
.detail-card,
.aside-panel,
.page-hero,
.category-card,
.player-shell {
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.ranking-panel-head span {
    color: var(--red);
    font-weight: 900;
}

.ranking-panel-head h2 {
    margin: 6px 0 18px;
}

.rank-mini-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.10);
}

.rank-mini-row strong {
    color: var(--red);
}

.rank-mini-row span {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-mini-row em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.ranking-more {
    width: 100%;
    margin-top: 18px;
}

.page-main {
    padding: 34px 0 74px;
}

.page-hero {
    margin-bottom: 28px;
    padding: clamp(30px, 5vw, 56px);
    background:
        radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.20), transparent 28%),
        linear-gradient(135deg, #ffffff, #fff0f7);
}

.page-hero span {
    color: var(--red);
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
}

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

.filter-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.filter-title strong {
    font-size: 18px;
}

.filter-title span {
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
}

.filter-controls label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 14px;
    background: #fff;
}

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

.category-card {
    overflow: hidden;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: linear-gradient(135deg, #fff0f7, #eff6ff);
}

.category-preview img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-body {
    padding: 22px;
}

.category-card-body span {
    color: var(--red);
    font-weight: 900;
}

.category-card-body h2 {
    margin: 8px 0 10px;
}

.category-card-body p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr) 140px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--red));
}

.rank-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #ffe4ef;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--red);
    font-size: 32px;
}

.rank-score span {
    color: var(--muted);
    font-size: 13px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #050505;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #111827;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
    filter: saturate(1.12);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
}

.big-play {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--red);
    font-size: 38px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    animation: popIn 0.5s ease both;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
}

.player-controls button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
}

.player-state {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.detail-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 32px);
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.06em;
}

.detail-card h2 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.detail-card p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.detail-card .one-line {
    padding: 16px 18px;
    border-radius: 18px;
    color: #be123c;
    font-weight: 800;
    background: #fff0f7;
}

.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta-grid span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
}

.detail-tags {
    margin-top: 26px;
}

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.aside-poster {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.aside-panel {
    padding: 22px;
}

.aside-panel h2 {
    margin: 0 0 16px;
}

.aside-panel dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.aside-panel div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.10);
    padding-bottom: 10px;
}

.aside-panel dt {
    color: var(--muted);
}

.aside-panel dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.related-section {
    margin-top: 52px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 38px 0;
}

.footer-brand {
    color: #fff;
    -webkit-background-clip: initial;
    background: none;
}

.footer-inner p {
    max-width: 620px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
    justify-content: flex-end;
}

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

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

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.12);
    }

    40% {
        transform: scale(0.96);
    }

    60% {
        transform: scale(1.08);
    }
}

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

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

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: 0;
        width: min(320px, 70vw);
        justify-self: center;
    }

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

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

    .ranking-panel,
    .detail-aside {
        position: static;
    }

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

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

@media (max-width: 720px) {
    .header-inner,
    .content-section,
    .page-main,
    .hero-slider,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-stage {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 24px;
    }

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

    .hero-search,
    .hero-actions,
    .section-head,
    .footer-inner,
    .detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .featured-grid,
    .editor-grid,
    .latest-grid,
    .all-grid,
    .movie-grid,
    .category-overview-grid,
    .category-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-score {
        grid-column: 2 / -1;
        text-align: left;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 13px;
    }

    .movie-body {
        padding: 14px;
    }

    .movie-body h3 {
        font-size: 16px;
    }

    .movie-body p {
        font-size: 13px;
    }

    .player-controls {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .player-state {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 460px) {
    .featured-grid,
    .editor-grid,
    .latest-grid,
    .all-grid,
    .movie-grid,
    .category-overview-grid,
    .category-chip-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 760px;
    }
}
