/* Catalogue media — Events + Broadcast. */

.admin-catalogue-media-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 0 0 auto;
    margin: 0;
}

.admin-catalogue-item {
    width: 17rem;
    flex: 0 0 17rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    color: var(--text-muted);
}

.admin-catalogue-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    height: 1rem;
    color: var(--text-muted);
}

.admin-catalogue-tile {
    position: relative;
    width: 17rem;
}

.admin-catalogue-frame {
    width: 17rem;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid var(--border, #1e293b);
    border-radius: 0.45rem;
    background: var(--bg, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

.admin-catalogue-frame.is-still,
.admin-catalogue-frame.is-promo {
    width: 17rem;
    aspect-ratio: 16 / 9;
    height: auto;
}

.admin-catalogue-frame img,
.admin-catalogue-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-catalogue-frame.is-empty {
    color: #64748b;
}

.admin-catalogue-clear {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.admin-catalogue-list {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    bottom: auto;
    z-index: 40;
    width: 17rem;
    max-height: 12rem;
    overflow: auto;
    padding: 0.35rem;
    border: 1px solid var(--border, #1e293b);
    border-radius: 0.4rem;
    background: var(--bg-elevated, #0f172a);
    text-transform: none;
    letter-spacing: 0;
}

.admin-catalogue-list[hidden] {
    display: none;
}

.admin-catalogue-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.25rem;
    padding: 0.3rem;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--text, #f1f5f9);
    text-align: left;
    cursor: pointer;
}

.admin-catalogue-choice:last-child {
    margin-bottom: 0;
}

.admin-catalogue-choice.is-on,
.admin-catalogue-choice:hover {
    background: rgba(57, 137, 198, 0.18);
}

.admin-catalogue-choice img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
    border-radius: 0.25rem;
    flex: 0 0 auto;
}

.admin-catalogue-empty {
    margin: 0.4rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
}

.admin-catalogue-upload {
    display: block;
    width: 100%;
    margin: 0 0 0.35rem;
    padding: 0.4rem 0.5rem;
    border: 1px dashed color-mix(in srgb, #7dd3fc 35%, var(--border, #1e293b));
    border-radius: 0.3rem;
    background: transparent;
    color: var(--text, #f1f5f9);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-catalogue-upload:hover {
    background: rgba(57, 137, 198, 0.18);
}
