/* ---------------- NAV ---------------- */
.radio-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.radio-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.radio-btn.active {
    border-color: rgba(120, 160, 255, 0.8);
    background: linear-gradient(135deg, rgba(120, 160, 255, 0.35), rgba(70, 110, 230, 0.35));
    box-shadow: 0 0 0 1px rgba(120, 160, 255, 0.5), 0 0 12px rgba(120, 160, 255, 0.35);
}

.radio-btn:focus-visible,
.copy-btn:focus-visible {
    outline: 3px solid #dce8ff;
    outline-offset: 3px;
}

.radio-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ---------------- CODES ---------------- */
.radio-page {
    width: min(640px, calc(100% - 32px));
    margin: 0 auto 44px;
}

.radio-page__intro {
    margin: 8px 0 0;
    text-align: center;
}

.radio-page-title {
    margin: 0;
    color: #f5f7ff;
    font-size: clamp(27px, 4vw, 34px);
    letter-spacing: -0.02em;
}

.current-code {
    margin: 24px 0 0;
    color: rgba(235, 240, 255, 0.82);
    font-size: clamp(21px, 3vw, 26px);
}

.current-code span {
    color: #f7c00a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(247, 192, 10, 0.45);
}

.radio-codes {
    position: relative;
    margin-top: 24px;
    padding: 26px 66px 26px 32px;
    border: 1px solid rgba(188, 207, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(115deg, rgba(37, 50, 104, 0.3), rgba(0, 0, 0, 0.28));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(6px);
}

.codes-title {
    margin: 0 0 18px;
    color: #f3f6ff;
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 700;
    text-align: center;
}

.copy-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
}

.copy-btn {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(172, 198, 255, 0.18);
    border-radius: 8px;
    background: rgba(44, 62, 117, 0.82);
    color: #f4f7ff;
    cursor: pointer;
    place-items: center;
    transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

.copy-btn:hover {
    border-color: rgba(202, 219, 255, 0.38);
    background: #3c53a1;
}

.copy-toast {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(190, 213, 255, 0.12);
    border-radius: 8px;
    background: #1c2b55;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-toast span {
    color: #4cff8f;
    font-weight: 800;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 46px;
}

.codes-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-row {
    display: grid;
    grid-template-columns: minmax(38px, auto) auto;
    align-items: center;
    gap: 8px;
    color: #e6e9ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    line-height: 1.45;
    transition: color 0.18s;
}

.code-row:hover {
    color: #fff;
}

.code-row.active {
    color: #f7c00a;
}

.code-row__date {
    font-weight: 700;
    text-align: right;
}

.code-row__date::after {
    content: ':';
}

.code-row__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.055em;
}

.code-row.active .code-row__date,
.code-row.active .code-row__value {
    color: #f7c00a;
    text-shadow: 0 0 7px rgba(247, 192, 10, 0.55);
}

@media (max-width: 600px) {
    .radio-page {
        width: min(100% - 20px, 640px);
        margin-bottom: 36px;
    }

    .radio-page__intro {
        margin-top: 24px;
    }

    .radio-codes {
        margin-top: 20px;
        padding: 20px 50px 20px 16px;
        border-radius: 14px;
    }

    .codes-grid {
        gap: 5px 20px;
    }

    .code-row {
        grid-template-columns: minmax(33px, auto) auto;
        gap: 5px;
        font-size: 16px;
    }

    .copy-wrap {
        top: 12px;
        right: 10px;
    }

    .copy-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 450px) {
    .radio-nav {
        gap: 10px;
        margin-top: 20px;
    }

    .radio-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .radio-icon {
        width: 50px;
        height: 50px;
    }

    .codes-title {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .code-row__value {
        letter-spacing: 0.035em;
    }
}
