/* ============================
   ÁREA PRINCIPAL
============================ */
.unreel-playlists-page {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

/* ============================
   HEADER
============================ */
.unreel-playlists-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unreel-header-left {
    display: flex;
    flex-direction: column;
}

.unreel-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unreel-header-title {
    font-size: 24px;
    font-weight: bold;
}

.unreel-name-input {
    font-size: 22px;
    padding: 5px;
    width: 260px;
}

.unreel-icon-btn {
    background: #eee;
    border: 1px solid #ccc;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

/* ============================
   BOTÕES
============================ */
.unreel-btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.unreel-btn-primary {
    background: #0073aa;
    color: #fff;
}

.unreel-btn-danger {
    background: #d63638;
    color: #fff;
}

.unreel-btn-secondary {
    background: #ccc;
}

/* ============================
   COLUNAS
============================ */
.unreel-playlists-columns {
    display: flex;
    gap: 20px;
}

.unreel-column {
    width: 50%;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
}

.unreel-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* ============================
   LISTAS
============================ */
.unreel-media-list,
.unreel-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unreel-media-row,
.unreel-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.unreel-media-row:hover,
.unreel-playlist-item:hover {
    background: #f0f0f0;
}

/* ============================
   MINIATURAS (THUMB)
============================ */
.unreel-thumb {
    width: 50px;
    height: 40px;
    border-radius: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================
   THUMBNAILS FLAT E SÓBRIOS
============================ */
.unreel-thumb {
    width: 50px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #f3f3f3;
    border: 1px solid #d0d0d0;
    position: relative;
}

/* Ícone base */
.unreel-thumb::after {
    color: #444;
    font-size: 18px;
    font-weight: 600;
}

/* ============================
   VÍDEO (flat)
============================ */
.unreel-type-mp4 {
    background: #e8e8e8;
    border-color: #c8c8c8;
}
.unreel-type-mp4::after {
    content: "▶";
    font-size: 20px;
    color: #222;
}

/* ============================
   IMAGEM (flat)
============================ */
.unreel-type-jpg,
.unreel-type-jpeg,
.unreel-type-png {
    background: #e8e8e8;
    border-color: #c8c8c8;
}
.unreel-type-jpg::after,
.unreel-type-jpeg::after,
.unreel-type-png::after {
    content: "▣";
    font-size: 18px;
    color: #333;
}

/* ============================
   URL (flat)
============================ */
.unreel-type-url {
    background: #e8e8e8;
    border-color: #c8c8c8;
}
.unreel-type-url::after {
    content: "⛓";
    font-size: 18px;
    color: #333;
}
/* ============================
   TEXTO
============================ */
.unreel-media-main,
.unreel-playlist-main {
    flex: 1;
}

.unreel-media-text,
.unreel-playlist-text {
    display: flex;
    flex-direction: column;
}

/* ============================
   HANDLE (DRAG)
============================ */
.unreel-playlist-handle {
    cursor: grab;
    font-size: 18px;
    padding: 0 6px;
}

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

.unreel-modal-content {
    background: #fff;
    padding: 25px;
    width: 400px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.unreel-modal-content h3 {
    margin-top: 0;
}

/* ============================
   FOOTER
============================ */
.unreel-playlist-footer {
    margin-top: 20px;
    text-align: right;
}
/* Modal maior */
.unreel-modal-large {
    width: 800px;
    max-width: 90%;
}

/* Flex container */
.unreel-modal-flex {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Cada lado */
.unreel-modal-side {
    flex: 1;
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.unreel-modal-side h4 {
    margin-top: 0;
}

.unreel-modal-side input[type="text"],
.unreel-modal-side input[type="file"] {
    width: 100%;
    margin-bottom: 12px;
}
/* Container dos botões */
.unreel-column-header {
    display: flex;
    align-items: center;   /* Alinha verticalmente */
    justify-content: space-between;
}

/* Dropdown */
.unreel-column-header select {
    height: 36px;          /* mesma altura do botão */
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    line-height: 36px;     /* garante alinhamento interno */
}

/* Botão Enviar Mídia */
.unreel-btn.unreel-btn-primary {
    height: 36px;
    display: flex;
    align-items: center;
}