.tmv-player {
    width: 100%;
    margin: 24px 0;
}

.tmv-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
}

.tmv-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tmv-load-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: #151515;
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.tmv-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmv-load-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
}

.tmv-play-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    padding-left: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.tmv-load-text {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.tmv-source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tmv-source-tab {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.tmv-source-tab:hover,
.tmv-source-tab:focus {
    border-color: rgba(0, 0, 0, 0.35);
    outline: none;
}

.tmv-source-tab.is-active {
    background: #202020;
    color: #fff;
    border-color: #202020;
}

.tmv-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.tmv-source-links a {
    text-decoration: none;
}

@supports not (aspect-ratio: 16 / 9) {
    .tmv-frame-wrap {
        height: 0;
        padding-bottom: 56.25%;
    }
}
.tmv-player .tmv-play-help { margin:10px 0; font-size:14px; line-height:1.45; }
.tmv-player button:focus-visible, .tmv-player a:focus-visible { outline:3px solid currentColor; outline-offset:3px; }

/* 1.1.0 preview + compatibility with legacy responsive iframe wrappers. */
.tmv-preview-badge {
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 1px dashed currentColor;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    opacity: .82;
}
.tmv-preview-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999999;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    font-size: 13px;
    line-height: 1.45;
}
.tmv-host-normalized {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
}
.tmv-host-normalized > .tmv-player {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}
@media (max-width: 640px) {
    .tmv-player { margin: 18px 0; }
    .tmv-source-tabs { gap: 6px; }
    .tmv-source-tab { padding: 9px 12px; min-height: 44px; }
    .tmv-play-icon { width: 64px; height: 64px; }
    .tmv-load-text { bottom: 18px; }
}
