/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Title: CxM Radiostatus Panel for PHP-Fusion
| Filename: cxm_radiostatus.css
| Author: Alexaxander Schilinski
| Homepage: https://schilinskialexander.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

.cxm-rs-hidden {
    display: none;
}

.cxm-rs-required {
    color: #c00;
}

.cxm-rs-form-wide {
    width: 95%;
}

.cxm-rs-input-tiny {
    width: 60px;
}

.cxm-rs-input-small {
    width: 80px;
}

.cxm-rs-input-number {
    width: 100px;
}

.cxm-rs-input-date {
    width: 150px;
}

.cxm-rs-input-station {
    width: 200px;
}

.cxm-rs-input-medium {
    width: 300px;
}

.cxm-rs-iframe-code {
    width: 100%;
    max-width: 520px;
    height: 70px;
}

.cxm-rs-admin-actions {
    margin: 10px 0 15px 0;
}

.cxm-rs-stream-select-form {
    margin-bottom: 15px;
}

.cxm-rs-wb-admin-head,
.cxm-rs-wb-admin-actions {
    margin-bottom: 12px;
}

.cxm-rs-admin {
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 18px 18px;
}

.cxm-rs-admin *,
.cxm-rs-admin *::before,
.cxm-rs-admin *::after {
    box-sizing: border-box;
}

.cxm-rs-admin-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.cxm-rs-admin-hero-copy {
    min-width: 0;
}

.cxm-rs-admin-kicker {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cxm-rs-admin h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1.15;
}

.cxm-rs-admin h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.cxm-rs-admin p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
}

.cxm-rs-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    gap: 10px;
    min-width: 280px;
}

.cxm-rs-stat {
    padding: 14px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.cxm-rs-stat span {
    display: block;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.cxm-rs-stat small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
}

.cxm-rs-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cxm-rs-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    list-style: none;
}

.cxm-rs-admin-tabs li {
    margin: 0;
    padding: 0;
}

.cxm-rs-admin-tabs a {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    color: #475467;
    font-weight: 700;
    text-decoration: none;
}

.cxm-rs-admin-tabs .active a,
.cxm-rs-admin-tabs a:hover {
    background: #2563eb;
    color: #fff;
}

.cxm-rs-admin-actions {
    margin: 0;
    display: flex;
    align-self: stretch;
}

.cxm-rs-admin-actions .cxm-rs-tab-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #475467;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.cxm-rs-admin-actions .cxm-rs-tab-link:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.cxm-rs-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
    gap: 16px;
    align-items: start;
}

.cxm-rs-admin-card {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cxm-rs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6edf5;
    background: #fbfdff;
}

.cxm-rs-card-head span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cxm-rs-admin-form {
    margin: 0;
}

.cxm-rs-admin-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

.cxm-rs-admin-table td {
    border: 0;
    border-bottom: 1px solid #eef2f6;
    padding: 12px 14px;
    color: #344054;
    vertical-align: middle;
}

.cxm-rs-admin-table tr:last-child td {
    border-bottom: 0;
}

.cxm-rs-admin-table .tbl2,
.cxm-rs-admin-table .tbl1 {
    background: #fff;
}

.cxm-rs-admin-form-table td:first-child {
    width: 34%;
    color: #475467;
    font-weight: 700;
}

.cxm-rs-admin-form-table input.textbox,
.cxm-rs-admin-form-table textarea.textbox,
.cxm-rs-admin-form-table select,
.cxm-rs-admin-form-table input[type="number"],
.cxm-rs-admin-form-table input[type="text"] {
    max-width: 100%;
    min-height: 34px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #111827;
}

.cxm-rs-admin-form-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.cxm-rs-form-submit {
    padding: 16px 18px;
    background: #fbfdff !important;
}

.cxm-rs-button-primary,
.cxm-rs-button-secondary,
.cxm-rs-button-ghost {
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.cxm-rs-button-primary {
    background: #2563eb;
    color: #fff;
}

.cxm-rs-button-secondary {
    display: inline-block;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #1f2937;
}

.cxm-rs-button-ghost {
    border: 1px solid #cfd8e3;
    background: #f8fafc;
    color: #344054;
}

.cxm-rs-stream-table code {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f2f4f7;
    color: #344054;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.cxm-rs-badge {
    display: inline-block;
    min-width: 72px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.cxm-rs-badge-on {
    background: #dcfce7;
    color: #166534;
}

.cxm-rs-badge-off {
    background: #f2f4f7;
    color: #667085;
}

.cxm-rs-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    position: relative;
}

.cxm-rs-inline-action {
    display: inline-flex;
    margin: 0;
}

.cxm-rs-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

.cxm-rs-preview-btn:hover {
    border-color: #2563eb;
    background: #dbeafe;
}

.cxm-rs-preview-btn .cxm-rs-icon {
    font-size: 18px;
    line-height: 1;
}

.cxm-rs-modal-open {
    overflow: hidden;
}

.cxm-rs-move-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cxm-rs-move-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cxm-rs-row-actions a {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cxm-rs-row-actions a:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cxm-rs-row-actions .cxm-rs-danger {
    color: #b42318;
}

.cxm-rs-row-actions .cxm-rs-danger:hover {
    border-color: #fecdca;
    background: #fff1f0;
}

.cxm-rs-row-actions .cxm-rs-preview-btn,
.cxm-rs-row-actions .cxm-rs-move-btn {
    padding: 0;
}

.cxm-rs-row-actions .cxm-rs-preview-btn,
.cxm-rs-row-actions .cxm-rs-move-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.cxm-rs-row-actions .cxm-rs-preview-btn {
    background: #eff6ff;
    color: #1d4ed8;
}

.cxm-rs-row-actions .cxm-rs-preview-btn:hover {
    border-color: #2563eb;
    background: #dbeafe;
}

.cxm-rs-row-actions .cxm-rs-move-btn {
    background: #fff;
    color: #2563eb;
}

.cxm-rs-row-actions .cxm-rs-move-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cxm-rs-row-actions .cxm-rs-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.cxm-rs-row-actions .cxm-rs-action-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.cxm-rs-row-actions .cxm-rs-danger-btn {
    color: #b42318;
}

.cxm-rs-row-actions .cxm-rs-danger-btn:hover {
    border-color: #fecdca;
    background: #fff1f0;
    color: #b42318;
}

.cxm-rs-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.cxm-rs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.cxm-rs-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.cxm-rs-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6edf5;
    background: #fbfdff;
}

.cxm-rs-modal-head span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cxm-rs-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.cxm-rs-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 0;
}

.cxm-rs-modal-preview {
    min-height: 560px;
    padding: 18px;
    background: #f8fafc;
}

.cxm-rs-modal-preview iframe {
    display: block;
    width: 100%;
    min-height: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.cxm-rs-modal-code {
    padding: 18px;
    border-left: 1px solid #e6edf5;
}

.cxm-rs-modal-code label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.cxm-rs-modal-textarea {
    width: 100%;
    min-height: 220px;
    padding: 10px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.cxm-rs-modal-hint {
    margin: 10px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.cxm-rs-empty-state {
    padding: 24px;
    color: #667085;
    text-align: center;
}

.cxm-rs-side-image {
    text-align: center;
    margin-bottom: 8px;
}

.cxm-rs-progress-wrap {
    background: #ddd;
    height: 6px;
    margin: 6px 0;
    border-radius: 3px;
}

.cxm-rs-progress-bar {
    height: 6px;
    width: 0;
    background: #c00;
    border-radius: 3px;
}

.cxm-rs-audio {
    width: 100%;
    margin: 8px 0;
}

.cxm-player-body {
    margin: 0;
    padding: 18px;
    background: #111827;
    color: #e5e7eb;
    font: 14px/1.4 Arial, sans-serif;
}

.cxm-player {
    max-width: 360px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1f2937, #111827);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.cxm-player h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

.cxm-player .song {
    margin: 0 0 14px;
    color: #cbd5e1;
}

.cxm-player audio {
    width: 100%;
}

.cxm-form table {
    width: 100%;
    border-collapse: collapse;
}

.cxm-form td {
    padding: 6px;
    vertical-align: top;
}

.cxm-form .textbox {
    width: 95%;
    box-sizing: border-box;
}

.cxm-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #1f2937;
}

.button {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.cxm-player-icons {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cxm-player-icon img {
    display: block;
}

.cxm-player-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.cxm-embed-body {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.cxm-embed {
    width: 280px;
    max-width: 280px;
    max-height: 280px;
    min-height: 280px;
    padding: 14px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #172033 0%, #0f172a 100%);
    color: #e5e7eb;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

.cxm-embed *,
.cxm-embed *::before,
.cxm-embed *::after {
    box-sizing: border-box;
}

.cxm-embed-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    min-width: 0;
}

.cxm-embed-image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.cxm-embed-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.cxm-embed-station {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cxm-embed-onair-label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.cxm-embed-onair-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cxm-embed-live {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.cxm-embed-song-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
}

.cxm-embed-song {
    margin-bottom: 12px;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 0;
}

.cxm-embed-song-inner {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    animation: cxm-embed-marquee 16s linear infinite;
}

@keyframes cxm-embed-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.cxm-embed-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cxm-embed-links .cxm-player-icons {
    justify-content: center;
}

.cxm-embed-links .cxm-player-icon {
    width: 40px;
    height: 40px;
}

.cxm-embed-footer {
    margin-top: 2px;
    text-align: center;
}

.cxm-embed-footer-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 8px;
}

.cxm-rs-theme3 {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: transparent;
}

.cxm-rs-theme3,
.cxm-rs-theme3 * {
    box-sizing: border-box;
}

.cxm-rs-theme3-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    text-align: center;
    flex-wrap: wrap;
    font-weight: 700;
}

.cxm-rs-theme3-head::before,
.cxm-rs-theme3-head::after {
    content: "";
    flex: 1 1 120px;
    min-width: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.cxm-rs-theme3-grid {
    display: grid;
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    gap: 14px 18px;
    align-items: flex-start;
}

.cxm-rs-theme3-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    text-align: center;
}

.cxm-rs-theme3-image img {
    display: block;
    width: 100%;
    max-width: 110px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.cxm-rs-theme3-topbar,
.cxm-rs-theme3-now,
.cxm-rs-theme3-player,
.cxm-rs-theme3-next {
    min-width: 0;
}

.cxm-rs-theme3-topbar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.cxm-rs-theme3-now {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.cxm-rs-theme3-song,
.cxm-rs-theme3-next {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cxm-rs-theme3-marquee {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.cxm-rs-theme3-marquee-inner {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    white-space: nowrap;
    animation: cxm-rs-theme3-marquee 14s linear infinite;
}

.cxm-rs-theme3-player strong,
.cxm-rs-theme3-now strong {
    display: inline-block;
    margin-bottom: 4px;
}

.cxm-rs-theme3-status {
    text-align: left;
}

.cxm-rs-theme3-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
}

.cxm-rs-theme3-status-label {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.cxm-rs-theme3-status-value {
    display: block;
}

.cxm-rs-theme3-player a,
.cxm-rs-theme3-player .button,
.cxm-rs-theme3-player button,
.cxm-rs-theme3-player input[type="submit"] {
    max-width: 100%;
}

.cxm-rs-theme3-player > div {
    width: 100%;
}

.cxm-rs-theme3-next {
    grid-column: 1 / -1;
    margin-top: 16px;
}

@keyframes cxm-rs-theme3-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 820px) {
    .cxm-rs-theme3-grid {
        grid-template-columns: 1fr;
    }

    .cxm-rs-theme3-image,
    .cxm-rs-theme3-topbar,
    .cxm-rs-theme3-player,
    .cxm-rs-theme3-now {
        grid-column: 1;
        grid-row: auto;
    }

    .cxm-rs-theme3-topbar {
        flex-direction: column;
        align-items: center;
    }

    .cxm-rs-theme3-status,
    .cxm-rs-theme3-player {
        align-items: center;
        text-align: center;
    }

    .cxm-rs-theme3-now {
        display: block;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .cxm-rs-theme3 {
        padding: 14px;
    }

    .cxm-rs-theme3-head::before,
    .cxm-rs-theme3-head::after {
        flex-basis: 60px;
    }

    .cxm-rs-theme3-grid {
        grid-template-columns: 1fr;
    }

    .cxm-rs-theme3-image img {
        max-width: 96px;
    }

    .cxm-rs-theme3-image,
    .cxm-rs-theme3-now,
    .cxm-rs-theme3-player {
        text-align: center;
    }
}
