* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: #f7f7f7;
    color: #111;
}

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

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

button,
input {
    font-family: inherit;
}

/* =========================
   HEADER
========================= */
.dn-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(247, 247, 247, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(90, 31, 38, 0.08);
}

.dn-header__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 24px;
    position: relative;
}

.dn-header__logo {
    display: inline-flex;
    align-items: center;
}

.dn-header__logo img {
    height: 54px;
    width: auto;
}

.dn-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 0;
    overflow: hidden;
}

.dn-header__nav a {
    position: relative;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.dn-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #7a2028;
    transition: width 0.2s ease;
}

.dn-header__nav a:hover {
    color: #7a2028;
}

.dn-header__nav a:hover::after {
    width: 100%;
}

.dn-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dn-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7a2028, #5a1f26);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(122, 32, 40, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.dn-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(122, 32, 40, 0.24);
}

.dn-header__menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.dn-header__menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #1d1d1f;
}

/* mobile menu */
.dn-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    z-index: 1290;
}

.dn-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.dn-mobile-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: calc(100vw - 24px);
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 36px rgba(0, 0, 0, 0.14);
    transition: right 0.24s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
}

.dn-mobile-menu.is-open {
    right: 0;
}

.dn-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dn-mobile-menu__logo img {
    height: 40px;
    width: auto;
}

.dn-mobile-menu__close {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f7f7f7;
    border-radius: 10px;
    font-size: 28px;
    line-height: 1;
    color: #222;
    cursor: pointer;
    padding: 0;
}

.dn-mobile-menu__nav {
    padding: 10px 18px 0;
    display: flex;
    flex-direction: column;
}

.dn-mobile-menu__nav a {
    display: block;
    padding: 18px 4px;
    border-bottom: 1px solid #f3f3f3;
    color: #222;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.dn-mobile-menu__bottom {
    margin-top: auto;
    padding: 18px;
    background: linear-gradient(180deg, #fafafa, #f5f5f5);
    border-top: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dn-mobile-menu__bottom a {
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

/* =========================
   LOGO SONG PAGE
========================= */
.best-seller-section {
    padding: 80px 20px;
    background: #f7f7f7;
}

.best-seller-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.best-search-hero {
    text-align: center;
    margin-bottom: 42px;
}

.best-hero-kicker {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #7b2330;
}

.best-hero-title {
    margin: 0 0 14px;
    font-size: 54px;
    line-height: 1.14;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.03em;
}

.best-hero-desc {
    margin: 0 auto;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.8;
    color: #666;
}

.best-search-wrap {
    margin-top: 30px;
}

.best-search-form {
    max-width: 980px;
    margin: 0 auto;
}

.best-search-box {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.best-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 68px;
    padding: 0 28px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    font-size: 20px;
    color: #111;
    outline: none;
}

.best-search-input::placeholder {
    color: #888;
}

.best-search-btn,
.best-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 68px;
    padding: 0 36px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.best-search-btn {
    border: 0;
    background: linear-gradient(135deg, #8c1d25, #6e1820);
    color: #fff;
    box-shadow: 0 10px 24px rgba(140, 29, 37, 0.18);
}

.best-search-btn:hover {
    background: linear-gradient(135deg, #9b2430, #751922);
}

.best-reset-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
}

.song-tab-wrap {
    margin-top: 34px;
}

.election-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.election-tab-btn {
    flex: 1 1 calc(25% - 14px);
    min-width: 180px;
    min-height: 60px;
    padding: 20px 18px;
    border: 1px solid #eadede;
    background: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    color: #111;
    transition: all 0.2s ease;
}

.election-tab-btn.active {
    background: linear-gradient(180deg, #b12c39 0%, #8b1d29 100%);
    color: #fff;
    border-color: #8b1d29;
    box-shadow: 0 10px 24px rgba(140, 29, 37, 0.18);
}

.genre-tab-row.static {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 10px;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    background: #f2f2f2;
    border: 1px solid #ece3e5;
    font-size: 15px;
    font-weight: 800;
    color: #333;
    transition: all 0.2s ease;
}

.genre-chip:hover {
    background: #8c1d25;
    color: #fff;
    border-color: #8c1d25;
}

.selected-state-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: #faf7f8;
    border: 1px solid #eee2e4;
    border-radius: 22px;
    margin-bottom: 34px;
}

.selected-state-text {
    font-size: 17px;
    color: #8b1d29;
    font-weight: 800;
}

.selected-state-text em {
    color: #666;
    font-style: normal;
    font-weight: 500;
}

.selected-state-note {
    font-size: 14px;
    color: #8f7e83;
}

.result-panel {
    margin-top: 10px;
}

.genre-section {
    margin-top: 60px;
    scroll-margin-top: 120px;
}

.genre-section:first-child {
    margin-top: 0;
}

.genre-section-head {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e3e4;
}

.genre-section-head h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    color: #111;
}

/* =========================
   SONG CARD
========================= */
.song-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.song-card {
    border: 1px solid #ece1e3;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.035);
}

.song-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.song-card-info {
    flex: 1;
    min-width: 0;
}

.song-meta-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.song-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f7f1f2;
    border: 1px solid #eadede;
    font-size: 12px;
    font-weight: 700;
    color: #8b1d29;
    line-height: 1;
}

.song-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.song-name {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.song-singer {
    margin-top: 4px;
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.song-card-price {
    text-align: right;
    min-width: 108px;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: #8f7e83;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 16px;
    font-weight: 900;
    color: #8b1d29;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.best-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.best-badge-best {
    background: #ffe7a3;
    color: #8a5a00;
}

.best-badge-new {
    background: #dff4df;
    color: #167a2f;
}

.best-badge-recommend {
    background: #e6efff;
    color: #1d4ed8;
}

.best-badge-default {
    background: #f0f0f0;
    color: #555;
}

/* compact player row */
.compact-player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.compact-player-row audio {
    display: none;
}

.mini-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #e2c9cd;
    border-radius: 999px;
    background: #fff;
}

.mini-player-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8c1d25;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.mini-player-time {
    font-size: 12px;
    font-weight: 700;
    color: #7f6a70;
    line-height: 1;
    min-width: 30px;
}

.mini-player-progress {
    width: 72px;
    height: 4px;
    accent-color: #8c1d25;
    cursor: pointer;
    margin: 0 2px;
}

.mini-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #d9bfc4;
    background: #fff;
    color: #8c1d25;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.mini-detail-btn:hover {
    background: #fff5f6;
}

.mini-detail-icon {
    font-size: 11px;
    line-height: 1;
}

.mini-detail-text {
    line-height: 1;
}

.compact-no-audio {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* old area hidden */
.song-card-bottom {
    display: none;
}

.sample-copyright-note {
    display: none;
}

.song-card-middle audio {
    width: 100%;
    margin-top: 4px;
}

.no-audio {
    height: 54px;
    border-radius: 12px;
    background: #f7f7f7;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #d9bfc4;
    border-radius: 14px;
    background: #fff5f6;
    color: #8c1d25;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-btn:hover {
    background: #8c1d25;
    color: #fff;
    border-color: #8c1d25;
}

.song-detail-box {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.song-detail-box.open {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.detail-grid div {
    background: #faf7f8;
    border: 1px solid #f0e5e7;
    border-radius: 12px;
    padding: 10px;
}

.detail-grid span {
    display: block;
    font-size: 12px;
    color: #8f7e83;
    margin-bottom: 4px;
}

.detail-grid strong {
    font-size: 12px;
    color: #111;
    font-weight: 800;
    line-height: 1.35;
}

.lyrics-box h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 900;
    color: #111;
}

.lyrics-box pre {
    margin: 0;
    padding: 12px;
    background: #faf7f8;
    border: 1px solid #f0e5e7;
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    font-family: inherit;
    max-height: 160px;
    overflow: auto;
}

.best-empty {
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
}

.best-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    color: #111;
}

.best-empty p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 60px;
    padding: 42px 0;
    border-top: 1px solid #ddd;
    background: #f7f7f7;
    color: inherit;
}

.site-footer__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.site-footer__logo img {
    height: 54px;
    width: auto;
}

.site-footer__info {
    color: #666;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.site-footer__info strong {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 17px;
}

.site-footer__copy {
    margin-top: 18px;
    color: #9a9a9a;
    font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 1400px) {
    .song-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1160px) {
    .dn-header__nav {
        gap: 24px;
    }

    .dn-header__nav a {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .best-hero-title {
        font-size: 46px;
    }

    .best-hero-desc {
        font-size: 18px;
    }

    .song-card-list {
        grid-template-columns: 1fr;
    }

    .selected-state-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .selected-state-note {
        text-align: left;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .election-tab-btn {
        flex: 1 1 calc(50% - 9px);
    }

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

@media (max-width: 920px) {
    .dn-header__nav--desktop,
    .dn-header__actions--desktop {
        display: none;
    }

    .dn-header__menu-btn {
        display: block;
        justify-self: end;
    }

    .dn-header__inner {
        gap: 10px;
        padding: 10px 14px;
    }

    .dn-header__logo img {
        height: 36px;
    }
}

@media (max-width: 768px) {
    .best-seller-section {
        padding: 70px 0 80px;
    }

    .best-seller-inner {
        padding: 0 16px;
    }

    .best-hero-title {
        font-size: 34px;
    }

    .best-hero-desc {
        font-size: 16px;
        line-height: 1.65;
    }

    .best-search-box {
        flex-wrap: wrap;
    }

    .best-search-input,
    .best-search-btn,
    .best-reset-btn {
        width: 100%;
        height: 56px;
        font-size: 16px;
    }

    .election-tab-btn {
        min-height: 74px;
        padding: 16px 14px;
        border-radius: 18px;
        font-size: 18px;
    }

    .song-card {
        padding: 16px;
        border-radius: 16px;
    }

    .song-card-top {
        flex-direction: row;
        align-items: flex-start;
    }

    .song-card-price {
        text-align: right;
        min-width: 94px;
    }

    .song-name {
        font-size: 17px;
    }

    .song-singer {
        font-size: 13px;
    }

    .meta-value {
        font-size: 15px;
    }

    .mini-player {
        min-height: 30px;
        padding: 0 7px;
    }

    .mini-player-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .mini-player-time {
        font-size: 11px;
        min-width: 28px;
    }

    .mini-player-progress {
        width: 56px;
    }

    .mini-detail-btn,
    .compact-no-audio {
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

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

    .site-footer {
        margin-top: 40px;
        padding: 28px 0;
    }

    .site-footer__inner {
        padding: 0 14px;
        gap: 18px;
    }

    .site-footer__logo img {
        height: 42px;
    }

    .site-footer__info {
        font-size: 13px;
    }

    .site-footer__info strong {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .election-tab-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .genre-tab-row.static {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .genre-chip {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .genre-section-head h2 {
        font-size: 24px;
    }
}

/* =========================
   EVENT / COPYRIGHT BANNER
========================= */
.promo-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px auto 0;
    padding: 18px 22px;
    max-width: 980px;
    border-radius: 22px;
    text-align: left;
}

.promo-banner__label {
    flex: 0 0 auto;
    min-width: 112px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.promo-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-banner__content strong {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.4;
}

.promo-banner__content span {
    font-size: 15px;
    line-height: 1.7;
}

.promo-banner-event {
    background: linear-gradient(135deg, #fff4f6, #fdecef);
    border: 1px solid #f0d7dc;
}

.promo-banner-event .promo-banner__label {
    background: linear-gradient(135deg, #8c1d25, #6e1820);
    color: #fff;
}

.promo-banner-event .promo-banner__content strong {
    color: #7f1822;
}

.promo-banner-event .promo-banner__content span {
    color: #6b5d61;
}

.promo-banner-warning {
    background: #fff;
    border: 1px solid #eadede;
}

.promo-banner-warning .promo-banner__label {
    background: #f7f1f2;
    color: #8c1d25;
    border: 1px solid #ead7db;
}

.promo-banner-warning .promo-banner__content strong {
    color: #222;
}

.promo-banner-warning .promo-banner__content span {
    color: #666;
}

@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    .promo-banner__label {
        min-width: auto;
        height: 38px;
        font-size: 12px;
    }

    .promo-banner__content strong {
        font-size: 17px;
    }

    .promo-banner__content span {
        font-size: 14px;
        line-height: 1.6;
    }
}

.best-hero-notice{
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff8e8;
    border: 1px solid #f2d28b;
    color: #9a5b00;
    font-weight: 700;
    line-height: 1.6;
}