:root {
    --wk-color-primary: #0678b4;
    --wk-color-text: #151011;
    --wk-color-muted: #6b6b73;
    --wk-player: #1a1a1e;
    --header-height: 85px;
    --player-height: 88px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #fff;
    color: var(--wk-color-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.login,
.blocked {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(880px 420px at 50% -120px, rgba(6, 120, 180, 0.2), transparent 62%),
        #fff;
}

.login-card {
    width: min(100%, 420px);
    padding: 40px 32px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(6, 120, 180, 0.08);
    box-shadow: 0 22px 50px rgba(6, 120, 180, 0.12);
    text-align: center;
}

.login-logo {
    width: min(210px, 70%);
    height: auto;
    margin-bottom: 28px;
}

.field {
    display: block;
    text-align: left;
    margin-bottom: 16px;
}

.field span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--wk-color-muted);
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d7d7de;
    border-radius: 8px;
    font-size: 16px;
}

.field input:focus {
    outline: 2px solid rgba(6, 120, 180, 0.35);
    border-color: var(--wk-color-primary);
}

.login-error,
.blocked-message {
    margin: 0 0 16px;
    color: #a12626;
    font-size: 14px;
}

.blocked-message {
    color: var(--wk-color-text);
    font-size: 16px;
}

.login-submit {
    width: 78%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--wk-color-primary);
    color: #fff;
    cursor: pointer;
}

.login-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.login-forgot {
    display: inline-block;
    margin-top: 18px;
    color: var(--wk-color-primary);
    font-size: 14px;
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: #fff;
}

.logo {
    height: 28px;
    width: auto;
}

.header-side {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--wk-color-muted);
    font-size: 14px;
}

.greeting {
    color: var(--wk-color-text);
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--wk-color-primary);
    cursor: pointer;
    padding: 6px 0;
}

.main {
    flex: 1;
    padding: 28px 40px calc(var(--player-height) + 28px);
}

.client-logo {
    display: block;
    max-height: 72px;
    max-width: min(240px, 100%);
    object-fit: contain;
    margin-bottom: 24px;
}

.status {
    margin: 0 0 16px;
    color: var(--wk-color-muted);
}

.channels {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.channel {
    width: 320px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.channel-art {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 6px;
    background: #ececec center / cover no-repeat;
}

.channel.selected .channel-art {
    box-shadow: inset 0 0 0 3px var(--wk-color-primary);
}

.channel-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--wk-color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(6, 120, 180, 0.35);
}

.channel-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 22px;
}

.channel-name svg {
    flex: 0 0 auto;
    color: var(--wk-color-text);
}

.player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--player-height);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 0;
    background: var(--wk-player);
    color: #fcfcfc;
    z-index: 2;
}

.seek {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.seek.locked {
    cursor: default;
}

.seek-fill {
    height: 100%;
    width: 0;
    background: var(--wk-color-primary);
}

.icon-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fcfcfc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-button.pressed {
    background: #fff;
    color: var(--wk-color-primary);
    border-color: #fff;
}

.icon-button-small {
    width: 36px;
    height: 36px;
    border: 0;
}

.track {
    min-width: 0;
    flex: 1;
}

.track-artist,
.track-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 15px;
}

.track-title {
    margin-top: 2px;
    font-size: 13px;
    color: rgba(252, 252, 252, 0.7);
}

.volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.volume input[type="range"] {
    width: 110px;
    accent-color: #fff;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--player-height) + 16px);
    transform: translateX(-50%);
    max-width: min(520px, calc(100% - 32px));
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--wk-color-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

@media (max-width: 800px) {
    .header,
    .main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .channel,
    .channel-art {
        width: 240px;
        height: 240px;
    }

    .channel {
        height: auto;
    }

    .channel-art {
        height: 240px;
    }

    .volume input[type="range"] {
        width: 72px;
    }

    .greeting {
        display: none;
    }
}
