:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-500: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 14px 35px rgba(17, 24, 39, 0.13);
    --shadow-lg: 0 26px 60px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 45%, #fff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-500), var(--yellow-500), var(--orange-500));
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--amber-600);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand-text {
    font-size: 1.45rem;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-weight: 700;
    opacity: 0.94;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: #fff;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-100);
    opacity: 1;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input {
    width: 180px;
    padding: 9px 12px;
    color: var(--gray-900);
    border: 0;
    border-radius: 999px;
    outline: none;
}

.nav-search button,
.hero-search button {
    padding: 9px 16px;
    color: var(--amber-700);
    font-weight: 800;
    cursor: pointer;
    background: #fff;
    border: 0;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.nav-search button:hover,
.hero-search button:hover {
    background: var(--amber-100);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--amber-600), var(--orange-500), var(--yellow-500));
}

.hero::before,
.hero::after,
.page-hero::before,
.detail-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    filter: blur(54px);
    opacity: 0.36;
    animation: pulseGlow 7s ease-in-out infinite;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: 42px;
    left: 8%;
    background: #fde047;
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -120px;
    bottom: -120px;
    background: #fdba74;
    animation-delay: 1.2s;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.82), rgba(17, 24, 39, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 640px;
    max-width: 720px;
    padding: 96px 0 110px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-title-line {
    margin: 0 0 14px;
    color: var(--amber-100);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 900;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.14rem;
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin-bottom: 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    font-weight: 900;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--amber-700);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.ghost-btn {
    color: #fff;
    background: rgba(180, 83, 9, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.stat-section {
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.stat-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 34px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.stat-card strong {
    display: block;
    color: var(--amber-600);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.stat-card span {
    color: var(--gray-600);
    font-weight: 700;
}

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

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--amber-700);
    font-weight: 900;
    white-space: nowrap;
}

.section-more span {
    font-size: 1.6rem;
    line-height: 1;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-card-large .poster-wrap {
    height: 440px;
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.poster-wrap::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    border-radius: 999px;
}

.duration {
    top: 12px;
    right: 12px;
    background: var(--amber-500);
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.play-icon {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    background: var(--amber-500);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-meta,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    max-width: 72%;
    padding: 5px 10px;
    overflow: hidden;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    border-radius: 999px;
}

.score {
    color: var(--amber-600);
    font-weight: 900;
    white-space: nowrap;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 14px 0 8px;
    overflow: hidden;
    font-size: 1.13rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.25s ease;
}

.movie-card-large h3 {
    font-size: 1.45rem;
}

.movie-card:hover h3 {
    color: var(--amber-700);
}

.movie-card p {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-foot {
    margin-top: auto;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.horizontal-scroll {
    display: grid;
    grid-auto-columns: minmax(280px, 330px);
    grid-auto-flow: column;
    gap: 22px;
    padding: 6px 2px 24px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

.latest-list {
    display: grid;
    gap: 16px;
}

.movie-card-horizontal a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 170px;
}

.movie-card-horizontal .poster-wrap {
    height: 100%;
}

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

.movie-card-horizontal h3 {
    min-height: auto;
    margin: 10px 0 6px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    display: flex;
    min-height: 220px;
    overflow: hidden;
    color: #fff;
    background: var(--amber-500);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-tile img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(234, 88, 12, 0.82));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile {
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.category-tile strong {
    font-size: 1.55rem;
}

.category-tile em {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    font-style: normal;
    opacity: 0.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-overview-card {
    min-height: 260px;
    align-items: flex-end;
    padding: 28px;
}

.category-overview-card div {
    position: relative;
    z-index: 2;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
}

.category-overview-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-overview-card em {
    font-style: normal;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--amber-600), var(--orange-500), var(--yellow-500));
}

.compact-hero {
    padding: 86px 0;
}

.page-hero::before {
    width: 420px;
    height: 420px;
    right: 10%;
    top: -150px;
    background: #fde047;
}

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

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
}

.filter-panel {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
    color: var(--gray-900);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
}

.filter-panel select {
    width: 180px;
    flex-shrink: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.empty-state {
    padding: 26px;
    color: var(--gray-600);
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--gray-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.32;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) saturate(1.08);
    transform: scale(1.04);
}

.detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(120deg, rgba(17, 24, 39, 0.96), rgba(180, 83, 9, 0.74));
}

.detail-hero::after {
    width: 480px;
    height: 480px;
    right: -100px;
    bottom: -180px;
    background: #f97316;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--amber-100);
}

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

.detail-poster {
    overflow: hidden;
    background: var(--amber-500);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 840px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin-bottom: 20px;
}

.detail-meta-grid span {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.tag-row span {
    padding: 7px 12px;
    color: #fff;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.78);
    border-radius: 999px;
}

.player-section {
    margin-top: -44px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    border: 8px solid #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.74));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: #fff;
    font-size: 2.3rem;
    cursor: pointer;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease;
}

.big-play:hover {
    transform: scale(1.06);
}

.player-cover strong {
    max-width: min(720px, 90%);
    font-size: clamp(1.3rem, 4vw, 2.4rem);
    text-align: center;
}

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

.prose-card {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.prose-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.prose-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.04rem;
}

.compact-info {
    grid-row: span 2;
}

.compact-info dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.compact-info div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
}

.compact-info dt {
    color: var(--gray-500);
    font-weight: 800;
}

.compact-info dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

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

.site-footer {
    margin-top: 60px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0 36px;
}

.footer-brand {
    color: #fff;
    font-size: 1.3rem;
}

.footer-brand .brand-mark {
    color: #fff;
    background: var(--amber-500);
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: #d1d5db;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    padding: 20px 16px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .nav-search {
        display: none;
    }
}

@media (max-width: 820px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin: 0;
        padding: 8px 0 12px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
    }

    .nav-link::after {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 690px;
    }

    .hero-image {
        width: 100%;
        opacity: 0.45;
        clip-path: none;
    }

    .hero-image::after {
        background: rgba(180, 83, 9, 0.76);
    }

    .hero-content {
        padding-top: 82px;
    }

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

    .filter-panel select {
        width: 100%;
    }

    .stat-card {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .movie-grid,
    .featured-grid,
    .four-cols,
    .six-related,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .compact-info {
        grid-row: auto;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 2.55rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-card,
    .movie-grid,
    .featured-grid,
    .four-cols,
    .six-related,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrap {
        height: 380px;
    }

    .movie-card-horizontal a {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .movie-card-horizontal .poster-wrap {
        height: 168px;
    }

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

    .detail-poster img {
        height: 430px;
    }

    .player-shell {
        border-width: 4px;
        border-radius: 18px;
    }
}
