:root {
    --color-primary: #f97316;
    --color-primary-dark: #ef4444;
    --color-secondary: #ec4899;
    --color-dark: #111827;
    --color-soft: #fff7ed;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --shadow-card: 0 20px 45px rgba(17, 24, 39, 0.12);
    --shadow-hover: 0 26px 55px rgba(249, 115, 22, 0.2);
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #f9fafb 100%);
    color: var(--color-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

main {
    min-height: 65vh;
}

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

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-secondary));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
    color: #fef08a;
    transform: translateY(-1px);
}

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

.header-search input {
    width: 210px;
    height: 40px;
    padding: 0 44px 0 18px;
    color: #ffffff;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: width 0.25s ease, background 0.25s ease;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search input:focus {
    width: 290px;
    background: rgba(255, 255, 255, 0.24);
}

.header-search button {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    color: #ffffff;
    font-size: 21px;
    background: transparent;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav,
.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
}

.mobile-cat-link,
.mobile-nav .nav-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.mobile-search input,
.mobile-search button {
    height: 42px;
    border: 0;
    border-radius: 14px;
}

.mobile-search input {
    flex: 1;
    padding: 0 14px;
    color: #111827;
}

.mobile-search button {
    padding: 0 18px;
    color: #ffffff;
    background: #111827;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide::after,
.detail-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.32), transparent 26%),
        radial-gradient(circle at 78% 66%, rgba(236, 72, 153, 0.18), transparent 24%);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 40px));
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.35);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

.home-search-panel {
    position: relative;
    z-index: 8;
    max-width: 1180px;
    margin: -58px auto 0;
    padding: 0 24px;
}

.home-search-inner,
.category-toolbar,
.prose-card,
.side-card,
.player-section,
.detail-article,
.search-page-panel {
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.home-search-inner {
    padding: 26px;
}

.home-search-inner h2,
.home-search-inner p {
    margin: 0 0 10px;
}

.home-search-inner p {
    color: var(--color-muted);
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.filter-row input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
}

.filter-row input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-row button {
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 700;
    background: var(--color-dark);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px 0;
}

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

.section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-more {
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.18)),
        #111827;
}

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

.movie-card:hover .poster-image,
.category-overview-card:hover .category-thumb-strip span,
.ranking-card:hover .poster-image {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72) 100%);
}

.play-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.42);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-category,
.poster-rating {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.92);
}

.poster-category {
    left: 12px;
    bottom: 12px;
}

.poster-rating {
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
}

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

.movie-card-body h3,
.horizontal-info h3,
.compact-info h3,
.ranking-card-body h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card-body h3 a:hover,
.horizontal-info h3 a:hover,
.compact-info h3 a:hover,
.ranking-card-body h2 a:hover {
    color: var(--color-primary-dark);
}

.movie-card-body p,
.horizontal-info p,
.ranking-card-body p {
    display: -webkit-box;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta span {
    color: #4b5563;
    background: #f3f4f6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 16px;
    padding: 12px;
}

.poster-small {
    border-radius: 18px;
}

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

.category-pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.ranking-panel {
    align-self: start;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(145deg, #111827, #4c1d95 55%, #9f1239);
    box-shadow: var(--shadow-card);
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.ranking-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-num {
    color: #fed7aa;
    font-weight: 900;
}

.ranking-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.ranking-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.ranking-more {
    display: inline-flex;
    margin-top: 18px;
    color: #fed7aa;
}

.editor-section {
    margin-top: 58px;
    padding-bottom: 44px;
    border-radius: 34px;
    background: linear-gradient(145deg, #fff7ed, #fff1f2);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
}

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

.movie-card-compact {
    position: relative;
}

.poster-compact {
    aspect-ratio: 16 / 10;
}

.compact-info {
    padding: 14px;
}

.compact-info span {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
    min-height: 190px;
    padding: 24px;
}

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

.category-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 24px;
    background: #fff7ed;
}

.category-card strong,
.category-overview-body h2 {
    display: block;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-card em {
    display: inline-flex;
    margin: 8px 0;
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 800;
}

.category-card p,
.category-overview-body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #7f1d1d 52%, #f97316);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.page-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.category-overview-card {
    display: block;
}

.category-thumb-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    background: #111827;
}

.category-thumb-strip span {
    background-position: center;
    background-size: cover;
    transition: transform 0.45s ease;
}

.category-overview-body {
    padding: 22px;
}

.category-toolbar-section {
    padding-top: 32px;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px;
}

.category-toolbar strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.category-toolbar span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
}

.compact-filter {
    width: min(580px, 100%);
    margin-top: 0;
}

.detail-hero {
    min-height: 620px;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.detail-hero-content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.detail-cover {
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-one-line {
    max-width: 840px;
    margin: 18px 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta span {
    color: #ffffff;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.16);
}

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

.player-section {
    overflow: hidden;
}

.player-heading {
    padding: 22px 24px;
}

.player-heading h2,
.detail-article h2,
.side-card h2,
.prose-card h2,
.sitemap-section h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.player-heading p {
    margin: 0;
    color: var(--color-muted);
}

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

.video-player {
    width: 100%;
    height: 100%;
    background: #020617;
}

.video-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.72));
}

.video-start span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 34px;
    background: var(--color-primary);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.4);
}

.video-start strong {
    font-size: 18px;
}

.video-start.is-hidden {
    display: none;
}

.video-message {
    position: absolute;
    left: 16px;
    bottom: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.detail-article,
.prose-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-article p,
.prose-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 24px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--color-muted);
}

.side-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.ranking-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #111827;
}

.ranking-index {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: var(--color-primary-dark);
}

.ranking-card-body {
    padding: 8px 8px 8px 0;
}

.search-page-panel {
    padding: 24px;
}

.search-page-form {
    display: flex;
    gap: 12px;
}

.search-page-form input,
.search-page-form button {
    height: 54px;
    border-radius: 18px;
}

.search-page-form input {
    flex: 1;
    padding: 0 18px;
    border: 1px solid #fed7aa;
    outline: none;
}

.search-page-form button {
    padding: 0 26px;
    border: 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.search-summary {
    margin-top: 18px;
    color: var(--color-muted);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.search-result-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
}

.search-result-card a {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 14px;
    min-height: 150px;
}

.search-result-poster {
    background-position: center;
    background-size: cover;
    background-color: #111827;
}

.search-result-info {
    min-width: 0;
    padding: 14px 14px 14px 0;
}

.search-result-info h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.search-result-info p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sitemap-section {
    padding-bottom: 70px;
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.sitemap-list a {
    display: block;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 14px;
    color: #374151;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.sitemap-list a:hover {
    color: var(--color-primary-dark);
}

.site-footer {
    margin-top: 72px;
    color: rgba(255, 255, 255, 0.84);
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    line-height: 1.75;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

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

[data-search-card].is-hidden {
    display: none;
}

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

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

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

    .split-section,
    .detail-main-grid,
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-text {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
    }

    .hero-content p,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

    .home-search-panel {
        margin-top: -32px;
        padding: 0 16px;
    }

    .content-section {
        padding: 42px 16px 0;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .search-results,
    .related-grid,
    .compact-grid,
    .sitemap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-horizontal,
    .ranking-card {
        grid-template-columns: 104px 1fr;
    }

    .category-toolbar,
    .filter-row,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-filter {
        width: 100%;
    }

    .detail-hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-cover {
        width: min(260px, 100%);
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .search-results,
    .related-grid,
    .compact-grid,
    .sitemap-list {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .ranking-card,
    .search-result-card a {
        grid-template-columns: 96px 1fr;
    }

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