:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --teal-500: #14b8a6;
    --cyan-500: #06b6d4;
    --amber-500: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 65px rgba(15, 23, 42, 0.18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, rgba(236, 253, 245, 0.55) 48%, rgba(204, 251, 241, 0.45) 100%);
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

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

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

button,
select,
input {
    border: 0;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, #34d399, var(--teal-500));
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
    transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 21px;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(90deg, var(--emerald-600), #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    color: var(--gray-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.desktop-nav a {
    padding: 10px 14px;
    color: var(--gray-700);
    border-radius: 10px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--emerald-600);
    background: var(--emerald-50);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
}

.nav-search input {
    width: 220px;
    padding: 8px 10px 8px 16px;
    color: var(--gray-700);
    outline: none;
    background: transparent;
}

.nav-search button,
.search-page-form button {
    color: var(--white);
    background: var(--emerald-500);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 12px;
    font-size: 24px;
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a,
.mobile-panel button {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--emerald-50);
    color: var(--emerald-600);
    font-weight: 700;
}

.mobile-panel form {
    display: grid;
    gap: 10px;
}

.mobile-panel input {
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.1s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 660px;
    color: var(--white);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: #a7f3d0;
    background: rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(167, 243, 208, 0.35);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.36);
}

.btn-ghost {
    color: var(--emerald-700, #047857);
    background: var(--white);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.hero .btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 36px;
    background: var(--emerald-400, #34d399);
}

.search-panel {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.search-panel form,
.search-page-box,
.filter-panel {
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.search-panel label {
    display: block;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 800;
}

.search-panel form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input,
.search-page-form input,
.filter-control input,
.filter-control select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
}

.search-panel input:focus,
.search-page-form input:focus,
.filter-control input:focus,
.filter-control select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.content-section {
    padding: 62px 0 0;
}

.inner-section {
    padding-top: 36px;
}

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

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--emerald-600);
    font-weight: 800;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

.section-action {
    color: var(--emerald-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: var(--shadow-md);
}

.movie-card[hidden] {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100), var(--emerald-50));
}

.movie-cover img,
.horizontal-card img,
.compact-card img,
.category-tile img,
.category-card-cover img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.horizontal-card:hover img,
.compact-card:hover img,
.category-tile:hover img,
.category-card-large:hover img,
.ranking-row:hover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent 58%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.movie-duration,
.movie-play {
    position: absolute;
    z-index: 2;
    color: var(--white);
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.movie-play {
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--emerald-600);
}

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

.movie-meta,
.movie-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-stats {
    margin-top: 10px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    overflow: hidden;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.horizontal-card img {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.horizontal-card span,
.compact-card span {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.horizontal-card strong,
.compact-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.horizontal-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.horizontal-card em,
.compact-card em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.category-tile span {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 5px;
    color: var(--white);
}

.category-tile strong {
    font-size: 20px;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding-bottom: 72px;
}

.rank-box,
.feature-box,
.side-box,
.detail-card,
.player-card,
.category-card-large,
.search-page-box {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.rank-box,
.feature-box {
    padding: 28px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--gray-50);
    transition: background 0.22s ease, transform 0.22s ease;
}

.compact-card:hover {
    background: var(--emerald-50);
    transform: translateX(3px);
}

.compact-card img {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
}

.rank-num {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.feature-box {
    display: grid;
    align-content: center;
    color: var(--white);
    background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, var(--emerald-500), var(--teal-500));
}

.feature-box h2 {
    margin: 0 0 12px;
    font-size: 34px;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.feature-box .btn-primary {
    justify-self: start;
    color: var(--emerald-700, #047857);
    background: var(--white);
}

.page-bg {
    min-height: 70vh;
    background: linear-gradient(135deg, var(--gray-50), rgba(236, 253, 245, 0.6));
}

.page-hero {
    padding: 70px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--emerald-500), var(--teal-500));
}

.page-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -0.035em;
}

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

.category-large-grid {
    display: grid;
    gap: 24px;
    padding-bottom: 72px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    overflow: hidden;
    padding: 18px;
}

.category-card-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
}

.category-card-large h2 {
    margin: 4px 0 10px;
    font-size: 28px;
}

.category-card-large p {
    margin: 0 0 16px;
    color: var(--gray-600);
    line-height: 1.7;
}

.category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr auto auto;
    gap: 14px;
    align-items: end;
    margin-top: -32px;
}

.filter-control label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-count {
    align-self: center;
    color: var(--emerald-600);
    font-weight: 800;
}

.search-page-box {
    margin-top: -32px;
    padding: 24px;
}

.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-summary {
    margin: 14px 0 0;
    color: var(--gray-600);
}

.ranking-list-full {
    display: grid;
    gap: 14px;
    padding-bottom: 72px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 150px 1fr 110px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ranking-no {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
    border-radius: 999px;
    font-weight: 900;
}

.ranking-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-600);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-score {
    text-align: right;
}

.ranking-score strong {
    display: block;
    color: var(--emerald-600);
    font-size: 30px;
}

.ranking-score span {
    color: var(--gray-500);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 24px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--emerald-600);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-bottom: 72px;
}

.detail-main {
    min-width: 0;
}

.player-card {
    overflow: hidden;
    margin-bottom: 22px;
    padding: 0;
    background: #020617;
}

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

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.video-player.is-playing .player-overlay,
.video-player:has(video:not([poster])) .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 4px;
    color: var(--emerald-600);
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    margin: 0;
    padding: 8px 12px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    font-size: 13px;
}

.player-message[hidden] {
    display: none;
}

.detail-card {
    padding: 28px;
}

.detail-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.detail-labels a,
.detail-labels span {
    padding: 6px 10px;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.detail-actions {
    margin: 22px 0;
}

.text-block {
    margin-top: 26px;
}

.text-block h2,
.tag-cloud h2,
.side-box h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.tag-cloud {
    margin-top: 26px;
}

.tag-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 8px 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 999px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.side-box {
    padding: 22px;
}

.rank-list.small .compact-card {
    grid-template-columns: auto 70px 1fr;
}

.gradient-side {
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
}

.gradient-side p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.gradient-side .btn-primary {
    color: var(--emerald-700, #047857);
    background: var(--white);
}

.sitemap-wrap {
    display: grid;
    gap: 24px;
    padding-bottom: 72px;
}

.sitemap-group {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sitemap-group h2 {
    margin: 0 0 16px;
}

.sitemap-group ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-group li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.sitemap-group a {
    overflow: hidden;
    color: var(--gray-700);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sitemap-group a:hover {
    color: var(--emerald-600);
}

.site-footer {
    color: var(--gray-600);
    background: linear-gradient(135deg, var(--gray-50), var(--emerald-50));
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--gray-900);
}

.footer-grid p {
    margin: 12px 0 0;
    line-height: 1.7;
}

.footer-grid a:not(.brand) {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: var(--emerald-600);
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 1100px) {
    .four-col,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .filter-control.wide {
        grid-column: 1 / -1;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-copy {
        max-width: 88%;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel form > div,
    .search-page-form,
    .split-section,
    .category-card-large,
    .ranking-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-score {
        text-align: left;
    }

    .category-card-cover {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .hero {
        height: 520px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .content-section {
        padding-top: 42px;
    }

    .section-head {
        display: block;
    }

    .section-action {
        display: inline-flex;
        margin-top: 12px;
    }

    .three-col,
    .four-col,
    .horizontal-grid,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 120px 1fr;
    }

    .ranking-row {
        gap: 12px;
    }

    .sitemap-group ul {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .rank-box,
    .feature-box,
    .side-box,
    .search-panel form,
    .search-page-box,
    .filter-panel {
        padding: 18px;
    }
}
