:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --pink-100: #fce7f3;
    --yellow-100: #fef3c7;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 55px rgba(15, 23, 42, 0.13);
    --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.2);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 42%, var(--blue-50) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-2deg);
}

.brand-mark svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong,
.footer-brand {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(90deg, var(--blue-600), var(--indigo-700));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-copy small {
    color: var(--slate-500);
    font-size: 12px;
}

.header-search {
    position: relative;
    flex: 1 1 420px;
    max-width: 440px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 2px solid var(--blue-100);
    color: var(--slate-700);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    min-height: 44px;
    padding: 0 52px 0 18px;
    border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: var(--blue-500);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover {
    background: var(--blue-600);
    transform: translateY(-50%) scale(1.06);
}

.header-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--slate-700);
    font-weight: 650;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    color: var(--slate-700);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue-600);
}

.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: -18px;
    width: 190px;
    padding: 10px;
    display: grid;
    gap: 3px;
    background: #ffffff;
    border: 1px solid var(--slate-100);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a,
.mobile-panel nav a {
    border-radius: 12px;
    color: var(--slate-700);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a {
    padding: 9px 12px;
}

.nav-dropdown a:hover,
.mobile-panel nav a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--slate-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--slate-100);
    background: #ffffff;
}

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

.mobile-panel nav,
.mobile-search {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.mobile-search {
    padding: 16px 0 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-search input {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
}

.mobile-search button {
    padding: 0 18px;
    color: #ffffff;
    border-radius: 14px;
    background: var(--blue-600);
}

.mobile-panel nav {
    padding: 8px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(115deg, #2563eb 0%, #4f46e5 48%, #1d4ed8 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-bg span {
    position: absolute;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: #ffffff;
    filter: blur(60px);
    animation: pulseGlow 4.5s ease-in-out infinite;
}

.hero-bg span:nth-child(1) {
    top: 58px;
    left: 7%;
}

.hero-bg span:nth-child(2) {
    right: 12%;
    bottom: 88px;
    animation-delay: 1s;
}

.hero-bg span:nth-child(3) {
    top: 45%;
    left: 43%;
    animation-delay: 1.7s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.88);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    min-height: 620px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 52px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy {
    max-width: 660px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
}

.hero-kicker {
    margin-bottom: 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 0 7px rgba(253, 230, 138, 0.15);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 16px;
    color: #fef3c7;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.12;
}

.hero p {
    margin: 0 0 24px;
    max-width: 620px;
    color: rgba(239, 246, 255, 0.92);
    font-size: 19px;
}

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

.hero-tags {
    margin-bottom: 28px;
}

.hero-tags span,
.genre-row span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.section-link,
.category-overview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: var(--blue-600);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--blue-50);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-art {
    position: relative;
    display: block;
    justify-self: end;
    width: min(420px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-art:hover img {
    transform: scale(1.08);
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.5));
}

.hero-art-glow {
    position: absolute;
    inset: auto 28px 28px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    filter: blur(26px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: 48px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 62px;
    background: #ffffff;
}

.content-section {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 64px 0;
}

.soft-section {
    width: 100%;
    max-width: none;
    padding: 64px max(16px, calc((100% - var(--container)) / 2));
    background: rgba(239, 246, 255, 0.62);
}

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

.heading-line {
    display: inline-block;
    width: 5px;
    height: 34px;
    margin-right: 12px;
    border-radius: 999px;
    vertical-align: middle;
    background: linear-gradient(180deg, var(--blue-500), var(--indigo-600));
}

.section-heading h2 {
    display: inline;
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0 18px;
    color: var(--slate-500);
}

.section-link,
.category-overview-head a {
    color: var(--blue-700);
    background: var(--blue-50);
}

.section-link:hover,
.category-overview-head a:hover {
    color: #ffffff;
    background: var(--blue-600);
    transform: translateY(-2px);
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-7px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-100), var(--slate-100));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.68));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(8px);
}

.play-chip svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.movie-info {
    padding: 18px;
}

.movie-meta-row,
.movie-small-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-meta-row {
    margin-bottom: 10px;
    justify-content: space-between;
}

.category-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 11px;
    color: var(--blue-700);
    border-radius: 999px;
    background: var(--blue-50);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h2 {
    margin: 0 0 9px;
    color: var(--slate-900);
    font-size: 20px;
    line-height: 1.25;
}

.movie-info h2 a:hover,
.ranking-title:hover,
.compact-card:hover strong {
    color: var(--blue-600);
}

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

.movie-small-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--slate-400);
}

.tag-row {
    margin-top: 14px;
}

.tag-row span,
.genre-row span {
    color: var(--slate-600);
    background: var(--slate-100);
}

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

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

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

.category-card img,
.category-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card img {
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.category-mask {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.74));
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 21px;
    line-height: 1.2;
}

.category-card small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.86);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.78fr);
    gap: 34px;
    align-items: start;
}

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

.rank-item,
.compact-card,
.ranking-card,
.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover,
.compact-card:hover,
.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rank-num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
    font-weight: 900;
}

.rank-item img,
.compact-card img {
    width: 70px;
    height: 86px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--slate-100);
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-copy strong,
.compact-card strong {
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy small,
.compact-card small {
    color: var(--slate-500);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item em {
    color: var(--blue-600);
    font-style: normal;
    font-weight: 900;
}

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

.compact-grid.small {
    grid-template-columns: 1fr;
}

.compact-card {
    min-width: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card span {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.84);
    background: var(--slate-900);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
    gap: 32px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    background-image: linear-gradient(90deg, #93c5fd, #c4b5fd);
}

.footer-inner p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 16px;
}

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

.page-hero {
    color: #ffffff;
    background: linear-gradient(115deg, var(--blue-600), var(--indigo-700));
}

.page-hero > div {
    width: min(100% - 32px, var(--container));
    min-height: 300px;
    margin: 0 auto;
    padding: 64px 0;
    display: grid;
    align-content: center;
}

.small-hero > div,
.search-hero > div,
.ranking-hero > div,
.category-hero > div {
    min-height: 280px;
}

.eyebrow {
    width: fit-content;
    margin-bottom: 15px;
    color: var(--blue-700);
    background: #ffffff;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(239, 246, 255, 0.92);
    font-size: 18px;
}

.page-actions {
    margin-top: 24px;
}

.overview-layout {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

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

.category-overview-head h2 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 25px;
}

.category-overview-head p {
    margin: 0;
    color: var(--slate-500);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
}

.ranking-list {
    gap: 18px;
}

.ranking-card {
    padding: 16px;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--slate-100);
}

.ranking-poster img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
    font-weight: 900;
}

.ranking-title {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--slate-900);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.2;
}

.ranking-card p {
    margin: 0 0 12px;
    color: var(--slate-600);
}

.breadcrumb {
    width: min(100% - 32px, var(--container));
    margin: 22px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--slate-500);
    font-size: 14px;
}

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

.detail-hero,
.detail-content {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: stretch;
}

.player-card,
.detail-side,
.detail-main,
.detail-recommend {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.player-shell.is-playing::before {
    opacity: 0;
}

.player-button {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.36);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.player-button svg {
    width: 42px;
    height: 42px;
    margin-left: 4px;
    fill: currentColor;
}

.player-shell.is-playing .player-button,
.player-shell.is-playing .player-title {
    opacity: 0;
    pointer-events: none;
}

.player-title {
    position: absolute;
    z-index: 3;
    left: 26px;
    right: 26px;
    bottom: 24px;
    display: grid;
    gap: 7px;
    color: #ffffff;
}

.player-title span {
    width: fit-content;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 800;
}

.player-title strong {
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.1;
}

.detail-side {
    padding: 16px;
    display: grid;
    gap: 16px;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: var(--slate-100);
}

.detail-score {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    background: var(--blue-50);
}

.detail-score strong {
    color: var(--blue-700);
    font-size: 34px;
    line-height: 1;
}

.detail-score span {
    color: var(--slate-600);
    font-weight: 750;
}

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

.detail-main,
.detail-recommend {
    padding: 28px;
}

.detail-title-block h1 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-title-block p {
    margin: 0 0 22px;
    color: var(--slate-600);
    font-size: 18px;
}

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

.detail-meta-grid div {
    min-width: 0;
    padding: 15px;
    border-radius: 18px;
    background: var(--slate-50);
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--slate-500);
    font-size: 13px;
}

.detail-meta-grid strong {
    color: var(--slate-900);
    word-break: break-word;
}

.detail-main h2,
.detail-recommend h2 {
    margin: 28px 0 12px;
    color: var(--slate-900);
    font-size: 24px;
}

.detail-main p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

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

.prev-next {
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--slate-200);
}

.prev-next a {
    color: var(--blue-700);
    font-weight: 800;
}

.prev-next a:hover {
    color: var(--indigo-700);
}

.related-section {
    padding-top: 38px;
}

@media (max-width: 1100px) {
    .header-search {
        max-width: 330px;
    }

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

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

    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-side {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 21px;
    }

    .hero,
    .hero-inner {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
    }

    .hero-copy {
        padding-top: 44px;
    }

    .hero-art {
        justify-self: start;
        width: min(310px, 80vw);
        aspect-ratio: 4 / 3;
        transform: rotate(0);
    }

    .hero-dots {
        bottom: 26px;
    }

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

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

    .two-column-section {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .detail-hero,
    .detail-content,
    .breadcrumb,
    .footer-inner,
    .page-hero > div {
        width: min(100% - 24px, var(--container));
    }

    .brand-copy small {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 720px;
    }

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

    .hero h2 {
        font-size: 27px;
    }

    .hero p,
    .detail-title-block p,
    .detail-main p {
        font-size: 16px;
    }

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .compact-grid,
    .mobile-panel nav {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        aspect-ratio: 16 / 9;
    }

    .rank-item {
        grid-template-columns: 34px 58px 1fr;
    }

    .rank-item em {
        display: none;
    }

    .rank-item img,
    .compact-card img {
        width: 58px;
        height: 72px;
    }

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

    .ranking-poster img {
        height: 120px;
    }

    .ranking-title {
        font-size: 20px;
    }

    .player-button {
        width: 66px;
        height: 66px;
    }

    .player-button svg {
        width: 33px;
        height: 33px;
    }

    .player-title {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }

    .detail-main,
    .detail-recommend {
        padding: 20px;
    }

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

    .prev-next {
        flex-direction: column;
    }
}
