:root {
    color-scheme: light;
    --green-600: #16a34a;
    --green-700: #15803d;
    --emerald-700: #047857;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-50: #fffbeb;
    --orange-50: #fff7ed;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: var(--stone-800);
    background: linear-gradient(to bottom, var(--stone-50), #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

.page-shell {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--stone-50), #ffffff);
}

.container {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--stone-200);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.05);
}

.logo-text strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--stone-800);
}

.logo-text span {
    display: block;
    margin-top: 0.1rem;
    color: var(--stone-500);
    font-size: 0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--stone-700);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.header-search input {
    width: 16rem;
    padding: 0.58rem 0.85rem 0.58rem 2.35rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.75rem;
    color: var(--stone-700);
    background: var(--stone-50);
    outline: none;
}

.header-search input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.6);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--stone-400);
}

.menu-toggle {
    display: none;
    padding: 0.6rem;
    border-radius: 0.65rem;
    color: var(--stone-700);
    background: transparent;
}

.menu-toggle:hover {
    background: var(--stone-100);
}

.mobile-panel {
    display: none;
    padding: 0 0 1rem;
    border-top: 1px solid var(--stone-200);
}

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

.mobile-panel nav {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.75rem;
}

.mobile-panel a {
    padding: 0.8rem 0.1rem;
    font-weight: 700;
    color: var(--stone-700);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--stone-900);
}

.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-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    width: min(100%, 42rem);
}

.badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    font-size: 0.88rem;
    font-weight: 700;
}

.badge-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.hero h1,
.hero h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero p {
    display: -webkit-box;
    margin: 0 0 1.5rem;
    overflow: hidden;
    color: var(--stone-200);
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
    color: var(--stone-300);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.35rem;
    border-radius: 0.75rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--green-600);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--green-700);
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.btn-muted {
    color: var(--stone-700);
    background: #ffffff;
    border: 1px solid var(--stone-200);
}

.btn-muted:hover {
    background: var(--stone-100);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.main-content {
    padding: 4rem 0;
}

.section-stack {
    display: grid;
    gap: 4rem;
}

.section-panel {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.section-panel.green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.section-panel.stone {
    background: var(--stone-100);
}

.section-panel.warm {
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-title-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
    font-size: 1.05rem;
    font-weight: 900;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(1.7rem, 4vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
}

.section-title p {
    margin: 0.25rem 0 0;
    color: var(--stone-600);
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--stone-200);
    border-radius: 1.25rem;
    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 {
    transform: translateY(-0.25rem);
    border-color: #86efac;
    box-shadow: var(--shadow-xl);
}

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--stone-100);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.05);
    opacity: 0.92;
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.66), transparent);
}

.card-topline {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    z-index: 2;
}

.card-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 700;
}

.card-play {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease;
}

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

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
    min-width: 0;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 3rem;
    margin: 0 0 0.5rem;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.75rem;
    margin: 0 0 0.85rem;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: auto;
    color: var(--stone-500);
    font-size: 0.82rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.tag-list span {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    color: var(--green-700);
    background: #dcfce7;
    font-size: 0.76rem;
    font-weight: 700;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 11rem;
    padding: 1.35rem;
    border: 1px solid var(--stone-200);
    border-radius: 1.3rem;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-0.2rem);
    border-color: #86efac;
    box-shadow: var(--shadow-lg);
}

.category-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    color: var(--stone-800);
}

.category-card p {
    margin: 0;
    color: var(--stone-600);
    font-size: 0.93rem;
}

.category-card span {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--green-700);
    background: #dcfce7;
    font-size: 0.82rem;
    font-weight: 800;
}

.page-hero {
    padding: 4rem 0 2.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ffffff 55%, var(--amber-50));
}

.page-hero h1 {
    margin: 0 0 0.85rem;
    color: var(--stone-800);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 46rem;
    margin: 0;
    color: var(--stone-600);
    font-size: 1.08rem;
}

.toolbar {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
}

.toolbar input,
.toolbar select {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.8rem;
    color: var(--stone-700);
    background: #ffffff;
    outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
}

.empty-state {
    display: none;
    padding: 2rem;
    border: 1px dashed var(--stone-300);
    border-radius: 1.2rem;
    color: var(--stone-600);
    text-align: center;
    background: #ffffff;
}

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

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 4rem 7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--stone-200);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-0.15rem);
    border-color: #86efac;
    box-shadow: var(--shadow-lg);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    width: 7rem;
    aspect-ratio: 16 / 10;
    border-radius: 0.8rem;
    background: var(--stone-100);
}

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

.rank-info h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: var(--stone-800);
}

.rank-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    color: var(--green-700);
    font-weight: 900;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 26rem;
    color: #ffffff;
    background: var(--stone-900);
}

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

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    padding: 4rem 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.3rem;
    aspect-ratio: 3 / 4;
    background: var(--stone-800);
    box-shadow: var(--shadow-xl);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--stone-300);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-title h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-title p {
    max-width: 50rem;
    margin: 0 0 1.35rem;
    color: var(--stone-200);
    font-size: 1.05rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-meta span {
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
    gap: 2rem;
    padding: 3rem 0 4rem;
}

.content-card {
    padding: 1.5rem;
    border: 1px solid var(--stone-200);
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.content-card + .content-card {
    margin-top: 1.5rem;
}

.content-card h2 {
    margin: 0 0 1rem;
    color: var(--stone-800);
    font-size: 1.55rem;
    font-weight: 850;
}

.content-card p {
    margin: 0 0 0.9rem;
    color: var(--stone-700);
    line-height: 1.9;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #000000;
    box-shadow: var(--shadow-xl);
}

.video-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.75rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
    transition: opacity 0.25s ease;
}

.video-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.video-start {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    box-shadow: var(--shadow-xl);
    font-size: 1.8rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-layer:hover .video-start {
    transform: scale(1.05);
    background: var(--green-700);
}

.video-layer strong {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    font-weight: 800;
}

.side-list {
    display: grid;
    gap: 1rem;
}

.side-item {
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid var(--stone-200);
    border-radius: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.side-item:hover {
    border-color: #86efac;
    box-shadow: var(--shadow-lg);
}

.side-thumb {
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 10;
    background: var(--stone-100);
}

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

.side-item h3 {
    display: -webkit-box;
    margin: 0 0 0.25rem;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 0.95rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-item p {
    margin: 0;
    color: var(--stone-500);
    font-size: 0.8rem;
}

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.footer-title strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-text {
    max-width: 24rem;
    color: var(--stone-400);
    font-size: 0.92rem;
}

.footer-block h2,
.footer-block h3 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1rem;
}

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

.footer-block a,
.footer-block span {
    color: var(--stone-400);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-block a:hover {
    color: #4ade80;
}

.footer-bottom {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--stone-500);
    font-size: 0.88rem;
    text-align: center;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 1.25rem, 80rem);
    }

    .logo-text span {
        display: none;
    }

    .hero {
        min-height: 540px;
    }

    .hero-shade {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.3));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 5rem;
    }

    .hero-control {
        display: none;
    }

    .main-content {
        padding: 2.5rem 0;
    }

    .section-panel {
        padding: 1.1rem;
        border-radius: 1.1rem;
    }

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

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

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

    .rank-row {
        grid-template-columns: 3.4rem 5.5rem minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3 / 4;
        justify-self: start;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 2.5rem 0;
    }

    .detail-poster {
        width: 11rem;
    }

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

.header-search-mobile input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.75rem;
    color: var(--stone-700);
    background: var(--stone-50);
    outline: none;
}

.header-search-mobile input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.inline-link {
    color: var(--green-700);
    font-weight: 800;
}

.inline-link:hover {
    color: var(--green-600);
}

.card-section-link {
    white-space: nowrap;
    color: var(--green-700);
    font-weight: 800;
}

.card-section-link:hover {
    color: var(--green-600);
}
