:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --sky: #38bdf8;
    --emerald: #34d399;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.55), #ffffff 42%, rgba(240, 249, 255, 0.65));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #4b5563;
    font-weight: 600;
}

.main-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: var(--pink);
}

.header-search {
    margin-left: auto;
    width: min(320px, 30vw);
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

.header-search input,
.hero-search input,
.search-page-form input,
.mobile-search input,
.catalog-toolbar input,
.catalog-toolbar select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

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

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.18);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: #f3f4f6;
}

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    color: #4b5563;
    font-weight: 600;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(240, 249, 255, 0.95), rgba(236, 253, 245, 0.9));
    border-top: 1px solid rgba(229, 231, 235, 0.86);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 48px 0 34px;
}

.footer-brand p,
.footer-block p {
    color: #64748b;
    line-height: 1.8;
}

.footer-block h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--ink);
}

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

.footer-block a {
    color: #64748b;
    transition: color 0.2s ease;
}

.footer-block a:hover {
    color: var(--pink);
}

.footer-copy {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(229, 231, 235, 0.84);
    font-size: 14px;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.22), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(255, 255, 255, 0.78), rgba(236, 253, 245, 0.88));
    z-index: -3;
}

.hero-floats {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-floats span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 32px;
    opacity: 0.18;
    animation: floaty var(--duration) ease-in-out var(--delay) infinite alternate;
}

.hero-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 44px;
    padding: 72px 0;
}

.hero-heading {
    text-align: left;
}

.pulse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 24px;
    border-radius: 24px;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: var(--shadow);
    animation: pulse 2.2s ease-in-out infinite;
}

.hero-heading h1 {
    margin: 0 0 22px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.07em;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-heading p {
    margin: 0 0 28px;
    max-width: 620px;
    color: #4b5563;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.8;
}

.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    width: min(620px, 100%);
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-search input,
.search-page-form input {
    padding: 14px 18px;
}

.hero-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-link-row a,
.text-link,
.section-more {
    color: var(--pink);
    font-weight: 700;
}

.hero-link-row a {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.hero-carousel {
    position: relative;
    min-height: 470px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    padding: 34px;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-copy .eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin: 16px 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0;
    color: #4b5563;
    line-height: 1.85;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

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

.btn.primary {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    box-shadow: 0 14px 26px rgba(236, 72, 153, 0.2);
}

.btn.ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 26px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.25);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0;
}

.section-wrap.compact {
    padding: 62px 0;
}

.section-wrap.narrow {
    max-width: 960px;
    text-align: center;
}

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

.section-head.simple {
    align-items: center;
}

.section-head.centered {
    justify-content: center;
    text-align: center;
}

.section-head h2,
.ranking-title h2,
.prose-card h2,
.detail-info h1,
.sub-hero h1 {
    margin: 8px 0 0;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head h2,
.ranking-title h2,
.prose-card h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.section-head p {
    margin: 12px 0 0;
    color: var(--muted);
}

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

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

.movie-card,
.category-overview-card,
.prose-card,
.ranking-card {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-overview-card:hover,
.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(236, 72, 153, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(56, 189, 248, 0.14));
}

.movie-card.compact-card .poster {
    aspect-ratio: 3 / 4;
}

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

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

.poster-badge,
.poster-time {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
    backdrop-filter: blur(12px);
}

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

.poster-time {
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.card-body {
    padding: 18px;
}

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

.card-body h3 a:hover,
.ranking-info h2 a:hover {
    color: var(--pink);
}

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

.card-meta,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
}

.card-meta span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    background: #f3f4f6;
}

.card-tags {
    margin-top: 12px;
}

.card-tags span,
.detail-tags span {
    color: var(--pink-dark);
    background: rgba(252, 231, 243, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.movie-card.horizontal .poster {
    min-height: 100%;
    aspect-ratio: auto;
}

.category-band {
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.55), rgba(224, 242, 254, 0.55), rgba(209, 250, 229, 0.55));
}

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

.category-tile,
.category-overview-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.category-tile {
    min-height: 152px;
    justify-content: center;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    font-size: 34px;
}

.category-tile strong {
    color: var(--ink);
    font-size: 17px;
}

.category-tile em {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(252, 211, 77, 0.28);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.10);
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ranking-title span {
    font-size: 28px;
}

.ranking-panel ol {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 46px 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
}

.rank-no {
    color: var(--amber);
    font-weight: 900;
}

.ranking-panel img {
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    font-size: 15px;
    line-height: 1.4;
}

.rank-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.center-actions {
    margin-top: 40px;
    text-align: center;
}

.sub-hero {
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.76), rgba(255, 255, 255, 0.72), rgba(224, 242, 254, 0.76));
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

.sub-hero .section-wrap {
    padding-top: 70px;
    padding-bottom: 70px;
}

.sub-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.sub-hero p {
    margin: 18px auto 0;
    max-width: 720px;
    color: #4b5563;
    line-height: 1.85;
    font-size: 18px;
}

.crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #64748b;
    font-size: 14px;
}

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

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

.category-overview-card {
    padding: 26px;
}

.category-overview-title {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    font-size: 26px;
}

.category-overview-title span {
    font-size: 34px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

.mini-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #f8fafc;
}

.mini-card img {
    height: 118px;
    object-fit: cover;
}

.mini-card span {
    display: block;
    padding: 10px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 180px;
    gap: 14px;
    margin-bottom: 26px;
}

.catalog-toolbar label {
    display: grid;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.catalog-toolbar input,
.catalog-toolbar select {
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.empty-state {
    margin-top: 24px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: 20px;
    background: #fff;
    border: 1px dashed rgba(236, 72, 153, 0.34);
}

.ranking-page-list {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 82px 150px 1fr;
    align-items: center;
    gap: 22px;
    padding: 18px;
}

.ranking-no {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--pink));
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.22);
}

.ranking-cover {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.ranking-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.search-page-form {
    margin: 28px auto 0;
}

.detail-top {
    padding: 34px 0 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

.detail-crumbs {
    display: flex;
    margin-top: 0;
}

.player-card {
    border-radius: 32px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player {
    background: #020617;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #020617;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover img {
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
    filter: saturate(1.08);
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: #fff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.32);
}

.player-cover strong {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    text-align: left;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.2;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.detail-info {
    padding: 28px;
    border-radius: 32px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.detail-one-line {
    color: #4b5563;
    line-height: 1.85;
    font-size: 17px;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.detail-meta dt {
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

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

.prose-card {
    padding: 30px;
}

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

.accent-card {
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.86), rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.76));
}

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

@keyframes floaty {
    from {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
    to {
        transform: translate3d(18px, -28px, 0) rotate(8deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-carousel {
        min-height: 500px;
    }

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

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

    .ranking-panel {
        position: static;
    }
}

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

    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-shell {
        width: min(100% - 28px, 720px);
        padding: 48px 0;
    }

    .hero-heading {
        text-align: center;
    }

    .hero-heading p,
    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-link-row,
    .hero-actions {
        justify-content: center;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }

    .hero-poster {
        width: min(260px, 82%);
        margin: 0 auto 36px;
        order: -1;
    }

    .movie-grid,
    .movie-grid.two-col,
    .related-grid,
    .overview-grid,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 54px 100px 1fr;
        gap: 14px;
    }

    .ranking-no {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 19px;
    }

    .section-wrap {
        width: min(100% - 28px, 520px);
        padding: 54px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-search,
    .search-page-form,
    .mobile-search {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .hero-carousel {
        min-height: 650px;
        border-radius: 26px;
    }

    .hero-slide {
        gap: 8px;
    }

    .movie-grid,
    .movie-grid.two-col,
    .related-grid,
    .overview-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        grid-template-columns: 1fr;
    }

    .detail-meta,
    .mini-card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-card {
        grid-template-columns: 48px 1fr;
    }

    .ranking-cover {
        display: none;
    }

    .player-cover strong {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}
