* {
    box-sizing: border-box;
}

:root {
    --ink: #111111;
    --muted: #5f6368;
    --soft: #8a8d91;
    --line: #e7e7e7;
    --paper: #ffffff;
    --wash: #fafafa;
    --accent: #e95f35;
    --accent-dark: #c94720;
    --content: 1100px;
    --reading: 760px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0 0 104px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Aptos Display", Aptos, "Segoe UI", "Helvetica Neue",
        Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

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

.site-header {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
}

.header-main,
.site-nav-shell,
.page-shell {
    width: min(var(--content), 92%);
    margin-inline: auto;
}

.header-main {
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 54px;
    height: 42px;
    margin-right: 5px;
    object-fit: contain;
}

.header-search {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    overflow: visible;
    background: white;
}

.search-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.search-suggestions a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
    border-bottom: 1px solid #ececec;
}

.search-suggestions a:last-child {
    border-bottom: 0;
}

.search-suggestions a:hover,
.search-suggestions a:focus {
    background: #f6f6f6;
}

.search-suggestions span,
.search-empty {
    color: var(--muted);
    font-size: 14px;
}

.search-empty {
    padding: 14px;
}

.header-search:focus-within {
    border-color: #767676;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .07);
}

.header-search input {
    min-width: 0;
    flex: 1;
    padding: 11px 14px;
    border: 0;
    outline: 0;
    font: inherit;
}

.header-search button {
    min-width: 48px;
    border: 0;
    background: var(--ink);
    color: white;
    cursor: pointer;
    font-size: 17px;
}

.site-nav-shell {
    position: relative;
    display: flex;
    align-items: stretch;
}

.site-nav {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0 clamp(16px, 2.2vw, 30px);
    min-height: 45px;
    align-items: flex-end;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    white-space: nowrap;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.nav-scroll-control {
    position: relative;
    flex: 0 0 42px;
    border: 0;
    color: #303030;
    cursor: pointer;
    font: inherit;
    font-size: 25px;
    line-height: 1;
}

.nav-scroll-previous {
    padding: 0 12px 10px 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), white 30%);
}

.nav-scroll-next {
    padding: 0 0 10px 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), white 30%);
}

.nav-scroll-control[hidden] {
    display: none;
}

.menu-toggle {
    display: none;
}

.site-nav a {
    position: relative;
    padding: 0 0 12px;
    color: #303030;
    font-weight: 600;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    height: 2px;
    background: var(--ink);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.page-shell {
    padding-block: 34px 64px;
}

.reading-shell {
    width: min(var(--reading), 92%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-heading {
    margin-bottom: 34px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

h2 {
    font-size: 21px;
    letter-spacing: -.015em;
}

.subtitle,
.song-artist,
.artist,
.count,
.english,
.navigation-label,
.navigation-artist {
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2 {
    margin: 0;
}

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

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

.home-song-column .directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
    align-items: start;
    gap: 42px;
}

.home-sidebar {
    display: grid;
    gap: 24px;
}

.sidebar-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
}

.sidebar-panel h2 {
    margin: 0;
    font-size: 21px;
}

.sidebar-panel > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-newsletter {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sidebar-newsletter > label:first-child {
    font-weight: 700;
}

.sidebar-newsletter > input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    font: inherit;
}

.sidebar-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-consent input {
    margin-top: 3px;
}

.sidebar-newsletter button {
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: var(--ink);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-newsletter .form-status:empty {
    display: none;
}

.home-ad-slot {
    display: grid;
    min-height: 110px;
    place-items: center;
    border: 1px dashed #c9c9c9;
    background: var(--wash);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.catalog-primary-ad,
.catalog-sidebar-ad {
    min-height: 200px;
}

.catalog-primary-ad {
    margin-bottom: 28px;
}

.song-page-newsletter {
    display: none;
}

.card {
    position: relative;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.pagination-step:last-child {
    text-align: right;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.pagination-pages a,
.pagination-pages span {
    display: grid;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.pagination-pages [aria-current="page"] {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.pagination .unavailable {
    color: #aaa;
}

.song-link:hover .song,
.card > a:hover .artist-name,
.directory-link:hover .directory-name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.song,
.artist-name,
.directory-name {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.artist,
.song-artist,
.count {
    margin-top: 6px;
    font-size: 14px;
}

.artist a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.button {
    display: inline-block;
    margin-top: 9px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0 38px;
}

.alphabet-nav a,
.alphabet-nav span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.alphabet-nav a:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.alphabet-nav .unavailable {
    color: #c0c0c0;
}

.directory-section {
    scroll-margin-top: 20px;
    margin-bottom: 38px;
}

.letter-heading {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
    font-size: 25px;
}

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

.directory-link {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.song-page-title {
    margin-bottom: 6px;
    font-size: clamp(28px, 3.6vw, 39px);
}

.song-artist {
    margin-bottom: 28px;
    font-size: 16px;
}

.song-artist a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.lyrics {
    margin-top: 34px;
}

.line {
    margin-bottom: 30px;
    line-height: 1.15;
}

.chinese,
.pinyin,
.english {
    font-family: inherit;
}

.chinese {
    color: var(--ink);
    font-size: 18px;
    font-weight: 650;
}

.pinyin {
    margin-top: 5px;
    color: var(--ink);
    font-size: 15px;
}

.english {
    margin-top: 5px;
    font-size: 15px;
}

.youtube-panel {
    width: min(680px, 100%);
    margin: 0 auto 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--wash);
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111;
}

.youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-fallback {
    padding: 25px;
}

.youtube-fallback h2 {
    margin-bottom: 7px;
}

.youtube-fallback p {
    margin-bottom: 17px;
    color: var(--muted);
}

.youtube-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background: #ff0033;
    color: white;
    font-weight: 700;
}

.related {
    margin-top: 48px;
}

.related-card {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.related-card a:hover {
    text-decoration: underline;
}

.song-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.song-navigation a {
    display: block;
}

.song-navigation .next {
    text-align: right;
}

.navigation-label,
.navigation-artist {
    font-size: 13px;
}

.navigation-title {
    margin-top: 4px;
    font-weight: 700;
}

.ad-slot {
    display: grid;
    width: 100%;
    min-height: 100px;
    place-items: center;
    padding: 14px;
    border: 1px dashed #c9c9c9;
    background: var(--wash);
    color: var(--muted);
    text-align: center;
}

.ad-slot-title {
    color: #444;
    font-weight: 700;
}

.ad-slot-note {
    margin-top: 4px;
    font-size: 12px;
}

.ad-top {
    margin: 0 0 30px;
    min-height: 200px;
}

.affiliate-mid {
    min-height: 120px;
    margin: 34px 0;
}

.shopee-affiliate {
    border: 1px solid #f0d9d3;
    border-radius: 7px;
    background: #fff8f5;
}

.affiliate-placeholder {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 18px;
    border: 1px dashed #c9c9c9;
    background: var(--wash);
    color: var(--muted);
    text-align: center;
}

.shopee-product-card {
    display: grid;
    color: var(--ink);
}

.shopee-product-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    object-fit: cover;
}

.shopee-product-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 14px;
}

.shopee-product-name {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.35;
}

.shopee-product-price {
    margin-top: 7px;
    color: #ee4d2d;
    font-size: 21px;
    font-weight: 750;
}

.shopee-latest-price {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.shopee-product-card.compact {
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px;
}

.shopee-product-card.compact .shopee-product-copy {
    margin-top: 0;
}

.affiliate-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.affiliate-title {
    margin-top: 5px;
    font-size: 19px;
    font-weight: 750;
}

.affiliate-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.affiliate-button {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 5px;
    background: #ee4d2d;
    color: white;
    font-weight: 700;
}

.sticky-ad {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 148px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -3px 15px rgba(0, 0, 0, .05);
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.site-footer a {
    color: var(--ink);
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
}

.policy-content {
    width: min(720px, 100%);
}

.policy-content h2 {
    margin-top: 32px;
}

.policy-content p,
.policy-content li {
    color: #3f3f3f;
    line-height: 1.7;
}

.policy-notice {
    margin: 28px 0;
    padding: 20px;
    border-left: 3px solid var(--accent);
    background: var(--wash);
}

.contact-email {
    font-weight: 700;
}

.request-form {
    display: grid;
    width: min(760px, 100%);
    gap: 30px;
    margin-top: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.form-row label {
    font-weight: 700;
}

.request-form input {
    width: 100%;
    min-height: 0;
    padding: 11px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    font: inherit;
}

.newsletter-form {
    margin-top: 28px;
}

.consent-label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    margin-left: 128px;
    font-weight: 400 !important;
}

.request-form .consent-label input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.request-form button {
    width: fit-content;
    padding: 11px 18px;
    border: 0;
    border-radius: 5px;
    background: var(--ink);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.request-form > button {
    margin-left: 128px;
}

.form-status {
    min-height: 24px;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 650;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.admin-page {
    padding-bottom: 40px;
    background: var(--wash);
}

.admin-header,
.admin-shell {
    width: min(var(--content), 92%);
    margin-inline: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    color: var(--muted);
}

.admin-login {
    width: min(520px, 100%);
    margin: 60px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.admin-login h1,
.admin-dashboard h1,
.admin-dashboard h2 {
    margin: 0;
}

.admin-login form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.admin-login input,
.admin-login button,
.admin-actions button,
.admin-section button {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.admin-login button,
.admin-actions button,
.admin-section button {
    cursor: pointer;
    font-weight: 700;
}

.admin-login button {
    border-color: var(--ink);
    background: var(--ink);
    color: white;
}

.admin-dashboard {
    padding: 34px 0 70px;
}

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

.admin-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    gap: 16px;
    margin: 28px 0;
}

.admin-summary article,
.admin-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.admin-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.admin-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-filter-group select,
.admin-filter-group input {
    min-height: 42px;
    padding: 8px 30px 8px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.admin-filter-group input {
    width: min(240px, 32vw);
    padding-right: 10px;
}

.admin-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eeeeee;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-badge[data-status="Published"],
.admin-status-badge[data-status="Completed"] {
    background: #e3f4e8;
    color: #176b36;
}

.admin-status-badge[data-status="Pending manual approval"] {
    background: #fff2cb;
    color: #765600;
}

.admin-status-badge[data-status="No results found"],
.admin-status-badge[data-status="Error after publish"] {
    background: #fde7e4;
    color: #9b2c21;
}

.admin-summary article {
    display: grid;
    padding: 18px;
}

.admin-summary strong {
    font-size: 28px;
}

.admin-summary span {
    color: var(--muted);
}

.admin-section {
    margin-top: 24px;
    padding: 22px;
}

.admin-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.admin-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table-wrap th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 980px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width: 760px) {
    .site-nav-shell {
        display: contents;
    }

    .nav-scroll-control {
        display: none;
    }

    .admin-header {
        display: grid;
        justify-content: start;
        gap: 4px;
        padding: 14px 0;
    }

    .admin-header .brand {
        margin-left: 0;
    }

    .admin-login {
        margin: 26px auto;
        padding: 20px;
    }

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

    .admin-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-section {
        padding: 14px;
    }

    .admin-filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-filter-group input {
        width: min(100%, 260px);
    }

    .header-main {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .brand {
        margin-left: 32px;
        font-size: 20px;
    }

    .menu-toggle {
        position: absolute;
        top: 28px;
        left: 4%;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        min-height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .menu-toggle > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .menu-toggle-icon {
        display: grid;
        gap: 4px;
        width: 20px;
    }

    .menu-toggle-icon span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .18s ease, opacity .18s ease;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: none;
        width: 100%;
        height: 100dvh;
        padding: 76px 6% 28px;
        overflow-y: auto;
        border: 0;
        background: white;
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 0;
    }

    .site-nav.is-open::before {
        margin: 0 0 18px 38px;
        content: "Mandopoplyrics";
        font-size: 22px;
        font-weight: 750;
        letter-spacing: -.02em;
    }

    .site-nav a {
        padding: 15px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
        white-space: normal;
    }

    .site-nav a::after {
        bottom: 7px;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .menu-toggle {
        position: fixed;
        z-index: 101;
    }

    .page-shell {
        padding-top: 25px;
    }

    .grid,
    .home-song-column .grid,
    .directory-list,
    .song-navigation {
        grid-template-columns: 1fr;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pagination-pages {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .home-layout {
        display: flex;
        flex-direction: column;
    }

    .home-sidebar {
        display: contents;
    }

    .newsletter-panel {
        order: 3;
        flex: 0 0 auto;
        align-self: flex-start;
        width: 100%;
        min-height: 0;
        height: fit-content;
        display: block;
        padding: 14px;
    }

    .newsletter-panel h2 {
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
    }

    .newsletter-panel > p {
        display: block;
        margin: 4px 0 0;
        font-size: 10px;
        line-height: 1.25;
    }

    .newsletter-panel .sidebar-newsletter {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        margin-top: 9px;
        gap: 6px;
    }

    .newsletter-panel .sidebar-newsletter > label[for$="newsletter-email"] {
        font-size: 12px;
        white-space: nowrap;
    }

    .newsletter-panel .sidebar-newsletter > input {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .newsletter-panel .sidebar-consent,
    .newsletter-panel .sidebar-newsletter button,
    .newsletter-panel .form-status {
        grid-column: 1 / -1;
    }

    .newsletter-panel .sidebar-consent {
        gap: 6px;
        font-size: 10px;
        line-height: 1.25;
    }

    .newsletter-panel .sidebar-consent input {
        width: 15px;
        height: 15px;
    }

    .newsletter-panel .sidebar-newsletter button {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .home-song-column {
        order: 2;
        width: 100%;
    }

    .catalog-sidebar-ad {
        display: grid;
        order: 1;
        width: 100%;
        min-height: 210px;
    }

    .catalog-primary-ad {
        display: none;
    }

    .product-panel {
        order: 4;
        width: 100%;
    }

    .affiliate-placeholder {
        display: grid;
    }

    .song-page-newsletter {
        display: block;
        width: 100%;
        margin-top: 36px;
    }

    .shopee-product-card,
    .shopee-product-card.compact {
        grid-template-columns: minmax(96px, 40%) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .shopee-product-card.compact {
        padding: 12px;
    }

    .shopee-product-card.compact img {
        max-width: none;
    }

    .shopee-product-card .shopee-product-copy {
        margin-top: 0;
    }

    .shopee-product-card .affiliate-label {
        font-size: 8px;
    }

    .shopee-product-card .shopee-product-name {
        font-size: 14px;
    }

    .shopee-product-card .shopee-product-price {
        margin-top: 4px;
        font-size: 17px;
    }

    .shopee-product-card .affiliate-note {
        font-size: 10px;
        line-height: 1.3;
    }

    .shopee-product-card .affiliate-button {
        margin-top: 7px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .song-navigation .next {
        text-align: left;
    }

    .sticky-ad {
        min-height: 64px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .consent-label {
        margin-left: 0;
    }

    .request-form > button {
        margin-left: 0;
    }
}
