:root {
    --pink: #db2777;
    --pink-dark: #be185d;
    --purple: #9333ea;
    --purple-dark: #7e22ce;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d4e6;
    --soft: #fff1f7;
    --soft-purple: #f5edff;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
    --shadow-strong: 0 24px 70px rgba(88, 28, 135, 0.25);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #f9fafb 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--pink);
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 10px 25px rgba(219, 39, 119, 0.32);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.desktop-nav a,
.mobile-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-links a:hover,
.mobile-links a.active {
    color: var(--pink);
    background: var(--soft);
}

.header-search {
    width: min(320px, 28vw);
    position: relative;
}

.header-search input,
.mobile-search input,
.big-search input {
    width: 100%;
    border: 1px solid #f7c7df;
    outline: none;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    transition: all 0.25s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.menu-button {
    display: none;
    border: 0;
    color: var(--pink);
    background: var(--soft);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(236, 72, 153, 0.14);
    padding: 14px 20px 18px;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-search input {
    padding: 11px 16px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(147, 51, 234, 0.46), transparent 35%),
        linear-gradient(90deg, rgba(219, 39, 119, 0.94) 0%, rgba(147, 51, 234, 0.72) 45%, rgba(17, 24, 39, 0.38) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 96px 20px 120px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions,
.page-actions,
.center-action,
.cta-band div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-actions {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

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

.btn-light {
    color: var(--pink);
    background: #fff;
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 30px rgba(219, 39, 119, 0.24);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.46);
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 36px;
    background: #fff;
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 20px;
}

.section-tint,
.section-gray,
.cta-band {
    max-width: none;
}

.section-tint {
    background: linear-gradient(135deg, #fff1f7, #f3e8ff);
}

.section-tint > .section-heading,
.section-tint > .square-grid,
.section-tint > .rank-grid,
.section-tint > .center-action {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-gray {
    background: #f9fafb;
}

.section-gray > .section-heading,
.section-gray > .mosaic-grid,
.section-gray > .table-wrap {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    color: #111827;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.movie-poster img,
.square-card img,
.mosaic-card img,
.scroll-card img,
.rank-card img,
.related-item img,
.poster-card img,
.category-tile img,
.category-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-link:hover .movie-poster img,
.square-card:hover img,
.mosaic-card:hover img,
.scroll-card:hover img,
.category-tile:hover img,
.category-card-large:hover img {
    transform: scale(1.08);
}

.movie-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 62%);
    transition: all 0.3s ease;
}

.movie-card-link:hover .movie-hover {
    opacity: 1;
    transform: translateY(0);
}

.movie-hover p {
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.badge-pink {
    background: var(--pink);
}

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

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #111827;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card-link:hover h3 {
    color: var(--pink);
}

.movie-desc {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.tag-row span {
    color: var(--pink);
    padding: 5px 9px;
    background: var(--soft);
}

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

.square-card,
.category-tile,
.mosaic-card,
.scroll-card,
.rank-card a,
.related-item,
.category-card-large {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
}

.square-card,
.mosaic-card,
.scroll-card,
.category-tile {
    position: relative;
    display: block;
}

.square-card {
    aspect-ratio: 1 / 1;
}

.square-card div,
.mosaic-card div,
.scroll-card div {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    color: #fff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
}

.square-card h3,
.mosaic-card h3,
.scroll-card h3 {
    margin: 0 0 6px;
}

.square-card p,
.mosaic-card p,
.scroll-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.category-tile {
    min-height: 210px;
    padding: 20px;
    color: #fff;
    isolation: isolate;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(219, 39, 119, 0.48));
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.category-tile span {
    display: inline-flex;
    margin-bottom: 40px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

.category-tile p {
    margin: 0;
    line-height: 1.6;
}

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

.mosaic-card {
    min-height: 230px;
}

.mosaic-card.wide {
    grid-column: span 2;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
}

.scroll-card {
    flex: 0 0 310px;
    height: 215px;
}

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

.rank-card a {
    display: grid;
    grid-template-columns: auto 86px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-card img {
    width: 86px;
    height: 112px;
    border-radius: 14px;
}

.rank-card h3,
.related-item h3 {
    margin: 0 0 8px;
    color: #111827;
}

.rank-card p,
.related-item p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rank-card span,
.related-item span {
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 700;
}

.center-action {
    justify-content: center;
    margin-top: 28px;
}

.cta-band,
.page-hero,
.search-hero,
.ranking-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.cta-band {
    padding: 68px 20px;
    text-align: center;
}

.cta-band h2,
.search-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-band p {
    max-width: 780px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.cta-band div {
    justify-content: center;
}

.page-inner {
    min-height: 68vh;
}

.page-hero.small {
    padding: 72px 20px;
}

.page-hero > div,
.search-hero,
.ranking-hero {
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero span,
.ranking-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

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

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

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.toolbar h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.toolbar p {
    margin: 0;
    color: var(--muted);
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-buttons button,
.quick-terms button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    color: #4b5563;
    font-weight: 800;
    background: #f3f4f6;
    transition: all 0.25s ease;
}

.sort-buttons button:hover,
.sort-buttons button.active,
.quick-terms button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.category-card-large {
    padding: 0 0 18px;
}

.category-card-large > a {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    color: #fff;
}

.category-card-large > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(219, 39, 119, 0.28));
}

.category-card-large > a div {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 24px;
}

.category-card-large h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-card-large p {
    margin: 0;
    line-height: 1.7;
}

.category-card-large ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0 20px;
}

.category-card-large li a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.category-card-large li a:hover {
    color: var(--pink);
    background: var(--soft);
}

.search-hero {
    padding: 74px 20px;
    text-align: center;
}

.big-search {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.big-search input {
    min-height: 58px;
    padding: 0 24px;
    font-size: 18px;
}

.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    color: var(--pink);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.quick-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.quick-terms button {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.search-results .movie-card.hidden {
    display: none;
}

.ranking-hero {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 72px 20px;
    isolation: isolate;
}

.ranking-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(147, 51, 234, 0.64), rgba(17, 24, 39, 0.4));
}

.ranking-hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-wrap {
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.ranking-table th {
    color: #111827;
    background: #fff7fb;
}

.ranking-table a {
    color: var(--pink);
    font-weight: 800;
}

.breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 700;
}

.detail-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.poster-card,
.related-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    overflow: hidden;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.play-circle {
    position: absolute;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: var(--pink);
    font-size: 34px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.detail-card {
    padding: 30px;
}

.detail-labels,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.detail-labels a,
.detail-labels span,
.detail-stats span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--pink);
    background: var(--soft);
    font-weight: 800;
    font-size: 13px;
}

.detail-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.detail-card .lead {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    margin: 20px 0;
}

.detail-card section {
    border-top: 1px solid #f3f4f6;
    padding-top: 22px;
    margin-top: 22px;
}

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

.detail-card section p {
    margin: 0;
    color: #374151;
    line-height: 2;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
}

.poster-card {
    padding: 18px;
}

.poster-card img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    margin-bottom: 14px;
}

.poster-card .btn {
    width: 100%;
}

.related-card {
    padding: 20px;
}

.related-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 10px;
    transition: all 0.25s ease;
}

.related-item:hover {
    background: var(--soft);
    transform: translateX(4px);
}

.related-item img {
    width: 78px;
    height: 102px;
    border-radius: 14px;
}

.site-footer {
    color: #e5e7eb;
    background: #111827;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

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

.site-footer p {
    max-width: 460px;
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #fce7f3;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(236, 72, 153, 0.32);
}

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

    .header-inner {
        justify-content: space-between;
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: minmax(0, 300px) 1fr;
    }
}

@media (max-width: 820px) {
    .hero-carousel {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .square-grid,
    .category-grid,
    .mosaic-grid,
    .rank-grid,
    .category-large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mosaic-card.wide {
        grid-column: span 2;
    }

    .toolbar,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .big-search {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 12px 14px;
    }

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

    .hero-content {
        padding: 76px 16px 106px;
    }

    .section,
    .page-hero.small,
    .search-hero,
    .ranking-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid,
    .square-grid,
    .category-grid,
    .mosaic-grid,
    .rank-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-card.wide {
        grid-column: auto;
    }

    .rank-card a {
        grid-template-columns: auto 76px 1fr;
        gap: 10px;
    }

    .rank-card img {
        width: 76px;
        height: 98px;
    }

    .detail-card {
        padding: 22px;
    }

    .detail-layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .scroll-card {
        flex-basis: 270px;
    }
}
