:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --taro: #b794f6;
    --taro-soft: #e0c3fc;
    --rose: #f5576c;
    --ink: #1f2937;
    --muted: #6b7280;
    --card: rgba(255, 255, 255, 0.88);
    --shadow-purple: 0 10px 40px rgba(167, 85, 247, 0.3);
    --shadow-soft: 0 18px 45px rgba(82, 38, 145, 0.13);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(224, 195, 252, 0.7), transparent 34rem),
        linear-gradient(180deg, #fff 0%, #faf5ff 38%, #fff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 22%, rgba(183, 148, 246, 0.18), transparent 12rem),
        radial-gradient(circle at 85% 8%, rgba(245, 87, 108, 0.12), transparent 16rem),
        radial-gradient(circle at 78% 78%, rgba(168, 237, 234, 0.22), transparent 20rem);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(216, 180, 254, 0.55);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--purple-600), var(--taro-soft));
    box-shadow: var(--shadow-purple);
    animation: float 6s ease-in-out infinite;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 7px -8px -8px 7px;
    border-radius: 999px;
    background: rgba(183, 148, 246, 0.35);
    filter: blur(14px);
    z-index: -1;
}

.logo-text {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: transparent;
    background: linear-gradient(90deg, var(--purple-700), var(--purple-500), #db2777);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--purple-500), var(--taro-soft));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    width: 260px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid rgba(216, 180, 254, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-purple);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-panel a,
.mobile-category-list a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    background: rgba(250, 245, 255, 0.72);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-category-list a:hover {
    color: var(--purple-700);
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.34), rgba(224, 195, 252, 0.42));
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(196, 181, 253, 0.82);
    border-radius: 999px;
    outline: none;
    background: rgba(250, 245, 255, 0.9);
    color: var(--ink);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 230px;
    padding: 11px 18px;
}

.header-search button,
.filter-panel button {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-600), var(--taro));
    box-shadow: 0 10px 24px rgba(147, 51, 234, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--purple-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.13);
}

.header-search button:hover,
.filter-panel button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(250, 245, 255, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--purple-700);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(216, 180, 254, 0.5);
    animation: slideUp 0.35s ease both;
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel input {
    width: 100%;
    padding: 12px 16px;
}

.mobile-panel > a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    background: rgba(250, 245, 255, 0.86);
    font-weight: 800;
}

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

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    isolation: isolate;
}

.hero-track {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 96px;
}

.hero-slide {
    position: relative;
    display: none;
    min-height: 560px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 44px;
    border: 1px solid rgba(216, 180, 254, 0.62);
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 245, 255, 0.72)),
        linear-gradient(135deg, rgba(183, 148, 246, 0.28), rgba(224, 195, 252, 0.14));
    box-shadow: 0 30px 90px rgba(124, 58, 237, 0.18);
    overflow: hidden;
    padding: 56px;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    filter: blur(12px) saturate(1.12);
    transform: scale(1.08);
    z-index: -1;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 14px;
    color: var(--purple-700);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -2px;
    font-weight: 950;
}

.hero-desc,
.detail-one-line,
.page-hero p {
    margin: 24px 0 0;
    max-width: 680px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--purple-700);
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.24), rgba(224, 195, 252, 0.42));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.ghost-button,
.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple-600), var(--rose));
    box-shadow: var(--shadow-purple);
}

.ghost-button,
.section-link,
.text-link {
    min-height: 44px;
    padding: 0 18px;
    color: var(--purple-700);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(196, 181, 253, 0.82);
}

.hero-art {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    box-shadow: 0 35px 70px rgba(124, 58, 237, 0.28);
    transform: rotate(2deg);
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: inherit;
    z-index: 1;
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.24);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-cloud {
    position: absolute;
    border-radius: 999px;
    filter: blur(35px);
    pointer-events: none;
    z-index: -1;
}

.hero-cloud-one {
    width: 340px;
    height: 340px;
    left: 4%;
    top: 16%;
    background: rgba(183, 148, 246, 0.28);
    animation: float 7s ease-in-out infinite;
}

.hero-cloud-two {
    width: 420px;
    height: 420px;
    right: -10%;
    bottom: 0;
    background: rgba(245, 87, 108, 0.12);
    animation: float 8s ease-in-out infinite reverse;
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding: 78px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.58), rgba(255, 255, 255, 0.84));
}

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

.section-heading h2,
.category-overview-head h2,
.text-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -1px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(216, 180, 254, 0.55);
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 26px 58px rgba(124, 58, 237, 0.2);
}

.movie-poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.18;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.5), rgba(224, 195, 252, 0.32));
}

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

.movie-card:hover .movie-poster {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.55));
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta-line span {
    position: relative;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: rgba(107, 114, 128, 0.7);
}

.movie-card-title {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
    color: #111827;
}

.movie-card-title a:hover,
.ranking-item h3 a:hover {
    color: var(--purple-700);
}

.movie-card-desc {
    min-height: 48px;
    margin: 0;
    color: #5b6270;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-tags span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
}

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

.category-card,
.text-card,
.filter-panel,
.category-overview-block {
    border: 1px solid rgba(216, 180, 254, 0.55);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.category-card {
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-main {
    display: grid;
    gap: 10px;
}

.category-card-main span {
    color: var(--purple-700);
    font-size: 24px;
    font-weight: 950;
}

.category-card-main strong {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.category-mini-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-mini-links a {
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(250, 245, 255, 0.84);
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.category-hub {
    display: grid;
    gap: 44px;
}

.category-overview-block {
    padding: 28px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.92), rgba(255, 255, 255, 0.76));
    border-bottom: 1px solid rgba(216, 180, 254, 0.55);
}

.slim-hero {
    padding: 72px 0;
}

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

.page-hero h1 {
    font-size: clamp(42px, 5vw, 68px);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
    position: sticky;
    top: 86px;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
}

.empty-state {
    display: none;
    margin: 26px 0 0;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(168, 85, 247, 0.35);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.empty-state.is-visible {
    display: block;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(216, 180, 254, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple);
}

.rank-number {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--purple-600), var(--rose));
    box-shadow: 0 12px 24px rgba(147, 51, 234, 0.22);
}

.rank-thumb {
    width: 86px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(250, 245, 255, 0.9);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content h3 {
    margin: 7px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.rank-content p {
    margin: 0;
    color: #5b6270;
    line-height: 1.7;
}

.large-ranking .ranking-item {
    grid-template-columns: 72px 110px minmax(0, 1fr) auto;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 245, 255, 0.88));
}

.detail-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 76px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 46px;
}

.detail-poster-wrap {
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.42), rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow-purple);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4.12;
    object-fit: cover;
    border-radius: 26px;
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-meta {
    margin-top: 20px;
}

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

.detail-section {
    padding-top: 56px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    box-shadow: 0 35px 80px rgba(17, 24, 39, 0.28);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.54));
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 5;
}

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

.play-icon {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    background: linear-gradient(135deg, var(--purple-600), var(--rose));
    box-shadow: 0 18px 45px rgba(147, 51, 234, 0.45);
}

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

.text-card {
    padding: 30px;
}

.text-card p {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    position: relative;
    margin-top: 72px;
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.64), #fff);
    border-top: 1px solid rgba(216, 180, 254, 0.55);
}

.footer-wave {
    height: 24px;
    background: radial-gradient(ellipse at top, rgba(183, 148, 246, 0.24), transparent 70%);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #5b6270;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #111827;
}

.footer-links a {
    color: #5b6270;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--purple-700);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    color: var(--muted);
    border-top: 1px solid rgba(216, 180, 254, 0.55);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

    .hero-slide {
        grid-template-columns: 1fr 320px;
        padding: 42px;
    }
}

@media (max-width: 860px) {
    .nav-inner {
        gap: 14px;
    }

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-track {
        padding: 34px 0 76px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 28px;
        min-height: 0;
    }

    .hero-art {
        max-width: 320px;
        margin: 0 auto;
        transform: none;
        order: -1;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -1px;
    }

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

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

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

    .ranking-item,
    .large-ranking .ranking-item {
        grid-template-columns: 48px 78px minmax(0, 1fr);
    }

    .ranking-item .text-link {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .detail-poster-wrap {
        max-width: 330px;
    }

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

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

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

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 15px;
        font-size: 12px;
    }

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

    .content-section,
    .page-hero-inner,
    .detail-inner,
    .footer-inner,
    .footer-bottom,
    .mobile-panel {
        width: min(100% - 22px, 1180px);
    }

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

    .soft-section {
        padding: 54px 11px;
    }

    .hero-slide {
        border-radius: 28px;
        padding: 20px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(34px, 13vw, 52px);
    }

    .hero-desc,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

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

    .section-heading,
    .category-overview-head {
        display: grid;
    }

    .category-overview-block,
    .text-card {
        padding: 20px;
    }

    .ranking-item,
    .large-ranking .ranking-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

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

    .rank-thumb {
        width: 72px;
    }

    .player-shell {
        border-radius: 20px;
    }

    .play-icon {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
