* {
    box-sizing: border-box;
}

:root {
    --color-amber-50: #fffbeb;
    --color-amber-100: #fef3c7;
    --color-amber-500: #f59e0b;
    --color-amber-600: #d97706;
    --color-amber-700: #b45309;
    --color-orange-50: #fff7ed;
    --color-orange-100: #ffedd5;
    --color-orange-600: #ea580c;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-card: 0 10px 25px rgba(17, 24, 39, 0.08);
    --shadow-card-hover: 0 20px 45px rgba(17, 24, 39, 0.16);
    --radius-card: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-gray-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--color-orange-50), var(--color-amber-50) 34%, #ffffff 68%);
    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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-900);
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600));
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 23px 0 20px;
    transition: color 0.2s ease;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--color-amber-600);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--color-amber-700);
}

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

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(17, 24, 39, 0.05);
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 18px;
    border: 0;
    outline: 0;
}

.header-search button {
    padding: 10px 18px;
    color: white;
    cursor: pointer;
    background: var(--color-amber-600);
    border: 0;
}

.menu-toggle {
    display: none;
    padding: 8px 11px;
    color: var(--color-gray-700);
    cursor: pointer;
    background: var(--color-amber-100);
    border: 0;
    border-radius: 10px;
}

.mobile-panel {
    display: none;
    padding: 12px 16px 18px;
    background: white;
    border-top: 1px solid var(--color-gray-200);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    font-weight: 700;
    border-radius: 10px;
}

.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--color-amber-700);
    background: var(--color-amber-50);
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
}

.mobile-panel button {
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    background: var(--color-amber-600);
    border: 0;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.36) 46%, rgba(0, 0, 0, 0.08));
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 70vh;
    padding: 0 0 78px;
    color: white;
}

.hero__copy {
    max-width: 700px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 16px;
    color: #fff7ed;
    background: rgba(217, 119, 6, 0.86);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2vw, 20px);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero__meta span {
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600));
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.36);
}

.button--ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero__control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.32);
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero__control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero__control--prev {
    left: 24px;
}

.hero__control--next {
    right: 24px;
}

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

.hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero__dot.is-active {
    width: 34px;
    background: white;
}

.main-space {
    padding: 56px 0 72px;
}

.main-space--tight {
    padding-top: 32px;
}

.page-hero {
    padding: 58px 0;
    color: white;
    background: linear-gradient(120deg, var(--color-amber-600), var(--color-orange-600));
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

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

.section-block {
    margin-bottom: 72px;
}

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

.section-heading > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
}

.section-heading p {
    grid-column: 2;
    margin: 2px 0 0;
    color: var(--color-gray-500);
}

.section-heading__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--color-amber-700);
    background: var(--color-amber-100);
    border-radius: 12px;
}

.section-link {
    color: var(--color-amber-700);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-amber-100), var(--color-orange-100));
}

.movie-card--wide .movie-card__cover,
.movie-card--compact .movie-card__cover {
    aspect-ratio: 16 / 9;
}

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

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

.movie-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1) 48%, transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__shade {
    opacity: 1;
}

.score-pill,
.duration-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.score-pill {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
}

.duration-pill {
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600));
    border-radius: 10px;
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-card__body h3 {
    margin: 0 0 6px;
    color: var(--color-gray-900);
    font-size: 17px;
    line-height: 1.3;
}

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

.movie-card__meta {
    margin: 0 0 10px;
    color: var(--color-gray-500);
    font-size: 12px;
}

.movie-card__desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--color-gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: var(--color-gray-500);
    font-size: 12px;
}

.movie-card__tags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.movie-card__tags span {
    padding: 3px 7px;
    color: var(--color-amber-700);
    background: var(--color-amber-50);
    border-radius: 999px;
}

.card-panel {
    padding: 32px;
    background: linear-gradient(90deg, var(--color-amber-100), var(--color-orange-100));
    border-radius: 28px;
}

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

.list-card {
    display: flex;
    gap: 16px;
    padding: 14px;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.list-card__poster {
    flex: 0 0 96px;
    height: 128px;
    overflow: hidden;
    background: var(--color-amber-100);
    border-radius: 12px;
}

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

.list-card__body h3 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: 17px;
}

.list-card__body p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--color-gray-600);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-card__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-rank {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 26px;
    height: 26px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: var(--color-amber-600);
    border-radius: 8px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600));
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.category-tile::before {
    position: absolute;
    top: -48px;
    right: -48px;
    width: 150px;
    height: 150px;
    content: "";
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.category-tile span {
    position: relative;
    display: inline-flex;
    padding: 7px 12px;
    color: #fff7ed;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 220px));
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 28px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

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

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

.result-count {
    margin: 0 0 18px;
    color: var(--color-gray-600);
    font-weight: 700;
}

.result-count strong {
    color: var(--color-amber-700);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.player-card {
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.16));
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber-600), var(--color-orange-600));
    border-radius: 999px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.video-shell.is-playing .play-overlay {
    display: none;
}

.player-message {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.detail-card,
.sidebar-card {
    padding: 26px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.detail-card h1 {
    margin: 0 0 18px;
    color: var(--color-gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.detail-meta span,
.detail-tags span {
    padding: 7px 12px;
    color: var(--color-amber-700);
    background: var(--color-amber-100);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.detail-section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}

.detail-section h2 {
    margin: 0 0 12px;
    color: var(--color-gray-900);
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: var(--color-gray-700);
}

.review-box {
    padding: 18px;
    background: var(--color-amber-50);
    border-left: 5px solid var(--color-amber-500);
    border-radius: 14px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.sidebar-card {
    position: sticky;
    top: 92px;
}

.sidebar-card h2 {
    margin: 0 0 18px;
    color: var(--color-gray-900);
}

.sidebar-stack {
    display: grid;
    gap: 14px;
}

.breadcrumb {
    margin-bottom: 16px;
    color: var(--color-gray-500);
    font-size: 14px;
}

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

.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

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

.no-results {
    display: none;
    padding: 36px;
    color: var(--color-gray-600);
    text-align: center;
    background: white;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    color: var(--color-gray-300);
    background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-logo {
    margin-bottom: 12px;
    color: white;
    font-size: 22px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: white;
}

.site-footer p {
    color: #9ca3af;
}

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

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-email {
    color: var(--color-amber-500) !important;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 22px 16px;
    color: #9ca3af;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

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

    .sidebar-card {
        position: static;
    }
}

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

    .hero,
    .hero__content {
        min-height: 620px;
    }

    .hero__content {
        padding-bottom: 72px;
    }

    .hero__control {
        display: none;
    }

    .grid--3,
    .grid--4,
    .grid--5,
    .grid--6,
    .category-grid,
    .list-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .movie-card__foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .grid--4,
    .grid--5,
    .grid--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card__body {
        padding: 12px;
    }

    .movie-card__desc,
    .movie-card__foot span:first-child {
        display: none;
    }

    .list-card {
        flex-direction: column;
    }

    .list-card__poster {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
