@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
    font-family:
        'Noto Sans KR',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-synthesis: none;
    color: #191f28;
    background: #f4f5f7;
    --blue: #3182f6;
    --muted: #8b95a1;
    --line: #e8ebef;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
button,
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.5;
    cursor: default;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #90bfff;
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.site-header,
main,
footer {
    width: min(100% - 48px, 760px);
    margin-inline: auto;
}
.site-header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand img {
    object-fit: contain;
}
.hero {
    padding: 36px 2px 33px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: var(--blue);
    margin: 0 0 14px;
}
h1 {
    font-size: 44px;
    line-height: 1.35;
    letter-spacing: -2.3px;
    font-weight: 900;
    margin: 0;
}
.hero-description {
    line-height: 1.8;
    color: #8b95a1;
    margin: 19px 0 0;
}
h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 0;
}
.panel {
    background: white;
    border-radius: 24px;
}
.compose {
    padding: 28px;
}
.compose > h2 {
    margin-bottom: 23px;
}
#music-form {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px 16px;
}
.field {
    min-width: 0;
}
label {
    display: block;

    font-weight: 600;
    color: #4e5968;
    margin: 0 0 9px;
}
input,
textarea {
    width: 100%;
    border: 1px solid transparent;
    background: #f5f6f8;
    color: #333d4b;
    border-radius: 12px;
    padding: 15px;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
input {
    height: 51px;
}
input::placeholder,
textarea::placeholder {
    color: #a5adb8;
}
input:focus,
textarea:focus {
    outline: 0;
    border-color: #80b3ff;
    box-shadow: 0 0 0 3px #3182f610;
}
.field-hint {
    grid-column: 1/-1;

    line-height: 1.7;
    color: #9aa3af;
    margin: 0;
    overflow-wrap: anywhere;
}
.primary {
    background: var(--blue);
    color: white;
    border: 0;
    border-radius: 12px;

    font-weight: 700;
    padding: 15px 21px;
    min-height: 49px;
}
.primary:hover {
    background: #2375e8;
}
.primary:disabled:hover {
    background: var(--blue);
}
.submit-button {
    grid-column: 1/-1;
    width: 100%;
    margin-top: 7px;
}
.feed {
    padding-top: 36px;
}
.feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
    padding: 0 2px;
}
.feed-heading h2 {
    display: flex;
    align-items: center;
    gap: 7px;
}
.sort-label {
    font-size: 11px;
    color: #9aa3af;
}
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.music-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}
.video-wrap {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #e9edf3;
    position: relative;
}
.video-wrap iframe {
    max-width: 100%;
    position: absolute;
    inset: 0;
    border: 0;
    width: 100%;
    height: 100%;
}
.card-info {
    padding: 14px 16px;
}
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.author {
    min-width: 0;
}
.nickname {
    font-weight: 700;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-actions {
    display: flex;
    gap: 1px;
}
.icon-button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #a3acb8;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
.icon-button:hover {
    background: #f4f6f8;
    color: #5b6c81;
}
.icon-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;

    line-height: 1.7;
    color: #a3acb8;
}
.youtube-link {
    color: #8b95a1;
    white-space: nowrap;
}
.youtube-link:hover {
    color: var(--blue);
}
.empty-state {
    padding: 37px 20px;
    text-align: center;
}
.empty-state h3 {
    font-weight: 600;
    color: #6b7684;
    margin: 0 0 7px;
    letter-spacing: -0.3px;
}
.empty-state p {
    line-height: 1.8;
    color: #a3acb8;
    margin: 0;
}
.empty-state button {
    margin-top: 17px;
    font-size: 12px;
    min-height: 40px;
    padding: 11px 18px;
}
.more-wrap {
    text-align: center;
}
.more-button {
    border: 0;
    border-radius: 12px;
    color: #6b7684;
    background: #e9edf2;
    width: 100%;
    padding: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
}
.more-button:hover {
    background: #e0e6ee;
}
#feed-end {
    font-size: 11px;
    color: #a3acb8;
    margin: 23px 0 0;
}
footer {
    text-align: center;
    font-size: 11px;
    color: #9aa3af;
    padding: 38px 0 30px;
    line-height: 1.8;
}
footer a {
    color: #6b7684;
}
footer a:hover {
    color: var(--blue);
}
dialog {
    width: min(420px, calc(100% - 32px));
    border: 0;
    border-radius: 24px;
    padding: 28px;
    color: #191f28;
    box-shadow: 0 20px 100px #182d4820;
}
dialog::backdrop {
    background: #17253660;
}
dialog h2 {
    font-size: 20px;
    margin-bottom: 11px;
}
dialog p {
    color: #8b95a1;
    line-height: 1.8;
    margin: 0 0 23px;
}
.dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.dialog-actions button {
    flex: 1;
}
.secondary {
    border: 0;
    border-radius: 12px;
    background: #f0f2f5;
    color: #6b7684;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 21px;
}
textarea {
    resize: vertical;
    min-height: 112px;
}
.report-id {
    font-size: 10px;
    margin: 8px 0 0;
}
.mail-fallback {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #8b95a1;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .site-header,
    main,
    footer {
        width: calc(100% - 40px);
    }
    .site-header {
        height: 78px;
    }
    .hero {
        padding: 26px 0 28px;
    }
    h1 {
        font-size: 34px;
        letter-spacing: -1.8px;
    }
    .hero-description {
        font-size: 12px;
        margin-top: 15px;
    }
    .compose {
        padding: 23px 20px;
        border-radius: 20px;
    }
    #music-form {
        grid-template-columns: 1fr;
        gap: 17px;
    }
    .field-hint {
        margin-top: -5px;
        font-size: 10px;
    }
    .submit-button {
        margin-top: 0;
    }
    .compose > h2 {
        font-size: 17px;
        margin-bottom: 22px;
    }
    .feed {
        padding-top: 29px;
    }
    .feed-heading h2 {
        font-size: 17px;
    }
    .music-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }
    .card-info {
        padding: 14px 17px;
    }
    .nickname {
        font-size: 13px;
    }
    .card-bottom {
        font-size: 10px;
    }
    .empty-state {
        padding: 32px 16px;
        border-radius: 20px;
    }
    .empty-state p {
        font-size: 11px;
    }
    footer {
        padding: 31px 0 25px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.primary,
.more-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.primary > svg,
.more-button > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.primary.is-loading > svg,
.more-button.is-loading > svg {
    display: none;
}
.is-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.is-loading {
    cursor: wait !important;
    opacity: 0.75 !important;
}
input:disabled,
textarea:disabled {
    opacity: 0.65;
    cursor: wait;
}
.recommend-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 8px;
}
.recommend-stats > div {
    text-align: center;
    border-right: 1px solid #eff1f4;
}
.recommend-stats > div:last-child {
    border: 0;
}
.recommend-stats span {
    display: block;
    font-size: 11px;
    color: #8b95a1;
    margin-bottom: 7px;
}
.recommend-stats strong {
    font-size: 21px;
    letter-spacing: -0.5px;
    font-weight: 800;
    color: #333d4b;
}
.recommend-stats > div:first-child strong {
    color: var(--blue);
}
.author {
    display: flex;
    align-items: center;
    gap: 6px;
}
.author > svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #a3acb8;
    stroke-width: 1.7;
    flex-shrink: 0;
}
.youtube-link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.youtube-link svg {
    display: block;
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 600px) {
    .recommend-stats {
        padding: 17px 4px;
        margin-top: 18px;
        border-radius: 16px;
    }
    .recommend-stats span {
        font-size: 10px;
    }
    .recommend-stats strong {
        font-size: 19px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .is-loading::before {
        animation: spin 1.8s linear infinite;
    }
}
.link-preview {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.preview-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #8b95a1;
    margin-bottom: 9px;
}

.brand img {
    border-radius: 10px;
}
.brand img {
    width: 40px;
    height: 40px;
}
.site-header {
    border-bottom: 1px solid #dfe4eb;
}
.field-hint strong {
    font-weight: 700;
    color: #6b7684;
}
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #dbe6f3;
    border-top-color: #3182f6;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
}
.recommend-stats strong {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recommend-stats strong.stat-unavailable {
    font-size: 11px;
    font-weight: 500;
    color: #9aa3af;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.message-dialog {
    width: min(360px, calc(100% - 40px));
}
.message-dialog h2 {
    font-size: 20px;
    margin: 0 0 12px;
}
.message-dialog p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #6b7684;
    margin-bottom: 24px;
}
.message-dialog > .primary {
    width: 100%;
}
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation-duration: 1.8s;
    }
}
.sequence-player {
    margin-top: 24px;
    padding: 26px 28px;
}
.sequence-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sequence-heading h2 {
    font-size: 18px;
}
.sequence-heading p {
    color: #8b95a1;
    line-height: 1.7;
    margin: 8px 0 0;
}
.sequence-video {
    margin-top: 21px;
    width: 100%;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
}
.sequence-video > div,
.sequence-video > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.sequence-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.sequence-track strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sequence-track > span {
    font-size: 10px;
    color: #9aa3af;
    white-space: nowrap;
}
.sequence-controls {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
.sequence-controls .primary,
.sequence-controls .secondary {
    font-size: 12px;
    min-height: 44px;
    padding: 12px 16px;
}
.sequence-controls .secondary {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sequence-controls .secondary svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sequence-status {
    color: #9aa3af;
    line-height: 1.7;
    margin: 13px 0 0;
}
@media (max-width: 600px) {
    .sequence-player {
        padding: 23px 20px;
        margin-top: 18px;
        border-radius: 20px;
    }
    .sequence-heading p {
        font-size: 11px;
    }

    .sequence-controls .primary,
    .sequence-controls .secondary {
        font-size: 11px;
        padding: 11px 13px;
    }

    .sequence-track {
        align-items: flex-start;
    }
    .sequence-track strong {
        font-size: 12px;
    }
}

.compose-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.compose-title svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.required-mark {
    color: #e46b7f;
}
.input-guide {
    display: block;
    font-size: 12px;
    color: #8b95a1;
    line-height: 1.7;
    margin-top: 7px;
}

.feed-heading h2 span {
    font-size: 15px;
    color: #8b95a1;
    font-weight: 600;
    margin-left: 7px;
}
.hero-description {
    font-size: 15px;
}
label {
    font-size: 13px;
}
input,
textarea {
    font-size: 14px;
}
.primary {
    font-size: 15px;
}
.field-hint {
    font-size: 12px;
}
.compose > h2,
.sequence-heading h2,
.feed-heading h2 {
    font-size: 19px;
}
.nickname {
    font-size: 14px;
}
.card-bottom {
    font-size: 11px;
}
.sequence-heading p {
    font-size: 13px;
}
.sequence-status {
    font-size: 12px;
}
.empty-state h3 {
    font-size: 15px;
}
.empty-state p {
    font-size: 13px;
}
dialog p {
    font-size: 13px;
}
@media (max-width: 600px) {
    .hero-description {
        font-size: 13px;
    }
    .input-guide {
        font-size: 11px;
    }
    .field-hint {
        font-size: 11px;
    }
    .compose > h2,
    .feed-heading h2 {
        font-size: 18px;
    }
    .nickname {
        font-size: 14px;
    }
    .empty-state p {
        font-size: 12px;
    }
    .sequence-heading p {
        font-size: 12px;
    }
    .sequence-controls .primary,
    .sequence-controls .secondary {
        font-size: 12px;
    }
}

.sequence-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.sequence-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.card-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.recommendation-id {
    color: #6b7684;
    font-weight: 600;
}
@media (max-width: 600px) {
    .sequence-controls {
        gap: 10px;
    }
    .sequence-navigation {
        flex: 1;
        gap: 5px;
    }
    .sequence-controls .primary,
    .sequence-controls .secondary {
        padding: 10px 8px;
        font-size: 12px;
        gap: 4px;
        white-space: nowrap;
    }
    .sequence-navigation svg {
        width: 14px;
        height: 14px;
    }
}

.sequence-status svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sequence-status {
    display: flex;
    align-items: center;
    gap: 7px;
}
.sequence-status[data-state='playing'] {
    color: var(--blue);
}
.sequence-status[data-state='loading'] svg {
    animation: spin 0.75s linear infinite;
}
@media (max-width: 600px) {
    .sequence-controls {
        flex-wrap: wrap;
    }
    .sequence-navigation {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex-basis: 100%;
        width: 100%;
    }
    .sequence-navigation > button {
        min-width: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .sequence-navigation > button > svg {
        flex-shrink: 0;
    }
    .sequence-options {
        max-width: 100%;
        flex-shrink: 1;
        margin-left: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.recommend-link {
    margin-top: 22px;
    padding: 12px 18px;
    border-radius: 13px;
}

.preview-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #f2f4f6;
}
.preview-stage .video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 24px;
    color: #8b95a1;
    font-size: 14px;
    line-height: 1.7;
}
.sequence-heading {
    align-items: center;
    flex-wrap: wrap;
}
.sequence-heading > div {
    flex: 1;
    min-width: 220px;
}
.sequence-heading .sequence-status {
    margin: 0;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    justify-content: flex-end;
    flex: 0 1 auto;
    max-width: 46%;
}
.sequence-heading .sequence-status svg {
    width: 18px;
    height: 18px;
}
.sequence-options {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.mode-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #f2f4f6;
    color: #8b95a1;
}
.mode-button[aria-pressed='true'] {
    background: #e8f1ff;
    color: var(--blue);
}
.mode-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 600px) {
    .sequence-heading > div {
        min-width: 0;
        flex-basis: 100%;
    }
    .sequence-heading .sequence-status {
        margin-left: auto;
        max-width: 100%;
        font-size: 13px;
    }

    .preview-overlay {
        font-size: 13px;
        padding: 16px;
    }
}

html:has(#recommend-dialog[open]) {
    overflow: hidden;
}
dialog.recommend-dialog {
    width: min(760px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border-radius: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.recommend-dialog-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: white;
    border-bottom: 1px solid #eff1f4;
}
.recommend-dialog-heading h2 {
    margin: 0;
    font-size: 20px;
}
.dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 13px;
    background: #f2f4f6;
    color: #6b7684;
}
.dialog-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.recommend-dialog .compose {
    padding: 24px;
    border-radius: 0;
}
#preview-message.is-error {
    color: #d92d20;
    font-weight: 700;
    background: #fff1f0;
}
@media (max-width: 600px) {
    dialog.recommend-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 20px;
    }
    .recommend-dialog-heading {
        padding: 14px 16px;
    }
    .recommend-dialog-heading h2 {
        font-size: 18px;
    }
    .recommend-dialog .compose {
        padding: 20px 16px 24px;
    }
}
