/* radio.youj1.top 使用与主站一致的基础配色，只在局部做轻量风格化 */

:root {
    --radio-panel-bg: #ffffff;
    --radio-border: #e5e7eb;
    --radio-accent: #0078d4;
    --radio-accent-soft: rgba(0, 120, 212, 0.06);
    --radio-danger: #ef4444;
    --radio-success: #10b981;
    --radio-text: #111827;
    --radio-muted: #6b7280;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f9fafb;
    color: var(--radio-text);
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.radio-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.6));
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.radio-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.radio-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--radio-text);
}

.radio-logo-img {
    height: 32px;
    width: auto;
}

.radio-logo-text {
    font-weight: 600;
    font-size: 1rem;
}

.radio-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.radio-nav-link {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--radio-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s ease-out;
}

.radio-nav-link:hover {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--radio-text);
    background: rgba(15, 23, 42, 0.8);
}

.radio-login {
    border-color: rgba(56, 189, 248, 0.7);
    color: var(--radio-accent);
    background: rgba(15, 23, 42, 0.7);
}

.radio-login:hover {
    background: var(--radio-accent-soft);
}

.radio-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.radio-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #38bdf8 0, #0f172a 45%);
    color: white;
}

.radio-username {
    font-size: 0.9rem;
    color: var(--radio-text);
}

.radio-main {
    max-width: 1200px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 2rem 0.5rem;
    flex: 1;
}

.radio-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 1.5rem;
}

.radio-panel {
    background: var(--radio-panel-bg);
    border-radius: 1rem;
    border: 1px solid var(--radio-border);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 1.25rem 1.5rem 1.4rem;
    position: relative;
    overflow: hidden;
}

.radio-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background: radial-gradient(circle at top left, rgba(0, 120, 212, 0.4), transparent 55%);
    pointer-events: none;
}

.radio-panel-inner {
    position: relative;
    z-index: 1;
}

.radio-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.1rem;
}

.radio-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.radio-panel-subtitle {
    font-size: 0.8rem;
    color: var(--radio-muted);
}

.radio-tab-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    gap: 0.15rem;
}

.radio-tab-btn {
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--radio-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease-out;
}

.radio-tab-btn.active {
    background: var(--radio-accent-soft);
    color: var(--radio-text);
}

.freq-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.freq-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.freq-label {
    font-size: 0.78rem;
    color: var(--radio-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freq-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.3rem 0.6rem;
}

.freq-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--radio-text);
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

.freq-suffix {
    font-size: 0.75rem;
    color: var(--radio-muted);
}

.freq-swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.3), rgba(15,23,42,0.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--radio-text);
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s;
    box-shadow: 0 0 0 rgba(56,189,248,0.3);
}

.freq-swap-btn:hover {
    transform: translateY(-1px) rotate(90deg);
    box-shadow: 0 0 0 6px rgba(56,189,248,0.18);
}

.freq-swap-btn:active {
    transform: scale(0.94);
}

.ptt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ptt-info {
    font-size: 0.8rem;
    color: var(--radio-muted);
}

.ptt-key-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 0.78rem;
}

.ptt-set-btn {
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 0.25rem 0.7rem;
    background: transparent;
    color: var(--radio-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.16s ease-out;
}

.ptt-set-btn:hover {
    border-style: solid;
    color: var(--radio-text);
}

.waveform-shell {
    position: relative;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem 0.7rem;
    background: linear-gradient(135deg, #eff6ff, #f9fafb);
    border: 1px solid rgba(191, 219, 254, 0.8);
    overflow: hidden;
}

.waveform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.waveform-title {
    font-size: 0.78rem;
    color: var(--radio-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.waveform-status {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--radio-success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.status-dot.busy {
    background: var(--radio-danger);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.8);
}

.waveform-canvas {
    width: 100%;
    height: 72px;
    border-radius: 0.5rem;
    background: radial-gradient(circle at 0 0, rgba(59,130,246,0.12) 0, #eff6ff 45%);
    position: relative;
    overflow: hidden;
}

.wavebar {
    position: absolute;
    bottom: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(56,189,248,0.1), rgba(56,189,248,0.9));
    transform-origin: bottom;
}

.wavebar.busy {
    background: linear-gradient(to top, rgba(248,113,113,0.1), rgba(248,113,113,0.9));
}

.radio-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.9rem 1rem;
}

.radio-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.radio-card-body {
    font-size: 0.82rem;
    color: var(--radio-muted);
}

.channel-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.channel-mode-select {
    border-radius: 999px;
    padding: 0.2rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
}

.channel-mode-btn {
    border-radius: 999px;
    padding: 0.18rem 0.8rem;
    font-size: 0.8rem;
    border: none;
    background: transparent;
    color: var(--radio-muted);
    cursor: pointer;
    transition: all 0.16s ease-out;
}

.channel-mode-btn.active {
    background: var(--radio-accent-soft);
    color: var(--radio-text);
}

.channel-id {
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--radio-text);
}

.radio-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.9rem 1.5rem 1.2rem;
    margin-top: 1.5rem;
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
}

.radio-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--radio-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.radio-footer-inner a {
    color: var(--radio-accent);
}

.radio-footer-dot {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .radio-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .radio-header-inner {
        flex-wrap: wrap;
    }

    .radio-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .radio-main {
        margin-top: 1rem;
    }
}


