:root {
    --color-ink: #171717;
    --color-muted: #6b7280;
    --color-soft: #fef3c7;
    --color-cream: #fff7ed;
    --color-line: rgba(180, 83, 9, 0.16);
    --color-amber: #d97706;
    --color-orange: #ea580c;
    --color-red: #b91c1c;
    --shadow-card: 0 18px 45px rgba(120, 53, 15, 0.13);
    --shadow-soft: 0 12px 35px rgba(120, 53, 15, 0.1);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.24), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(249, 115, 22, 0.20), transparent 28%),
        linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fef2f2 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    color: #fff7ed;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.84), rgba(154, 52, 18, 0.84));
    backdrop-filter: blur(14px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.97), rgba(154, 52, 18, 0.97));
    box-shadow: 0 16px 35px rgba(67, 20, 7, 0.22);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.35);
}

.brand-text {
    font-size: 22px;
    color: #fffbeb;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 247, 237, 0.86);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after,
.nav-link:hover::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: #fde68a;
}

.header-search {
    position: relative;
    width: 270px;
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 1px solid rgba(253, 230, 138, 0.36);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 48px 0 18px;
    border-radius: 999px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(254, 243, 199, 0.74);
}

.header-search input:focus,
.mobile-search input:focus {
    border-color: rgba(253, 230, 138, 0.82);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.16);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 4px;
    background: #fff7ed;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid rgba(253, 230, 138, 0.24);
    background: rgba(120, 53, 15, 0.98);
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
}

.mobile-search button {
    border: 0;
    border-radius: 12px;
    color: #7c2d12;
    background: #fde68a;
    padding: 0 18px;
    font-weight: 700;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 247, 237, 0.86);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active,
.mobile-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.page-main {
    padding-top: 74px;
}

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

.hero-carousel {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 0 0 86px;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.48) 56%, rgba(17, 24, 39, 0.16) 100%),
        linear-gradient(90deg, rgba(120, 53, 15, 0.54), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    max-width: 820px;
    margin-left: max(16px, calc((100vw - var(--container)) / 2));
}

.hero-kicker,
.page-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.18);
    font-size: 14px;
    font-weight: 700;
}

.pill.ghost {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-title {
    max-width: 920px;
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.36);
}

.hero-line {
    max-width: 760px;
    margin: 0 0 14px;
    color: #fde68a;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.hero-summary {
    max-width: 760px;
    color: rgba(255, 247, 237, 0.86);
    font-size: 17px;
    line-height: 1.8;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: rgba(255, 247, 237, 0.78);
    font-weight: 600;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.015);
    filter: saturate(1.08);
    box-shadow: 0 22px 42px rgba(217, 119, 6, 0.34);
}

.btn.secondary {
    color: #92400e;
    background: #fffbeb;
    box-shadow: var(--shadow-soft);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.46);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 6;
    right: 0;
    bottom: 34px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 72px 0;
}

.section.soft {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.62), rgba(255, 247, 237, 0));
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.section-desc {
    max-width: 720px;
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.34);
    box-shadow: var(--shadow-card);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.66), transparent 30%),
        linear-gradient(135deg, #78350f, #ea580c 58%, #fef3c7);
}

.movie-card.large .card-cover,
.movie-card.featured-large .card-cover {
    aspect-ratio: 16 / 9;
}

.card-cover img,
.rank-cover img,
.related-cover img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.card-cover img.image-error,
.rank-cover img.image-error,
.related-cover img.image-error,
.category-preview img.image-error {
    opacity: 0;
}

.movie-card:hover .card-cover img,
.rank-card:hover .rank-cover img,
.related-card:hover .related-cover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 30%, rgba(17, 24, 39, 0.62));
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.9);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

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

.card-badge,
.card-year,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 8px 10px;
    background: rgba(217, 119, 6, 0.94);
}

.card-year {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(7px);
}

.rank-number {
    top: 12px;
    right: 12px;
    min-width: 38px;
    padding: 9px 10px;
    text-align: center;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.card-body {
    padding: 17px;
}

.card-title {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.card-line {
    min-height: 48px;
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.rank-meta,
.detail-meta,
.related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #78716c;
    font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span,
.related-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
}

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

.category-box {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: var(--radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(253, 230, 138, 0.36), transparent 28%),
        linear-gradient(135deg, #78350f, #b45309 54%, #ea580c);
    box-shadow: var(--shadow-card);
}

.category-box::after {
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 138px;
    height: 138px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
}

.category-box h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-box p,
.category-box strong {
    position: relative;
    z-index: 1;
}

.category-box p {
    margin: 0 0 20px;
    color: rgba(255, 247, 237, 0.84);
    line-height: 1.65;
}

.category-box strong {
    font-size: 34px;
    line-height: 1;
}

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

.rank-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.list-rank {
    flex: 0 0 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #f97316);
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    flex: 0 0 168px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.66), transparent 30%),
        linear-gradient(135deg, #78350f, #ea580c 58%, #fef3c7);
}

.rank-info {
    min-width: 0;
    padding: 4px 0;
}

.rank-title {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 76px 0 50px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 15%, rgba(253, 230, 138, 0.34), transparent 30%),
        linear-gradient(135deg, #78350f, #9a3412 48%, #ea580c);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select,
.search-box input {
    height: 46px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 14px;
    outline: none;
    color: #1f2937;
    background: #ffffff;
}

.filter-panel input,
.search-box input {
    padding: 0 16px;
}

.filter-panel select {
    min-width: 150px;
    padding: 0 12px;
}

.result-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    color: #92400e;
    font-weight: 800;
}

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

.player-panel,
.detail-panel,
.side-panel,
.search-box,
.about-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.player-panel {
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 26% 18%, rgba(253, 230, 138, 0.3), transparent 28%),
        linear-gradient(135deg, #111827, #7c2d12 62%, #1f2937);
}

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.player-cover::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
}

.player-cover.is-hidden {
    display: none;
}

.play-circle {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transform: translateZ(0);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-circle {
    transform: scale(1.06);
}

.detail-copy {
    padding: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.detail-line {
    margin: 18px 0 0;
    color: #92400e;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 800;
}

.detail-section {
    padding: 26px;
    border-top: 1px solid var(--color-line);
}

.detail-section h2,
.side-panel h2,
.about-panel h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 900;
}

.detail-section p,
.about-panel p,
.about-panel li {
    margin: 0;
    color: #4b5563;
    line-height: 1.85;
}

.detail-section p + p,
.about-panel p + p {
    margin-top: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag {
    padding: 8px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    font-size: 13px;
    font-weight: 800;
}

.side-panel {
    padding: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 247, 237, 0.78);
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.related-cover {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.66), transparent 30%),
        linear-gradient(135deg, #78350f, #ea580c 58%, #fef3c7);
}

.related-info h3 {
    margin: 0 0 7px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.related-info p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-box {
    padding: 22px;
    margin-bottom: 28px;
}

.search-form-large {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
}

.search-form-large button {
    min-width: 132px;
    border: 0;
}

.search-status {
    margin: 14px 0 0;
    color: #92400e;
    font-weight: 800;
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed rgba(217, 119, 6, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.64);
}

.about-panel {
    padding: 30px;
}

.about-panel ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.site-footer {
    margin-top: 70px;
    color: rgba(255, 247, 237, 0.82);
    background: linear-gradient(135deg, #78350f, #9a3412);
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    padding: 34px 0;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
}

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

    .mobile-toggle {
        display: block;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .page-main {
        padding-top: 66px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 72vh;
    }

    .hero-slide {
        padding-bottom: 70px;
    }

    .hero-content {
        width: min(100% - 32px, var(--container));
        margin: 0 auto;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .section-head .btn {
        margin-top: 18px;
    }

    .grid.cards,
    .grid.featured,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-panel,
    .search-form-large {
        grid-template-columns: 1fr;
    }

    .rank-card {
        gap: 12px;
    }

    .rank-cover {
        flex-basis: 132px;
    }

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

@media (max-width: 520px) {
    .grid.cards,
    .grid.featured,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .card-cover {
        aspect-ratio: 16 / 9;
    }

    .rank-card {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .rank-cover {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .related-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
