/* ============================
   CABEÇALHO PADRÃO
============================ */
.unreel-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.unreel-page-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

/* ============================
   GRID DE 4 COLUNAS (Players)
============================ */
.unreel-players-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1200px) {
    .unreel-players-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .unreel-players-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .unreel-players-list {
        grid-template-columns: 1fr;
    }
}

/* ============================
   CARD DO PLAYER
============================ */
.unreel-player-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 260px;
    transition: all .2s ease;
}

.unreel-player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.unreel-player-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.unreel-player-meta {
    font-size: 14px;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================
   STATUS
============================ */
.unreel-status {
    font-weight: 700;
}

.unreel-status.online { color: #1a7f37; }
.unreel-status.unstable { color: #d4a017; }
.unreel-status.offline { color: #b3261e; }
.unreel-status.blackout { color: purple; }

/* ============================
   PLAYLIST STATUS
============================ */
.unreel-playlist-status {
    font-weight: 600;
}

.unreel-playlist-status.ok { color: #1a7f37; }
.unreel-playlist-status.outdated { color: #b3261e; }
.unreel-playlist-status.none { color: #777; }

/* ============================
   BOTÕES — NORMALIZAÇÃO
============================ */
.unreel-btn,
.unreel-btn:link,
.unreel-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer;
    white-space: nowrap;
    height: 32px;
    line-height: 1;
    background: #4a4a4a;
    color: #fff;
    transition: background .2s ease;
}

.unreel-btn:hover {
    background: #3a3a3a;
}

/* Botões especiais */
.unreel-btn-primary {
    background: #0073aa !important;
}

.unreel-btn-primary:hover {
    background: #005f8a !important;
}

.unreel-btn-secondary {
    background: #6c757d !important;
}

.unreel-btn-secondary:hover {
    background: #5a6268 !important;
}

.unreel-btn-danger {
    background: #d63638 !important;
    padding: 6px 6px !important;
}

.unreel-btn-danger:hover {
    background: #b02a2c !important;
}

.unreel-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================
   BOTÕES EM 2 LINHAS (Players)
============================ */
.unreel-player-card-right {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .unreel-player-card-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   MODAL
============================ */
.unreel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.unreel-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
}

.unreel-modal-flex {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.unreel-modal-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.unreel-modal-side label {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unreel-modal-side input,
.unreel-modal-side select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.unreel-modal-side input[disabled] {
    background: #eee;
    color: #666;
}

/* ============================
   CONTAINER DA PÁGINA (Players)
============================ */
.unreel-players-page {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* ============================
   DASHBOARD
============================ */
.unreel-dashboard {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.unreel-dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.unreel-dashboard-subtitle {
    font-size: 15px;
    color: #666;
    margin-top: 4px;
}

.unreel-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.unreel-dashboard-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none !important;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .2s ease;
}

.unreel-dashboard-card:hover {
    border-color: #ccc;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.unreel-dashboard-icon svg {
    width: 42px;
    height: 42px;
    stroke: #111;
}

.unreel-dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.unreel-dashboard-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.unreel-section-title {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 700;
}

.unreel-dashboard-players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.unreel-mini-player-card {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unreel-mini-status {
    font-weight: 700;
}

.unreel-mini-status.online { color: #1a7f37; }
.unreel-mini-status.unstable { color: #d4a017; }
.unreel-mini-status.offline { color: #b3261e; }
.unreel-mini-status.blackout { color: purple; }

.unreel-mini-player-actions {
    display: flex;
    gap: 8px;
}

.unreel-mini-player-actions .unreel-btn {
    flex: 1;
}

/* ============================
   MÍDIAS — NOVO PADRÃO
============================ */
.unreel-media-page {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.unreel-media-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* FORMULÁRIOS DE MÍDIA */
.unreel-media-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .unreel-media-forms {
        grid-template-columns: 1fr;
    }
}

.unreel-media-form-block {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.unreel-media-form-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.unreel-media-form-block label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.unreel-media-form-block input[type="text"],
.unreel-media-form-block input[type="url"],
.unreel-media-form-block input[type="file"],
.unreel-media-form-block select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* ============================
   TABELA DE MÍDIAS
============================ */
.unreel-media-table-wrapper {
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 15px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.unreel-media-table-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.unreel-media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.unreel-media-table thead th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: #555;
}

.unreel-media-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.unreel-media-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.unreel-media-table tbody tr:hover {
    background: #f3f3f3;
}

.unreel-media-actions .unreel-btn {
    flex: 1;
}
/* ============================
   MÍDIAS — CONTAINER GERAL
============================ */
.unreel-media-frontend {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.unreel-media-frontend h2 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
}

/* ============================
   GRID DOS FORMULÁRIOS
============================ */
.unreel-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .unreel-media-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   CARD DOS FORMULÁRIOS
============================ */
.unreel-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.unreel-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

/* Inputs */
.unreel-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.unreel-form input[type="text"],
.unreel-form input[type="url"],
.unreel-form input[type="file"],
.unreel-form input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* ============================
   TABELA DE MÍDIAS
============================ */
.unreel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.unreel-table thead th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: #555;
}

.unreel-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.unreel-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.unreel-table tbody tr:hover {
    background: #f3f3f3;
}

/* Badge Global */
.unreel-badge {
    background: #0073aa;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* ============================
   MODAL (já existia, só reforço)
============================ */
.unreel-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

