* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #12343b, #050707 70%);
    color: white;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

header {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #00f5ff;
}

#buscador {
    width: 280px;
    padding: 12px 18px;
    border-radius: 25px;
    border: 1px solid #00f5ff;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    outline: none;
}

.hero {
    padding: 60px 45px 30px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    color: #b8faff;
}

main {
    padding: 20px 45px;
}

main h2 {
    margin-bottom: 20px;
}

.canales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.canal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 20px;
    padding: 25px;
    min-height: 150px;
    cursor: pointer;
    transition: 0.3s;
}

.canal:hover {
    transform: scale(1.05);
    border-color: #00f5ff;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
}

.canal h3 {
    margin-bottom: 10px;
}

.canal p {
    color: #9ffcff;
    font-size: 14px;
}

.reproductor {
    margin: 20px 45px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.18);
}

.reproductor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

#cerrar-reproductor {
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    background: #00f5ff;
    color: black;
    cursor: pointer;
    font-weight: bold;
}

#video-player {
    width: 100%;
    max-height: 520px;
    background: black;
    border-radius: 18px;
}

.oculto {
    display: none;
}

.admin-link {
    color: #00f5ff;
    text-decoration: none;
    font-weight: bold;
}

.admin-form {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin-bottom: 40px;
}

.admin-form input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    outline: none;
}

.admin-form button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #00f5ff;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.55);
    border-right: 1px solid rgba(0, 245, 255, 0.22);
    padding: 30px 20px;
}

.sidebar-logo {
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.sidebar-logo span {
    color: #00f5ff;
}

.sidebar nav {
    display: grid;
    gap: 12px;
}

.sidebar nav a {
    color: #dffcff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 14px;
    transition: 0.25s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(0, 245, 255, 0.16);
    color: #00f5ff;
}

.admin-content {
    flex: 1;
    padding: 35px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-topbar p {
    color: #a9faff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.stat-card,
.panel-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 245, 255, 0.22);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.08);
}

.stat-card h3 {
    color: #a9faff;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 32px;
    color: white;
}

.panel-card {
    margin-bottom: 30px;
}

.panel-card h2 {
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.15);
    text-align: left;
}

.admin-table th {
    color: #00f5ff;
}

.table-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.estado {
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: bold;
}

.estado.activo {
    background: rgba(0, 255, 120, 0.18);
    color: #7dffb2;
}

.estado.inactivo {
    background: rgba(255, 80, 80, 0.18);
    color: #ff8a8a;
}

.danger-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
}

.admin-search {
    width: 100%;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 245, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    outline: none;
    margin-bottom: 20px;
}

.acciones {
    display: flex;
    gap: 12px;
}

.edit-link {
    color: #00f5ff;
    text-decoration: none;
    font-weight: bold;
}

.danger-link:hover,
.edit-link:hover {
    text-decoration: underline;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.system-grid p {
    background: rgba(0, 0, 0, 0.35);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.15);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.action-btn {
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.35);
    background: rgba(0, 245, 255, 0.12);
    color: #dffcff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 245, 255, 0.25);
}

.danger-btn {
    border-color: rgba(255, 90, 90, 0.45);
    background: rgba(255, 90, 90, 0.12);
    color: #ff9b9b;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-card {
    width: min(520px, 92vw);
    background: rgba(6, 22, 36, 0.96);
    border: 1px solid rgba(0, 245, 255, 0.35);
    border-radius: 24px;
    padding: 28px;
}

.modal-card form {
    display: grid;
    gap: 14px;
}

.modal-card input[type="text"] {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.35);
    background: rgba(0,0,0,0.35);
    color: white;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
/* Hudson TV CMS Enterprise v3.2 - Monitoreo y panel profesional */
.muted {
    color: #a9faff;
    opacity: 0.78;
    margin-bottom: 14px;
}

.monitor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

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

.monitor-table .small-url {
    display: block;
    max-width: 420px;
    color: rgba(210, 250, 255, 0.62);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}

.stream-status.neutral {
    background: rgba(255, 255, 255, 0.09);
    color: #dffcff;
    border-color: rgba(255, 255, 255, 0.12);
}

.stream-status.checking {
    background: rgba(0, 245, 255, 0.14);
    color: #7cf7ff;
    border-color: rgba(0, 245, 255, 0.35);
}

.stream-status.online {
    background: rgba(0, 255, 140, 0.16);
    color: #77ffb7;
    border-color: rgba(0, 255, 140, 0.35);
}

.stream-status.offline {
    background: rgba(255, 80, 100, 0.16);
    color: #ff9aa8;
    border-color: rgba(255, 80, 100, 0.35);
}

.enterprise-home-actions .table-actions {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .monitor-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .monitor-table .small-url {
        max-width: 240px;
    }
}

/* Hudson TV CMS Enterprise v4.0 - Monitor vivo */
.monitor-summary .online-card {
    border-color: rgba(0, 255, 120, 0.45);
}

.monitor-summary .offline-card {
    border-color: rgba(255, 70, 70, 0.45);
}

.monitor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.monitor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.muted {
    color: rgba(210, 250, 255, 0.75);
    margin-top: 6px;
}

.small-url {
    font-size: 11px;
    color: rgba(220, 250, 255, 0.55);
    max-width: 360px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.stream-status.neutral {
    background: rgba(255, 255, 255, 0.12);
    color: #d9f8ff;
}

.stream-status.checking {
    background: rgba(255, 210, 80, 0.2);
    color: #ffe082;
    border: 1px solid rgba(255, 210, 80, 0.35);
}

.stream-status.online {
    background: rgba(0, 255, 120, 0.18);
    color: #55ff9a;
    border: 1px solid rgba(0, 255, 120, 0.42);
}

.stream-status.offline {
    background: rgba(255, 50, 80, 0.18);
    color: #ff758f;
    border: 1px solid rgba(255, 50, 80, 0.42);
}

.monitor-table td,
.monitor-table th {
    vertical-align: top;
}

.stream-quality {
    max-width: 220px;
    color: #bffaff;
    font-size: 12px;
}
