/* Media players under template buttons (public profiles and Admin Previewer). Colours come from the template
   (currentColor); only neutral tints are added. Icons: Phosphor Light (Models/PhosphorIcons.cs). */

.lt-media-icon { display: inline-flex; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; font-style: normal; }
.lt-media-icon .ph-icon, .lt-media-caret .ph-icon { display: flex; width: 100%; height: 100%; }
.lt-media-icon svg, .lt-media-panel .ph-icon svg { width: 100%; height: 100%; }
.lt-media-caret { display: inline-flex; font-style: normal; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; transition: transform 0.2s ease; }
.lt-media-caret svg { width: 100%; height: 100%; }
[data-media-toggle][aria-expanded="true"] .lt-media-caret { transform: rotate(180deg); }

.lt-media-panel { width: 100%; max-width: 670px; margin: 10px auto 0 auto; text-align: center; }
.profile-container.lt-v2 .profile-cell > .lt-media-panel { max-width: var(--lt-content-width, 670px); }
.preview-a-cont > .lt-media-panel { width: 80%; margin: 10px 0 0 10%; }
.lt-media-box { margin: 0 auto; }
.lt-media-panel[hidden] { display: none !important; }

.lt-media-frame { position: relative; width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: rgba(127, 127, 127, 0.12); }
.lt-media-frame.is-ratio { height: 0; }
.lt-media-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lt-media-frame.is-ratio iframe, .lt-media-frame.is-ratio .lt-media-unavailable { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Shown in the player area only when the provider cannot provide a player (the "Open in ..." link stays below) */
.lt-media-unavailable { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 12px; box-sizing: border-box; font-size: 12px; text-align: center; opacity: 0.75; }

.lt-media-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: inherit; opacity: 0.8; }
.lt-media-open:hover, .lt-media-open:focus { color: inherit; opacity: 1; }
.lt-media-open .ph-icon { display: inline-flex; width: 14px; height: 14px; }
.lt-media-open span .ph-icon { display: inline-flex; width: 100%; height: 100%; }
.lt-media-open > span:last-child { display: inline-flex; width: 14px; height: 14px; }

/* Admin > Links: provider and display mode under the link URL (brand colours only) */
.lt-edit-media { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.lt-edit-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: #eef7fc; color: #00427d; font-size: 12.5px; white-space: nowrap; }
.lt-edit-chip .lt-media-icon { color: #02a7df; }
.lt-edit-modes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: #eef2f6; }
.lt-edit-modes button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #273552; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.lt-edit-modes button[aria-checked="true"] { background: #fff; color: #00427d; font-weight: 600; box-shadow: 0 1px 3px rgba(39, 53, 82, 0.12); }
.lt-edit-modes button:focus { outline: none; }
.lt-edit-modes button:focus-visible { box-shadow: 0 0 0 3px rgba(2, 167, 223, 0.35); }
@media (max-width: 600px) {
    .lt-edit-modes { width: 100%; }
    .lt-edit-modes button { flex: 1 1 0; min-width: 0; padding: 0 4px; white-space: normal; line-height: 1.2; }
}

/* Template link styles (borders, backgrounds, fixed widths) must not turn "Open in ..." into a second button */
.lt-media-panel a.lt-media-open { width: auto !important; min-height: 0 !important; margin-left: 0; padding: 2px 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-decoration: none; }

/* Admin > Links: loading / failed-load notice */
.lt-links-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 16px 0; padding: 10px 14px; border: 1px solid #d5dbe5; border-radius: 8px; background: #f7f9fb; color: #273552; font-size: 14px; }
.lt-links-state .admin_btn { margin: 0; }
