:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f2d6de;
    --primary: #ef4444;
    --secondary: #f97316;
    --accent: #ec4899;
    --violet: #8b5cf6;
    --shadow: 0 18px 50px rgba(244, 63, 94, 0.14);
    --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.20), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #f9fafb 45%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94), rgba(245, 243, 255, 0.94));
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.10);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.brand-name {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    color: #4b5563;
    background: transparent;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.nav-dropdown {
    position: relative;
}

.dropdown-button {
    border: 0;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 280px;
    padding: 10px;
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.14);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-panel a {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
}

.dropdown-panel a:hover {
    background: linear-gradient(90deg, #fff1f2, #fdf2f8);
}

.dropdown-panel span {
    font-size: 0.78rem;
    color: var(--muted);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.72);
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.mobile-menu.open {
    display: grid;
    gap: 8px;
}

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

.mobile-category-list a {
    padding: 8px 10px;
    color: #4b5563;
    border-radius: 12px;
    background: #fafafa;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    padding: 80px 20px 72px;
}

.hero-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(52px);
    opacity: 0.36;
    animation: blobFloat 9s ease-in-out infinite;
}

.blob-one {
    top: 6%;
    left: 6%;
    background: #fecdd3;
}

.blob-two {
    top: 10%;
    right: 7%;
    background: #fed7aa;
    animation-delay: 1.8s;
}

.blob-three {
    left: 42%;
    bottom: 9%;
    background: #fbcfe8;
    animation-delay: 3.4s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -18px, 0) scale(1.08);
    }
}

.hero-intro {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto 36px;
    text-align: center;
}

.hero-icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-icons span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--soft-shadow);
}

.hero-icons span + span {
    width: 36px;
    height: 36px;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.76);
}

.hero-intro h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 22px 0 10px;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    color: #374151;
    font-weight: 700;
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-search,
.inline-filter,
.search-panel {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.hero-search {
    max-width: 680px;
    margin: 0 auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input,
.inline-filter input,
.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    color: #374151;
    background: #ffffff;
    border: 1px solid #f3e1e7;
    border-radius: 999px;
    outline: none;
}

.hero-search input:focus,
.inline-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.hero-search button,
.inline-filter button,
.search-panel button,
.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.24s ease;
}

.hero-search button,
.inline-filter button,
.search-panel button,
.primary-button,
.section-more {
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.22);
}

.ghost-button {
    color: #374151;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.hero-search button:hover,
.inline-filter button:hover,
.search-panel button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.25);
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 720px;
    margin: 30px auto 0;
}

.hero-stat-grid div {
    padding: 18px 10px;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

.hero-stat-grid strong {
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    color: var(--primary);
}

.hero-stat-grid span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-carousel {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 24px));
    min-height: 430px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
        var(--hero-image) center / cover;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: all 0.55s ease;
}

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

.hero-slide-media {
    height: 360px;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.18);
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-slide-content h2,
.page-hero h1,
.section-heading h2,
.detail-info h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

.hero-slide-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
}

.hero-slide-content p {
    margin: 18px 0;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #9f1239;
    background: #fff1f2;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.28);
    transition: all 0.22s ease;
}

.hero-dot.active {
    width: 30px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

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

.pastel-section {
    width: 100%;
    max-width: none;
    padding: 62px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.72), rgba(255, 255, 255, 0));
}

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

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
}

.thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.movie-card:hover .thumb img,
.category-tile:hover img,
.rank-item:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(17, 24, 39, 0.0);
    opacity: 0;
    transform: scale(0.78);
    transition: all 0.24s ease;
}

.movie-card:hover .play-hover {
    background: rgba(17, 24, 39, 0.32);
    opacity: 1;
    transform: scale(1);
}

.thumb em {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 0.74rem;
    font-style: normal;
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: #111827;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--accent);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.8rem;
}

.large .movie-card-body {
    padding: 20px;
}

.large .movie-title {
    font-size: 1.18rem;
}

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

.category-tile,
.category-overview-card {
    overflow: hidden;
    padding: 14px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
    transition: all 0.24s ease;
}

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

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-cover {
    display: block;
    height: 150px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

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

.category-tile strong,
.category-overview-card h2 {
    color: #111827;
    font-size: 1.18rem;
    font-weight: 900;
}

.category-tile span,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.65;
}

.category-tile em,
.category-overview-card span {
    color: var(--accent);
    font-style: normal;
    font-weight: 800;
}

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

.ranking-panel,
.search-panel,
.player-shell,
.detail-text article {
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 900;
}

.panel-title a {
    color: var(--accent);
    font-size: 0.86rem;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 74px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: #fff1f2;
}

.rank-num {
    color: var(--primary);
    font-weight: 900;
}

.rank-thumb {
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-info strong,
.compact-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info small,
.compact-info small {
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em {
    color: #9f1239;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}

.page-main {
    padding: 42px 0 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 28px 0 20px;
    padding: 56px;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.18), transparent 30rem),
        radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.16), transparent 28rem),
        rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.85;
}

.inline-filter {
    max-width: 620px;
    justify-content: flex-start;
    margin-top: 24px;
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-mosaic img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

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

.ranking-card {
    position: relative;
}

.ranking-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: var(--soft-shadow);
}

.search-section {
    padding-top: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
    align-items: center;
    margin-bottom: 18px;
}

.search-summary {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 700;
}

.search-results {
    min-height: 300px;
}

.detail-main {
    padding-top: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--accent);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.16), transparent 24rem),
        rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
    box-shadow: 0 26px 60px rgba(31, 41, 55, 0.18);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.08;
}

.detail-one-line {
    margin: 18px 0;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.9;
}

.detail-meta {
    margin: 18px 0;
}

.detail-tags {
    margin-bottom: 22px;
}

.player-shell {
    margin-top: 34px;
}

.player-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.player-title-row h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.player-title-row > span {
    color: var(--accent);
    font-weight: 900;
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    background: #111827;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.52));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    font-size: 2rem;
}

.player-shell.playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-text h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.45rem;
}

.detail-text p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
}

.compact-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
}

.small-thumb {
    width: 136px;
    height: 86px;
    flex: 0 0 auto;
    aspect-ratio: auto;
    border-radius: 14px;
}

.compact-info {
    min-width: 0;
    display: grid;
    gap: 6px;
    align-content: center;
}

.compact-info b {
    color: var(--accent);
    font-size: 0.78rem;
}

.site-footer {
    margin-top: 60px;
    padding: 52px 0;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    border-top: 1px solid #f3f4f6;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.hidden-by-filter {
    display: none !important;
}

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

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

    .two-column-section,
    .detail-hero,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        order: -1;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

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

    .hero-section {
        min-height: auto;
        padding-top: 52px;
    }

    .hero-search,
    .inline-filter,
    .search-panel {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

    .hero-stat-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-slide-media {
        height: 320px;
    }

    .hero-dots {
        bottom: 12px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .page-hero {
        padding: 34px 22px;
    }

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

    .detail-hero {
        padding: 20px;
    }

    .detail-poster {
        max-width: 360px;
    }

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

@media (max-width: 560px) {
    .brand-name {
        font-size: 1.05rem;
    }

    .hero-slide-media {
        height: 240px;
    }

    .hero-carousel {
        min-height: 710px;
        width: 100%;
    }

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

    .rank-item {
        grid-template-columns: 30px 64px minmax(0, 1fr);
    }

    .rank-item em {
        grid-column: 3;
    }

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