* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 46%, #fff7ed 100%);
}

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: 80;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.14);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.small-mark {
    width: 34px;
    height: 34px;
    box-shadow: none;
}

.logo-mark-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-text {
    font-size: 24px;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #ea580c);
    background-clip: text;
    -webkit-background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow: hidden;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    border-radius: 99px;
    background: #d97706;
    transition: right 0.25s ease;
}

.nav-link:hover {
    color: #d97706;
}

.nav-link:hover::after {
    right: 0;
}

.nav-link-muted {
    color: #6b7280;
    font-weight: 600;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input-wrap input,
.filter-select-wrap select {
    border: 2px solid #fde68a;
    outline: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 42px 10px 18px;
}

.header-search button {
    width: 34px;
    height: 34px;
    margin-left: -46px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input-wrap input:focus,
.filter-select-wrap select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.18);
    color: #92400e;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 0.94);
    padding: 16px;
}

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

.mobile-search {
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 16px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    padding: 10px 16px;
    font-weight: 800;
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #fffbeb;
    color: #d97706;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #451a03, #9a3412);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 720px;
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1.05;
    margin: 16px 0 22px;
    text-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    margin: 0 0 34px;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    max-width: 680px;
}

.hero-button,
.cta-inner a,
.detail-category-link,
.hot-entry a,
.dark-recommend-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    font-weight: 900;
    padding: 14px 28px;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-button:hover,
.cta-inner a:hover,
.detail-category-link:hover,
.hot-entry a:hover,
.dark-recommend-card a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 42px rgba(245, 158, 11, 0.36);
    filter: saturate(1.08);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

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

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

.content-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-heading,
.detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2,
.center-heading h2,
.page-hero h1,
.detail-content-card h1 {
    margin: 0;
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading h2,
.center-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    font-weight: 850;
}

.section-more span {
    font-size: 22px;
}

.center-heading {
    text-align: center;
    margin-bottom: 36px;
}

.center-heading p {
    margin: 12px auto 0;
    color: #6b7280;
    max-width: 680px;
    line-height: 1.8;
}

.light-heading h2,
.light-heading p {
    color: #ffffff;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.movie-link,
.category-overview-card,
.side-card,
.detail-content-card,
.player-card,
.rank-item {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.12);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-link {
    display: block;
    height: 100%;
}

.movie-link:hover,
.category-overview-card:hover,
.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(146, 64, 14, 0.2);
}

.poster-wrap {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #fbbf24, #9a3412 55%, #111827);
}

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

.movie-link:hover .poster-wrap img,
.rank-link:hover .poster-wrap img {
    transform: scale(1.08);
}

.image-missing {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-link:hover .poster-shade,
.rank-link:hover .poster-shade {
    opacity: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    padding: 6px 12px;
}

.poster-pill {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
}

.hero-pill {
    background: #f59e0b;
    padding: 8px 16px;
}

.card-body {
    display: block;
    padding: 18px;
}

.movie-card strong,
.rank-content strong,
.side-card strong,
.dark-recommend-card h3 {
    display: block;
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
}

.movie-card em,
.rank-content em,
.large-card-content em,
.horizontal-content em {
    display: -webkit-box;
    margin-top: 8px;
    color: #6b7280;
    font-style: normal;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
}

.large-poster {
    height: 340px;
}

.large-card-content {
    position: absolute;
    inset: auto 0 0 0;
    display: block;
    padding: 28px;
    color: #ffffff;
}

.movie-card-large .movie-link {
    position: relative;
}

.large-card-content strong {
    color: #ffffff;
    font-size: 26px;
    margin-top: 12px;
}

.large-card-content em,
.light-meta {
    color: rgba(255, 255, 255, 0.82);
}

.horizontal-link,
.rank-link {
    display: flex;
    gap: 18px;
    align-items: stretch;
    height: 100%;
}

.horizontal-poster {
    width: 190px;
    height: 140px;
    flex: 0 0 190px;
}

.horizontal-content,
.rank-content {
    flex: 1;
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.warm-band {
    background: linear-gradient(90deg, #fef3c7, #ffedd5);
}

.white-band {
    background: rgba(255, 255, 255, 0.78);
}

.rail-shell {
    position: relative;
}

.movie-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 48px 14px;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-item {
    width: 320px;
    flex: 0 0 320px;
}

.rail-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rail-btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.rail-left {
    left: 0;
}

.rail-right {
    right: 0;
}

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

.category-block,
.category-overview-main {
    display: flex;
    min-height: 152px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(146, 64, 14, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-block:hover,
.category-overview-main:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 44px rgba(146, 64, 14, 0.28);
}

.category-block strong,
.category-overview-main strong {
    font-size: 22px;
    font-weight: 950;
}

.category-block span,
.category-overview-main span {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.accent-one { background: linear-gradient(135deg, #f59e0b, #f97316); }
.accent-two { background: linear-gradient(135deg, #fb923c, #ef4444); }
.accent-three { background: linear-gradient(135deg, #facc15, #d97706); }
.accent-four { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.accent-five { background: linear-gradient(135deg, #a855f7, #f97316); }
.accent-six { background: linear-gradient(135deg, #64748b, #f59e0b); }
.accent-seven { background: linear-gradient(135deg, #dc2626, #ea580c); }
.accent-eight { background: linear-gradient(135deg, #14b8a6, #f59e0b); }
.accent-nine { background: linear-gradient(135deg, #6366f1, #f97316); }
.accent-ten { background: linear-gradient(135deg, #0f172a, #d97706); }

.dark-band {
    background: linear-gradient(135deg, #78350f, #7c2d12 58%, #431407);
}

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

.dark-recommend-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.dark-recommend-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.recommend-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.14);
    font-size: 24px;
    margin-bottom: 18px;
}

.dark-recommend-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 12px;
}

.dark-recommend-card p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    min-height: 86px;
}

.dark-recommend-card a {
    margin-top: 12px;
    padding: 11px 20px;
    box-shadow: none;
}

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

.cta-band {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    text-align: center;
    padding: 72px 0;
}

.cta-inner h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.cta-inner p {
    margin: 18px auto 30px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.cta-inner a {
    background: #ffffff;
    color: #c2410c;
    box-shadow: 0 18px 32px rgba(124, 45, 18, 0.2);
}

.page-hero {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    padding: 60px 0 68px;
}

.page-hero-inner {
    display: grid;
    gap: 16px;
}

.crumb-back {
    display: inline-flex;
    width: max-content;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 850;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 56px);
}

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

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

.category-overview-card {
    padding: 0;
    background: #ffffff;
}

.category-samples {
    display: grid;
    gap: 10px;
    padding: 18px 22px 22px;
    background: rgba(255, 255, 255, 0.94);
}

.category-samples a {
    color: #374151;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-samples a:hover {
    color: #d97706;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
}

.filter-input-wrap,
.filter-select-wrap {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 850;
}

.filter-input-wrap input,
.filter-select-wrap select {
    width: 100%;
    padding: 12px 16px;
}

.tag-filter-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-filter-row button {
    border: 0;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.tag-filter-row button:hover,
.tag-filter-row button.is-active {
    color: #ffffff;
    background: #f59e0b;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

.rank-item {
    background: #ffffff;
}

.rank-link {
    align-items: center;
    padding: 14px;
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    font-weight: 950;
    font-size: 18px;
}

.rank-poster {
    width: 160px;
    height: 112px;
    flex: 0 0 160px;
    border-radius: 16px;
}

.detail-page-shell {
    padding: 36px 0 0;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #6b7280;
    font-weight: 760;
}

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

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.28);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    font-size: 36px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    padding-left: 6px;
}

.detail-content-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-title-row {
    align-items: flex-start;
    margin-bottom: 18px;
}

.detail-content-card h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-top: 14px;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.detail-meta-list div {
    border-radius: 16px;
    background: #fffbeb;
    padding: 14px;
}

.detail-meta-list dt {
    color: #92400e;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 6px;
}

.detail-meta-list dd {
    margin: 0;
    color: #374151;
    font-weight: 800;
}

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

.detail-tags span {
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
}

.article-text {
    color: #374151;
    font-size: 16px;
    line-height: 2;
}

.article-text p {
    margin: 0 0 18px;
}

.detail-side {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 20px;
}

.side-card {
    padding: 18px;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.cover-card div {
    margin-top: 14px;
}

.cover-card span {
    color: #6b7280;
    display: block;
    margin-top: 6px;
}

.hot-entry h2 {
    margin: 0 0 8px;
    color: #111827;
}

.hot-entry p {
    color: #6b7280;
    line-height: 1.8;
}

.hot-entry a {
    width: 100%;
}

.related-section {
    padding-top: 48px;
}

.site-footer {
    background: linear-gradient(180deg, #78350f, #451a03);
    color: #fffbeb;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.2fr;
    gap: 40px;
    padding: 44px 0;
}

.footer-brand p {
    color: #fde68a;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #fbbf24;
    font-size: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

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

.footer-links a {
    color: #fde68a;
    font-size: 14px;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 18px;
    color: #fcd34d;
    border-top: 1px solid rgba(252, 211, 77, 0.14);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.32);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

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

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

    .header-search {
        margin-left: auto;
    }

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

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

    .detail-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .header-inner {
        gap: 12px;
    }

    .logo-text {
        font-size: 20px;
    }

    .header-search {
        display: none;
    }

    .home-hero {
        height: 520px;
    }

    .hero-content {
        max-width: none;
        padding-top: 48px;
    }

    .hero-content p {
        font-size: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .section-heading,
    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .two-col,
    .three-col,
    .four-col,
    .category-grid,
    .category-overview-grid,
    .dark-recommend-grid,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .horizontal-link,
    .rank-link {
        gap: 14px;
    }

    .horizontal-poster,
    .rank-poster {
        width: 126px;
        height: 104px;
        flex-basis: 126px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

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

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

@media (max-width: 480px) {
    .poster-wrap {
        height: 190px;
    }

    .movie-rail {
        padding-left: 0;
        padding-right: 0;
    }

    .rail-btn {
        display: none;
    }

    .rail-item {
        width: 280px;
        flex-basis: 280px;
    }

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

    .play-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
