.app-view[hidden] {
    display: none !important;
}

.directory-view {
    background-color: #f3eddf;
    background-image: radial-gradient(rgba(64, 50, 27, 0.05) 0.6px, transparent 0.8px);
    background-size: 4px 4px;
}

.directory-browser {
    scroll-margin-top: 88px;
}

.directory-request-banner {
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 68, 51, 0.96), rgba(4, 27, 21, 0.98));
    border: 1px solid rgba(240, 189, 81, 0.35);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(4, 27, 21, 0.18);
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 20px 24px;
    position: relative;
}

.request-banner-content {
    align-items: center;
    display: flex;
    gap: 16px;
}

.request-banner-icon {
    align-items: center;
    background: rgba(240, 189, 81, 0.15);
    border: 1px solid rgba(240, 189, 81, 0.3);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    flex: 0 0 46px;
    font-size: 1.2rem;
    height: 46px;
    justify-content: center;
}

.request-banner-text h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.request-banner-text p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    line-height: 1.45;
}

.request-banner-btn {
    align-items: center;
    background: var(--gold);
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0.08em;
    min-height: 44px;
    padding: 0 22px;
    text-transform: uppercase;
    transition: background 180ms ease, transform 180ms ease;
}

.request-banner-btn:hover {
    background: #ffd274;
    transform: translateY(-2px);
}

.owned-stations-panel {
    background: rgba(8, 58, 45, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    box-shadow: 0 18px 46px rgba(21, 39, 32, 0.14);
    color: #fff;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 2.7fr);
    margin-bottom: 34px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.owned-stations-panel::before {
    background: var(--gold);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.owned-stations-intro {
    align-content: center;
    display: grid;
    gap: 13px;
    padding: 3px 8px 3px 2px;
}

.owned-stations-kicker {
    align-items: center;
    color: var(--gold);
    display: flex;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.owned-stations-intro h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.52rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.owned-stations-intro p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    line-height: 1.5;
    margin-top: 7px;
}

.owned-stations-switcher {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
}

.owned-stations-loading {
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    font-size: 0.78rem;
    gap: 9px;
    grid-column: 1 / -1;
}

.owned-station-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: 9px;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 90px;
    padding: 10px;
    position: relative;
    text-align: left;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.owned-station-button:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-2px);
}

.owned-station-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--owned-accent, var(--gold));
    box-shadow: inset 0 -3px 0 var(--owned-accent, var(--gold));
}

.owned-station-logo {
    align-items: center;
    display: flex;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.owned-station-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.owned-station-copy {
    min-width: 0;
}

.owned-station-copy strong,
.owned-station-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owned-station-copy strong {
    font-family: "Oswald", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.owned-station-copy small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.58rem;
    margin-top: 4px;
}

.owned-station-play {
    align-items: center;
    background: var(--gold);
    border-radius: 50%;
    bottom: 7px;
    color: var(--ink);
    display: flex;
    font-size: 0.55rem;
    height: 22px;
    justify-content: center;
    position: absolute;
    right: 7px;
    width: 22px;
}

.owned-station-button.active .owned-station-play {
    background: var(--owned-accent, var(--gold));
}

/* Barra de Chips Visuales de Categorías */
.dir-genre-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.dir-chip-btn {
    align-items: center;
    background: rgba(255, 253, 248, 0.85);
    border: 1px solid rgba(8, 123, 89, 0.2);
    border-radius: 50px;
    color: var(--green-800);
    cursor: pointer;
    display: inline-flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 7px;
    padding: 8px 16px;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.dir-chip-btn i {
    color: var(--green-600);
    font-size: 0.85rem;
}

.dir-chip-btn:hover {
    background: rgba(8, 123, 89, 0.1);
    border-color: var(--green-600);
    transform: translateY(-2px);
}

.dir-chip-btn.active {
    background: var(--green-800);
    border-color: var(--green-800);
    box-shadow: 0 4px 14px rgba(8, 68, 51, 0.25);
    color: #ffffff;
}

.dir-chip-btn.active i {
    color: var(--gold);
}

.dir-chip-btn.fav-chip {
    border-color: rgba(239, 75, 147, 0.3);
}

.dir-chip-btn.fav-chip i {
    color: #ef4b93;
}

.dir-chip-btn.fav-chip.active {
    background: #ef4b93;
    border-color: #ef4b93;
    box-shadow: 0 4px 14px rgba(239, 75, 147, 0.32);
    color: #ffffff;
}

.dir-chip-btn.fav-chip.active i {
    color: #ffffff;
}

.directory-filters {
    background: rgba(251, 248, 239, 0.68);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 5px;
    box-shadow: 0 18px 50px rgba(40, 39, 30, 0.08);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 34px;
    padding: 22px;
}

.directory-filter {
    min-width: 0;
}

.directory-filter label {
    color: var(--ink-soft);
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 8px 2px;
    text-transform: uppercase;
}

.directory-filter > div {
    align-items: center;
    background: rgba(255, 253, 248, 0.8);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    min-height: 50px;
    padding: 0 15px;
}

.directory-filter > div:focus-within {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(7, 133, 94, 0.1);
}

.directory-filter i {
    color: var(--green-600);
    font-size: 0.82rem;
    margin-right: 11px;
}

.directory-filter select,
.directory-filter input {
    background: transparent;
    border: 0;
    color: var(--ink);
    min-width: 0;
    outline: 0;
    width: 100%;
}

.directory-results-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.directory-summary-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.directory-results-bar p {
    color: var(--muted);
    font-size: 0.82rem;
}

.directory-fav-toggle-btn {
    align-items: center;
    background: rgba(239, 75, 147, 0.08);
    border: 1px solid rgba(239, 75, 147, 0.28);
    border-radius: 999px;
    color: #c92369;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.71rem;
    font-weight: 700;
    gap: 7px;
    letter-spacing: 0.04em;
    min-height: 32px;
    padding: 0 13px;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.directory-fav-toggle-btn:hover {
    background: rgba(239, 75, 147, 0.16);
    border-color: #ef4b93;
    transform: translateY(-1px);
}

.directory-fav-toggle-btn.active {
    background: #ef4b93;
    border-color: #ef4b93;
    box-shadow: 0 4px 14px rgba(239, 75, 147, 0.32);
    color: #fff;
}

.fav-badge {
    background: rgba(11, 23, 20, 0.1);
    border-radius: 99px;
    color: inherit;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 7px;
}

.directory-fav-toggle-btn.active .fav-badge {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.directory-results-actions {
    align-items: center;
    display: flex;
    gap: 16px;
}

.directory-live-tab-btn {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(11, 68, 51, 0.22);
    border-radius: 999px;
    color: var(--green-800);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 7px;
    letter-spacing: 0.08em;
    min-height: 32px;
    padding: 0 13px;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.directory-live-tab-btn i {
    background: var(--pink);
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.directory-live-tab-btn:hover {
    background: rgba(8, 123, 89, 0.1);
    border-color: var(--green-600);
}

.directory-live-tab-btn.active {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
}

.station-submit-open {
    align-items: center;
    background: var(--gold);
    border: 1px solid #dca528;
    border-radius: 999px;
    color: var(--green-800);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.08em;
    min-height: 36px;
    padding: 0 15px;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
}

.station-submit-open:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
}

.station-submit-dialog {
    background: var(--paper-light);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(8, 28, 22, 0.3);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    margin: auto;
    max-height: min(92vh, 840px);
    max-width: 760px;
    overflow-y: auto;
    padding: 0;
    width: calc(100% - 32px);
}

.station-submit-dialog::backdrop {
    backdrop-filter: blur(5px);
    background: rgba(5, 22, 17, 0.65);
}

.station-submit-form {
    padding: 30px;
}

.station-submit-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 22px;
}

.station-submit-kicker {
    color: var(--green-600);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.station-submit-header h2 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.station-submit-header > div > p:last-child {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 10px;
    max-width: 570px;
}

.station-submit-close {
    align-items: center;
    background: rgba(7, 133, 94, 0.08);
    border-radius: 50%;
    color: var(--green-800);
    cursor: pointer;
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.station-submit-fields {
    display: grid;
    gap: 17px;
    grid-template-columns: 1fr 1fr;
}

.station-submit-fields label > span:first-child {
    color: var(--ink-soft);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 7px 2px;
    text-transform: uppercase;
}

.station-submit-fields input,
.station-submit-fields select,
.station-submit-fields textarea {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    min-height: 46px;
    outline: 0;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.station-submit-fields input:focus,
.station-submit-fields select:focus,
.station-submit-fields textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(7, 133, 94, 0.1);
}

.station-submit-wide {
    grid-column: 1 / -1;
}

.station-submit-consent {
    align-items: flex-start;
    background: rgba(7, 133, 94, 0.06);
    border: 1px solid rgba(7, 133, 94, 0.12);
    border-radius: 4px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.station-submit-consent input {
    accent-color: var(--green-600);
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 2px;
    width: auto;
}

.station-submit-consent > span:last-child {
    color: var(--ink-soft);
    font-size: 0.73rem;
    line-height: 1.45;
}

.station-submit-note {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.5;
    margin-top: 20px;
}

.station-submit-note i {
    color: var(--green-600);
    margin-right: 5px;
}

.station-submit-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
}

.station-submit-cancel,
.station-submit-send {
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    min-height: 44px;
    padding: 0 19px;
    text-transform: uppercase;
}

.station-submit-cancel {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.station-submit-send {
    background: var(--gold);
    color: var(--ink);
}

.station-submit-send i {
    margin-left: 7px;
}

.directory-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.directory-station-card {
    background: rgba(251, 248, 239, 0.86);
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 205px;
    padding: 20px;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.directory-station-card:hover {
    border-color: rgba(7, 133, 94, 0.55);
    box-shadow: 0 16px 34px rgba(28, 39, 32, 0.1);
    transform: translateY(-3px);
}

.directory-station-card.active-play {
    border-color: var(--green-600);
    box-shadow: 0 0 0 2px rgba(7, 133, 94, 0.12);
}



@keyframes badgePulseGlow {
    0%, 100% { box-shadow: 0 2px 6px rgba(7, 133, 94, 0.15); }
    50% { box-shadow: 0 4px 12px rgba(7, 133, 94, 0.35); }
}

.dir-equalizer-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.dir-equalizer-wave .eq-bar {
    width: 2.5px;
    background: var(--green-800, #07855e);
    border-radius: 1px;
    animation: eqWaveBounce 1.1s infinite ease-in-out alternate;
}

.dir-equalizer-wave .eq-bar:nth-child(1) { height: 40%; animation-delay: 0.0s; }
.dir-equalizer-wave .eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.dir-equalizer-wave .eq-bar:nth-child(3) { height: 70%; animation-delay: 0.15s; }
.dir-equalizer-wave .eq-bar:nth-child(4) { height: 50%; animation-delay: 0.45s; }

@keyframes eqWaveBounce {
    0% { height: 20%; opacity: 0.4; }
    100% { height: 100%; opacity: 1; }
}

.directory-frequency {
    background: var(--ink);
    border-radius: 3px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    padding: 5px 8px;
    position: absolute;
    right: 16px;
    top: 16px;
}

.directory-card-top {
    align-items: center;
    display: flex;
    gap: 15px;
    padding-right: 48px;
}

.dir-logo-container {
    align-items: center;
    background: #fff;
    border: 1px solid #e1dacb;
    border-radius: 4px;
    display: flex;
    flex: 0 0 68px;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.dir-logo-img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.dir-info-container {
    min-width: 0;
}

.dir-info-container h3 {
    display: -webkit-box;
    font-family: "Oswald", sans-serif;
    font-size: 1.18rem;
    line-height: 1.15;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dir-country {
    color: var(--muted);
    display: inline-flex;
    font-size: 0.69rem;
    gap: 6px;
    margin-top: 7px;
}

.dir-country i {
    color: var(--green-600);
}

.directory-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dir-tag {
    background: rgba(7, 133, 94, 0.07);
    border: 1px solid rgba(7, 133, 94, 0.13);
    border-radius: 3px;
    color: var(--green-800);
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 4px 7px;
    text-transform: uppercase;
}

.directory-card-bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.dir-meta-badge {
    color: #858980;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 200ms ease;
}

.dir-meta-badge.is-playing {
    align-items: center;
    background: rgba(7, 133, 94, 0.12);
    border: 1px solid rgba(7, 133, 94, 0.35);
    border-radius: 4px;
    color: var(--green-800, #07855e);
    display: inline-flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(7, 133, 94, 0.15);
    animation: badgePulseGlow 2s infinite ease-in-out;
}

.dir-card-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.dir-card-fav-btn {
    align-items: center;
    background: rgba(11, 23, 20, 0.05);
    border: 1px solid rgba(11, 23, 20, 0.12);
    border-radius: 50%;
    color: #7a827d;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    height: 42px;
    justify-content: center;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    width: 42px;
}

.dir-card-fav-btn:hover {
    background: rgba(239, 75, 147, 0.12);
    border-color: rgba(239, 75, 147, 0.35);
    color: #ef4b93;
    transform: scale(1.06);
}

.dir-card-fav-btn.is-favorite {
    background: rgba(239, 75, 147, 0.14);
    border-color: #ef4b93;
    color: #ef4b93;
}

.dir-card-fav-btn.is-favorite i {
    font-weight: 900;
}

.dir-play-btn {
    align-items: center;
    background: var(--green-800);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.directory-station-card.active-play .dir-play-btn {
    background: var(--gold);
    color: var(--ink);
}

.directory-status-msg {
    color: var(--muted);
    grid-column: 1 / -1;
    padding: 70px 20px;
    text-align: center;
}

.directory-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.directory-pagination[hidden] {
    display: none;
}

.directory-pagination button {
    background: var(--gold);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    min-height: 50px;
    padding: 0 24px;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .owned-stations-panel {
        grid-template-columns: 1fr;
    }

    .owned-stations-intro {
        grid-template-columns: auto 1fr;
    }

    .owned-stations-switcher {
        grid-auto-columns: minmax(185px, 1fr);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 7px;
        scrollbar-width: thin;
    }
}

@media (max-width: 720px) {
    .owned-stations-panel {
        gap: 17px;
        grid-template-columns: 1fr;
        margin-inline: -8px;
        padding: 20px 16px 16px;
    }

    .owned-stations-intro { grid-template-columns: 1fr; padding-inline: 2px; }
    .owned-stations-intro p { max-width: 300px; }

    .owned-stations-switcher {
        grid-auto-columns: minmax(218px, 78vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .owned-station-button {
        min-height: 82px;
        scroll-snap-align: start;
    }

    .directory-filters { grid-template-columns: 1fr; padding: 16px; }
    .directory-results-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .directory-results-actions { flex-wrap: wrap; justify-content: space-between; width: 100%; }
    .station-submit-form { padding: 22px 18px; }
    .station-submit-fields { grid-template-columns: 1fr; }
    .station-submit-wide { grid-column: auto; }
    .station-submit-footer { align-items: stretch; flex-direction: column-reverse; }
    .station-submit-cancel,
    .station-submit-send { width: 100%; }
    .directory-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PANEL PRIVADO DE ADMINISTRACIÓN DE EMISORAS (ADMIN DASHBOARD)
   ========================================================================== */
.admin-view {
    background-color: #071c17;
    background-image: radial-gradient(rgba(240, 189, 81, 0.08) 0.8px, transparent 1px);
    background-size: 6px 6px;
    color: #ffffff;
    min-height: 100vh;
}

.admin-dashboard {
    max-width: 1350px;
    margin: 0 auto;
    padding: 115px 20px 80px;
}

.admin-header-bar {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-badge {
    align-items: center;
    background: rgba(240, 189, 81, 0.15);
    border: 1px solid rgba(240, 189, 81, 0.4);
    border-radius: 50px;
    color: var(--gold, #f0bd51);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.12em;
    padding: 5px 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.admin-title-group h2 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
}

.admin-title-group p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    margin-top: 8px;
}

.admin-global-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-add-btn,
.admin-save-all-btn {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 9px;
    letter-spacing: 0.08em;
    padding: 12px 20px;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.admin-add-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.admin-add-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-save-all-btn {
    background: linear-gradient(135deg, #10b981 0%, #087a60 100%);
    border: 1px solid rgba(240, 189, 81, 0.4);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.admin-save-all-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Stats Bar */
.admin-stats-bar {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 28px;
}

.admin-stat-card {
    align-items: center;
    background: rgba(6, 48, 39, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 189, 81, 0.25);
    border-radius: 10px;
    display: flex;
    gap: 16px;
    padding: 18px 20px;
}

.admin-stat-card i {
    color: var(--gold, #f0bd51);
    font-size: 1.6rem;
}

.admin-stat-card strong {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.admin-stat-card span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Scope Tabs */
.admin-scope-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    align-items: center;
    background: rgba(6, 48, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: inline-flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.06em;
    padding: 10px 18px;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-tab-btn:hover {
    background: rgba(240, 189, 81, 0.15);
    border-color: rgba(240, 189, 81, 0.4);
    color: #ffffff;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #087a60 100%);
    border-color: rgba(240, 189, 81, 0.6);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

/* Toolbar & Search */
.admin-toolbar {
    background: rgba(6, 48, 39, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr minmax(180px, 230px) minmax(180px, 230px) auto;
    margin-bottom: 24px;
    padding: 16px 20px;
    align-items: center;
}

@media (max-width: 992px) {
    .admin-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .admin-toolbar {
        grid-template-columns: 1fr;
    }
}

.admin-logout-btn {
    align-items: center;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: #fca5a5;
    cursor: pointer;
    display: inline-flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 8px;
    height: 42px;
    justify-content: center;
    padding: 0 16px;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-logout-btn:hover {
    background: rgba(220, 38, 38, 0.4);
    border-color: #ef4444;
    color: #ffffff;
}

/* Modal Auth Admin */
.admin-auth-dialog {
    background: rgba(6, 25, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(240, 189, 81, 0.4);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(240, 189, 81, 0.2);
    color: #ffffff;
    max-width: 440px;
    padding: 0;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.admin-auth-dialog::backdrop {
    background: rgba(4, 15, 12, 0.85);
    backdrop-filter: blur(10px);
}

.admin-auth-form {
    padding: 32px 28px;
    text-align: center;
}

.admin-auth-icon {
    align-items: center;
    background: radial-gradient(circle, rgba(240, 189, 81, 0.25) 0%, rgba(6, 35, 27, 0) 70%);
    border: 1px solid rgba(240, 189, 81, 0.4);
    border-radius: 50%;
    color: var(--gold, #f0bd51);
    display: inline-flex;
    font-size: 2.2rem;
    height: 72px;
    justify-content: center;
    margin-bottom: 18px;
    width: 72px;
}

.admin-auth-form h2 {
    font-family: "Oswald", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-auth-form p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 22px;
}

.admin-auth-field {
    display: flex;
    gap: 10px;
}

.admin-auth-field input {
    background: rgba(4, 27, 21, 0.9);
    border: 1px solid rgba(240, 189, 81, 0.4);
    border-radius: 8px;
    color: #ffffff;
    flex: 1;
    font-size: 0.95rem;
    padding: 12px 14px;
}

.admin-auth-field input:focus {
    border-color: #10b981;
    outline: none;
}

.admin-auth-submit {
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #087a60 100%);
    border: 1px solid rgba(240, 189, 81, 0.5);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 8px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: background 180ms ease, transform 180ms ease;
}

.admin-auth-submit:hover {
    background: linear-gradient(135deg, #12d494 0%, #099474 100%);
    transform: translateY(-1px);
}

.admin-auth-error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 14px;
    padding: 10px 14px;
}

.admin-search-wrap,
.admin-filter-wrap {
    align-items: center;
    background: rgba(4, 27, 21, 0.8);
    border: 1px solid rgba(240, 189, 81, 0.3);
    border-radius: 6px;
    display: flex;
    padding: 0 14px;
}

.admin-search-wrap i {
    color: var(--gold, #f0bd51);
    margin-right: 10px;
}

.admin-search-wrap input,
.admin-filter-wrap select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.88rem;
    min-height: 44px;
    outline: none;
    width: 100%;
}

.admin-filter-wrap select option {
    background: #063027;
    color: #ffffff;
}

/* Cards Grid */
.admin-stations-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.admin-station-card {
    background: rgba(6, 48, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-station-card:hover {
    border-color: rgba(240, 189, 81, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.admin-card-top {
    align-items: center;
    display: flex;
    gap: 14px;
    padding-right: 60px;
}

.admin-logo-box {
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    flex: 0 0 60px;
    height: 60px;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.admin-logo-box img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-info-box {
    min-width: 0;
}

.admin-info-box h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-info-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.74rem;
    margin-top: 4px;
}

.admin-freq-badge {
    background: var(--gold, #f0bd51);
    border-radius: 4px;
    color: #041b15;
    font-family: "Oswald", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    position: absolute;
    right: 18px;
    top: 18px;
}

.admin-card-stream-preview {
    background: rgba(4, 27, 21, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-family: monospace;
    font-size: 0.70rem;
    overflow: hidden;
    padding: 6px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.admin-btn-edit,
.admin-btn-play,
.admin-btn-delete {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    font-size: 0.76rem;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    padding: 8px 12px;
    transition: background 180ms ease, transform 180ms ease;
}

.admin-btn-edit {
    background: rgba(240, 189, 81, 0.18);
    border: 1px solid rgba(240, 189, 81, 0.4);
    color: var(--gold, #f0bd51);
    flex: 1;
}

.admin-btn-edit:hover {
    background: rgba(240, 189, 81, 0.32);
}

.admin-btn-play {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.admin-btn-play:hover {
    background: rgba(16, 185, 129, 0.32);
}

.admin-btn-delete {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.admin-btn-delete:hover {
    background: rgba(239, 68, 68, 0.32);
}

/* Modal de Edición Visual */
.admin-edit-dialog {
    background: rgba(6, 48, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(240, 189, 81, 0.5);
    border-radius: 14px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    max-width: 680px;
    padding: 28px;
    width: calc(100% - 32px);
    margin: auto;
}

.admin-edit-dialog::backdrop {
    background: rgba(4, 27, 21, 0.75);
    backdrop-filter: blur(6px);
}

.admin-edit-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-edit-header h2 {
    font-family: "Oswald", sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.admin-edit-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    height: 36px;
    width: 36px;
}

.admin-edit-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.admin-field input,
.admin-field select {
    background: rgba(4, 27, 21, 0.85);
    border: 1px solid rgba(240, 189, 81, 0.35);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.88rem;
    min-height: 44px;
    outline: none;
    padding: 0 12px;
    width: 100%;
}

.admin-field input:focus,
.admin-field select:focus {
    border-color: var(--gold, #f0bd51);
    box-shadow: 0 0 0 3px rgba(240, 189, 81, 0.2);
}

.admin-field textarea {
    background: rgba(4, 27, 21, 0.85);
    border: 1px solid rgba(240, 189, 81, 0.35);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.admin-field textarea:focus {
    border-color: var(--gold, #f0bd51);
    box-shadow: 0 0 0 3px rgba(240, 189, 81, 0.2);
}

.admin-stream-input-wrap {
    display: flex;
    gap: 10px;
}

.admin-test-audio-btn {
    align-items: center;
    background: #10b981;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.80rem;
    font-weight: 600;
    gap: 6px;
    padding: 0 16px;
    white-space: nowrap;
    transition: background 180ms ease;
}

.admin-test-audio-btn.is-playing {
    background: #ef4444 !important;
}

.admin-upload-logo-btn {
    align-items: center;
    background: rgba(240, 189, 81, 0.18);
    border: 1px solid rgba(240, 189, 81, 0.4);
    border-radius: 6px;
    color: var(--gold, #f0bd51);
    cursor: pointer;
    display: flex;
    font-family: "Oswald", sans-serif;
    font-size: 0.80rem;
    font-weight: 600;
    gap: 6px;
    padding: 0 14px;
    white-space: nowrap;
    min-height: 44px;
    transition: background 180ms ease;
}

.admin-upload-logo-btn:hover {
    background: rgba(240, 189, 81, 0.35);
}

.admin-logo-preview-wrap {
    align-items: center;
    display: flex;
    gap: 14px;
}

.admin-logo-preview-wrap img {
    background: #ffffff;
    border-radius: 6px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
    width: 48px;
}

.admin-edit-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-btn-secondary,
.admin-btn-primary {
    border-radius: 6px;
    cursor: pointer;
    font-family: "Oswald", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    text-transform: uppercase;
}

.admin-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}

.admin-btn-primary {
    background: var(--gold, #f0bd51);
    border: none;
    color: #041b15;
}
