:root {
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --black: #111827;
    --gray: #6b7280;
    --light: #fff7fb;
    --card: #ffffff;
    --border: rgba(17, 24, 39, 0.08);
    --shadow: 0 20px 45px rgba(236, 72, 153, 0.14);
    --shadow-strong: 0 28px 60px rgba(17, 24, 39, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--black);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 42%, #eff6ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
    animation: heartbeat 1.8s ease-in-out infinite;
}

.logo-text {
    font-size: 24px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--red));
    background-clip: text;
    -webkit-background-clip: text;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--red);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--red);
    border-radius: 2px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.25), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.22), transparent 26%),
        linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #eef2ff 100%);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-glow-one {
    top: 80px;
    left: -120px;
    background: rgba(236, 72, 153, 0.38);
    animation: bounce-slow 4s ease-in-out infinite;
}

.hero-glow-two {
    right: -100px;
    bottom: 60px;
    background: rgba(59, 130, 246, 0.28);
    animation: bounce-slow 5s ease-in-out infinite reverse;
}

.hero-slides {
    position: relative;
    z-index: 2;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 92px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.08;
    transform: scale(1.08);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.2);
}

.hero-content {
    max-width: 680px;
}

.hero-label,
.page-hero span,
.detail-title-block span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--red));
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 0;
    max-width: 620px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-meta-grid,
.page-hero-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.movie-tags span,
.tag-block span {
    color: #be185d;
    background: #fce7f3;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.primary-button,
.ghost-button,
.line-button,
.home-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search-form button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--red));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.25);
}

.ghost-button {
    color: #be123c;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.line-button:hover,
.home-search-form button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 400px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    justify-self: end;
    border: 10px solid rgba(255, 255, 255, 0.82);
    border-radius: 34px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 48%);
}

.hero-poster img,
.movie-cover img,
.rank-thumb img,
.category-tile img,
.category-preview-row img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(239, 68, 68, 0.28);
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 28px;
    align-items: center;
    margin-top: -42px;
    position: relative;
    z-index: 5;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.home-search-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.home-search-card p {
    margin: 0;
    color: var(--gray);
}

.home-search-form {
    display: flex;
    gap: 10px;
}

.home-search-form input,
.filter-search input,
.sort-select {
    width: 100%;
    border: 1px solid var(--border);
    outline: none;
    background: #ffffff;
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.section-block {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--red));
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-cover img {
    transition: transform 0.4s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 52%);
}

.movie-rank-badge,
.movie-year {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.movie-rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.movie-year {
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.compact .movie-info h2 {
    font-size: 16px;
}

.movie-info h2 a:hover,
.rank-info h2 a:hover {
    color: var(--red);
}

.movie-info p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: #4b5563;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}

.movie-tags {
    margin-top: 14px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 26px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-tile img,
.category-tile-shade {
    position: absolute;
    inset: 0;
}

.category-tile img {
    z-index: -2;
}

.category-tile-shade {
    z-index: -1;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.88), rgba(236, 72, 153, 0.28));
}

.category-tile strong {
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile small {
    line-height: 1.6;
    opacity: 0.9;
}

.rank-strip,
.editor-section {
    background: linear-gradient(90deg, #fff7ed, #fff1f2, #fdf2f8);
}

.rank-strip-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 66px 0;
}

.rank-strip-title span {
    color: var(--red);
    font-size: 54px;
    font-weight: 1000;
    line-height: 1;
}

.rank-strip-title h2 {
    margin: 10px 0;
    font-size: 38px;
}

.rank-strip-title p {
    margin: 0 0 22px;
    color: var(--gray);
    line-height: 1.7;
}

.rank-strip-list,
.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 90px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.rank-number {
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--red));
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 28px;
    font-weight: 1000;
}

.rank-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fee2e2;
    border-radius: 14px;
}

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

.rank-info p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.6;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray);
    font-size: 13px;
}

.rank-more {
    grid-column: 2;
    justify-self: start;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.26), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.20), transparent 30%),
        linear-gradient(135deg, #fff1f2 0%, #ffffff 55%, #eef2ff 100%);
}

.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.page-hero-actions {
    margin-top: 26px;
}

.filter-panel {
    position: sticky;
    top: 78px;
    z-index: 20;
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.07);
    backdrop-filter: blur(18px);
}

.filter-search {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--red);
    transform: translateY(-50%);
    pointer-events: none;
}

.quick-filters,
.filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-button {
    border: 0;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.filter-status {
    justify-content: space-between;
    color: var(--gray);
}

.sort-select {
    width: auto;
    min-width: 180px;
    padding: 10px 14px;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    color: var(--gray);
    text-align: center;
    background: #ffffff;
    border: 1px dashed rgba(239, 68, 68, 0.35);
    border-radius: 22px;
}

.empty-state.show {
    display: block;
}

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

.category-overview-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-overview-head p {
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
}

.category-overview-head strong {
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--red));
    border-radius: 999px;
    align-self: start;
    padding: 9px 13px;
}

.category-preview-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.category-preview-row a {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fee2e2;
    border-radius: 14px;
}

.category-preview-row span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 8px 8px;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    font-size: 12px;
    font-weight: 800;
}

.line-button {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.line-button.full {
    width: 100%;
    margin-top: 10px;
}

.movie-detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 370px;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.38;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.52)),
        linear-gradient(to top, #111827, transparent 46%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 50px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 48px;
}

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

.detail-title-block {
    max-width: 800px;
}

.detail-title-block h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
}

.detail-title-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-top: -70px;
    padding-bottom: 70px;
    position: relative;
    z-index: 5;
}

.player-card,
.detail-card,
.side-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    padding: 12px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.34);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    opacity: 0.8;
}

.detail-card {
    margin-top: 26px;
    padding: 28px;
}

.detail-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.detail-headline h2,
.text-block h2,
.tag-block h2,
.side-card h2 {
    margin: 0;
    font-size: 24px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
}

.detail-meta-grid span {
    display: grid;
    gap: 5px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.detail-meta-grid .wide {
    grid-column: span 2;
}

.detail-meta-grid strong {
    color: var(--gray);
    font-size: 13px;
}

.text-block {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.text-block p {
    margin: 12px 0 0;
    color: #374151;
    line-height: 1.9;
}

.tag-block {
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.tag-block div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.related-section {
    padding-bottom: 0;
}

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

.side-card {
    padding: 22px;
}

.side-rank-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.side-rank-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 14px;
}

.side-rank-list span {
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--red));
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 20px;
    font-weight: 1000;
}

.side-rank-list strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-rank-list small {
    display: block;
    color: var(--gray);
    margin-top: 3px;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 1000;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@media (max-width: 1100px) {
    .movie-grid,
    .featured-grid,
    .editor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-layout,
    .rank-strip-inner {
        grid-template-columns: 1fr;
    }

    .rank-more {
        grid-column: auto;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: #fff1f2;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 44px;
    }

    .hero-poster {
        width: min(72vw, 310px);
        justify-self: start;
    }

    .home-search-card,
    .section-heading,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-search-form {
        flex-direction: column;
    }

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

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

    .rank-card {
        grid-template-columns: 40px 76px minmax(0, 1fr);
    }

    .rank-info p {
        display: none;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-content h1,
    .page-hero h1,
    .detail-title-block h1 {
        font-size: 38px;
    }

    .hero-actions,
    .page-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .detail-meta-grid .wide {
        grid-column: span 1;
    }

    .filter-status {
        align-items: stretch;
        flex-direction: column;
    }

    .sort-select {
        width: 100%;
    }
}
