@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard-dynamic-subset.css");

body {
    background-color: #fff;
    width: 90%;
    max-width: 576px;
    margin: 0 auto;
    font-family: "Pretendard", sans-serif;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

a {
    color: #070b8a;
}

p {
    line-height: 50%;
}

header,
footer {
    display: block;
    margin: 2rem 0;
}

header {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.site-name {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    text-decoration: none;
}

.site-name:before {
    content: "";
    display: inline-block;
    background-image: url(https://radio.bsod.kr/images/logo-darkTR.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
}

.copyright .contact a {
    text-decoration: underline;
}

#player {
    width: 100%;
}

#nowPlaying {
    display: block;
    width: auto;
    max-width: 100%;
    background-color: #f7f7f7;
    border-radius: 5px;
    padding: 1em;
    margin-bottom: 1em;
    text-align: left;
    word-break: break-word;
}

#nowPlaying > h3 {
    margin: 0;
}

#nowPlayingUrl {
    text-decoration: underline;
}

#citySelector {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23333' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 9px;
    border: 1px solid #999;
    border-radius: 5px;
    box-sizing: border-box;
    color: #333;
    cursor: default;
    font-family: "Pretendard", sans-serif;
    font-size: 0.9rem;
    padding: 6px 20px 6px 6px;
    width: 7.5rem;
}

#citySelector:hover {
    border-color: #777;
}

#channelContainerHeader {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.channelContainer {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
}

.visible {
    display: grid;
}

.channel {
    display: block;
    background-color: #f1f3f4;
    border-radius: 5px;
    padding: 1em;
    color: black;
    text-decoration: none;
}

.tuned {
    color: #174ae4;
    background-color: #e2e9ff;
    font-weight: bold;
}

button {
    font-family: "Pretendard", sans-serif;
    font-size: 0.9rem;
    border: 1px solid #999;
    border-radius: 5px;
    background-color: #f3f3f3;
    color: black;
    cursor: pointer;
}

button:hover {
    filter: brightness(90%);
    transition: filter 0.3s;

    -webkit-filter: brightness(90%);
    -webkit-transition: filter 0.3s;
}

.button-area {
    display: grid;
    place-items: center;
    margin-top: 2rem;
}

.button-area button {
    padding: 0.35rem 0.75rem;
    margin: 0.35rem;
}

.button-area a {
    color: black;
}

@media (min-width: 576px) {
    body {
        max-width: 576px;
    }

    .channelContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}
