/**
 * Playmoon-style premium player UI (watch.playmoon.xyz)
 * Scoped under .txm-player
 */
.txm-player {
    --pm-primary: #8b5cf6;
    --pm-primary-glow: rgba(139, 92, 246, 0.5);
    --pm-font: 'Inter', system-ui, sans-serif;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    font-family: var(--pm-font);
}

.txm-player__engine {
    position: absolute;
    inset: 0;
    background: #000;
}

.txm-player__engine video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.txm-player__embed {
    position: absolute;
    inset: 0;
}

.txm-player__embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.txm-player__poster-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    cursor: pointer;
    background: #000;
}

.txm-poster-play-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Thumbnail play — icon size fixed; soft glow breathe (no big ring) */
@keyframes txm-poster-play-breathe {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(7px) scale(0.98);
        filter:
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
    }
    50% {
        opacity: 1;
        transform: translateX(7px) scale(1.04);
        filter:
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
    }
}

.txm-poster-play-wrap .txm-big-play-btn {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

.txm-poster-play-wrap .txm-big-play-btn::before {
    display: none;
}

.txm-poster-play-wrap .txm-play-thin {
    position: relative;
    z-index: 1;
    display: block;
    width: 110px;
    height: 110px;
    color: #fff;
    transform: translateX(7px);
    animation: txm-poster-play-breathe 2.4s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.txm-poster-play-wrap .txm-play-thin path {
    stroke-width: 3.6;
    vector-effect: non-scaling-stroke;
}

.txm-poster-play-wrap .txm-big-play-btn:hover .txm-play-thin {
    animation-play-state: paused;
    opacity: 1;
    transform: translateX(7px) scale(1.06);
    filter:
        drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 28px rgba(255, 255, 255, 0.5));
}

.txm-poster-play-wrap .txm-big-play-btn:hover {
    transform: none;
    background: transparent !important;
    box-shadow: none;
}

.txm-poster-play-wrap .txm-big-play-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 6px;
}

.txm-player__poster-layer[hidden] {
    display: none !important;
}

.txm-player__poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.txm-player__poster-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg, #1e293b, #020617);
}

.txm-custom-ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 16px !important;
    line-height: normal !important;
}

.txm-custom-ui.txm-ui-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (pointer: coarse), (hover: none) {
    .txm-custom-ui {
        transition: opacity 0.2s ease;
    }
    .txm-custom-ui.txm-ui-hidden .txm-bottom-controls,
    .txm-custom-ui.txm-ui-hidden .txm-stream-hub,
    .txm-custom-ui.txm-ui-hidden .txm-server-switch {
        pointer-events: none;
    }
}

/* Premium stream hub — glass server icon + compact menu */
.txm-stream-hub {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 200;
    pointer-events: auto;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.txm-stream-hub.txm-stream-hub--open {
    z-index: 260;
}

.txm-stream-hub__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(8, 12, 24, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.txm-stream-hub__icon-btn i {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.txm-stream-hub__icon-btn:hover,
.txm-stream-hub__icon-btn:focus-visible {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.38);
    transform: scale(1.04);
    outline: none;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(167, 139, 250, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.txm-stream-hub--open .txm-stream-hub__icon-btn {
    background: rgba(30, 27, 75, 0.62);
    border-color: rgba(167, 139, 250, 0.55);
    color: #fff;
}

.txm-stream-hub__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 188px;
    max-width: min(220px, calc(100vw - 28px));
    padding: 5px;
    margin: 0;
    border-radius: 12px;
    background: rgba(10, 14, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: txm-hub-menu-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top left;
}

@keyframes txm-hub-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.txm-stream-hub__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #e8edf5;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.txm-stream-hub__item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.txm-stream-hub__item--active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0.08));
    color: #fff;
}

.txm-stream-hub__label {
    display: inline;
    min-width: 0;
    line-height: 1.35;
}

.txm-stream-hub__brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.txm-stream-hub__dash {
    margin: 0 4px;
    opacity: 0.45;
    font-weight: 300;
}

.txm-stream-hub__node {
    font-weight: 500;
    color: rgba(226, 232, 240, 0.95);
}

.txm-stream-hub__tick {
    font-size: 15px;
    opacity: 0;
    flex-shrink: 0;
    color: var(--pm-primary, #a78bfa);
    transition: opacity 0.15s ease;
}

.txm-stream-hub__item--active .txm-stream-hub__tick {
    opacity: 1;
}

@media (max-width: 480px) {
    .txm-stream-hub {
        top: 8px;
        left: 8px;
    }
    .txm-stream-hub__icon-btn {
        width: 32px;
        height: 32px;
    }
    .txm-stream-hub__icon-btn i {
        font-size: 16px;
    }
    .txm-stream-hub__menu {
        min-width: 176px;
        padding: 4px;
    }
    .txm-stream-hub__item {
        padding: 8px 9px;
        font-size: 11px;
    }
}

.txm-gesture-layer {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.txm-custom-ui:not(.txm-ui-hidden) .txm-gesture-layer {
    z-index: 1;
}

.txm-custom-ui:not(.txm-ui-hidden) .txm-bottom-controls {
    z-index: 150;
}

.txm-custom-ui:not(.txm-ui-hidden) .txm-center-controls .txm-big-play-btn {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.txm-player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 55;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txm-center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txm-custom-ui:not(.txm-ui-hidden) .txm-center-controls {
    z-index: 180;
}

/* Paused overlay play — same thin outline icon as poster (no purple circle) */
.txm-center-controls .txm-big-play-btn,
.txm-center-controls .txm-big-play-btn--center {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent !important;
    border: none;
    box-shadow: none !important;
    animation: none !important;
}

.txm-center-controls .txm-big-play-btn:hover,
.txm-center-controls .txm-big-play-btn--center:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none;
}

.txm-center-controls .txm-play-thin {
    display: block;
    width: 90px;
    height: 90px;
    color: #fff;
    transform: translateX(5px);
    animation: txm-poster-play-breathe 2.4s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.txm-center-controls .txm-play-thin path {
    stroke-width: 3.6;
    vector-effect: non-scaling-stroke;
}

.txm-center-controls .txm-big-play-btn:hover .txm-play-thin {
    animation-play-state: paused;
    opacity: 1;
    transform: translateX(5px) scale(1.06);
    filter:
        drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 28px rgba(255, 255, 255, 0.5));
}

@keyframes txm-pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.txm-big-play-btn {
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
    border: none;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: txm-pulse-ring 2s infinite;
}

.txm-big-play-btn i {
    font-size: 45px;
    margin-left: 5px;
}

.txm-big-play-btn.txm-hidden {
    display: none !important;
}

/* Thumbnail play clicked — never flash center play while stream loads */
.txm-player.txm-player--starting [data-txm-big-play] {
    display: none !important;
}

.txm-big-play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(109, 40, 217, 0.7);
}

.txm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--pm-primary);
    border-radius: 50%;
    animation: txm-spin 1s linear infinite;
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
}

.txm-hidden { display: none !important; }

@keyframes txm-spin {
    to { transform: rotate(360deg); }
}

.txm-seek-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 15;
    pointer-events: none;
}

.txm-seek-overlay.txm-left { left: 0; border-radius: 0 50% 50% 0; }
.txm-seek-overlay.txm-right { right: 0; border-radius: 50% 0 0 50%; }
.txm-seek-overlay.txm-active { opacity: 1; }

.txm-seek-overlay .txm-icon-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
}

.txm-seek-overlay .txm-icon-box i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.txm-seek-overlay .txm-icon-box span {
    font-size: 12px;
    font-weight: 600;
}

.txm-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6) 50%, transparent);
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.txm-custom-ui.txm-ui-hidden .txm-bottom-controls {
    transform: translateY(100%);
}

.txm-time-row {
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
    display: flex;
    gap: 5px;
    user-select: none;
}

.txm-progress-row {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.txm-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
}

.txm-progress-container:hover { height: 6px; }

.txm-progress-bar {
    height: 100%;
    background: var(--pm-primary);
    width: 0%;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.txm-progress-handle {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.2s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.txm-progress-container:hover .txm-progress-handle {
    transform: translateY(-50%) scale(1);
}

.txm-buffered-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 2px;
}

.txm-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.txm-left-buttons,
.txm-right-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.txm-control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px !important;
    width: 45px !important;
    height: 45px !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.2s;
}

.txm-control-btn:hover {
    opacity: 1;
    color: var(--pm-primary);
    transform: scale(1.15);
}

.txm-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.txm-player .txm-volume-container input[type="range"].txm-volume-slider,
.txm-player input.txm-volume-slider[data-txm-volume] {
    width: 0;
    min-width: 0;
    max-width: 60px;
    height: 4px;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    flex: 0 0 auto;
    transition: width 0.3s, opacity 0.3s;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    vertical-align: middle;
}

.txm-volume-container:hover input.txm-volume-slider,
.txm-volume-container:focus-within input.txm-volume-slider {
    width: 60px;
    opacity: 1;
}

.txm-player input.txm-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.txm-player input.txm-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.txm-player input.txm-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.txm-player input.txm-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.txm-settings-menu {
    position: absolute;
    bottom: 90px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 30;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.txm-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.txm-close-settings {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

.txm-speed-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.txm-speed-options li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #ddd;
}

.txm-speed-options li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.txm-speed-options li.txm-active {
    color: var(--pm-primary);
    font-weight: 600;
}

.txm-speed-options li.txm-active::after {
    content: '✓';
    float: right;
}

.txm-ad-layer {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    pointer-events: auto;
}

.txm-ad-layer[hidden] { display: none !important; }

.txm-ad-skip {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.txm-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.txm-empty i {
    font-size: 48px;
}

.txm-ad-overlay {
    position: absolute;
    bottom: 72px;
    right: 12px;
    z-index: 35;
    max-width: 280px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}

.txm-ad-overlay:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
}

.txm-ad-overlay-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.txm-player__retry-btn {
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--pm-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

/* Fullscreen — hide page chrome; player covers visible viewport (mobile pseudo) */
html.txm-html-fs-lock,
html.txm-html-fs-lock body {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
    background: #000 !important;
}

html.txm-html-fs-lock .shell-header,
html.txm-html-fs-lock .shell-bottom-nav,
html.txm-html-fs-lock .ui-video .watch-breadcrumb,
html.txm-html-fs-lock .ui-video .watch-player-menu,
html.txm-html-fs-lock .ui-video .watch-main-info,
html.txm-html-fs-lock .ui-video .ad-below-player,
html.txm-html-fs-lock .ui-video .ad-above-player,
html.txm-html-fs-lock .ui-video .side-column,
html.txm-html-fs-lock .ui-video .watch-episodes-block,
html.txm-html-fs-lock .ui-video .glass-card.watch-panel {
    display: none !important;
}

html.txm-html-fs-lock .ui-video .watch-player-frame,
html.txm-html-fs-lock .ui-video .watch-player-shell,
html.txm-html-fs-lock .ui-video .watch-player-viewport {
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.txm-player:fullscreen,
.txm-player:-webkit-full-screen,
.txm-player:-moz-full-screen,
.txm-player.txm-player--fs {
    aspect-ratio: unset !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
}

.txm-player:fullscreen .txm-player__engine,
.txm-player:-webkit-full-screen .txm-player__engine,
.txm-player:-moz-full-screen .txm-player__engine,
.txm-player.txm-player--fs .txm-player__engine {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.txm-player:fullscreen .txm-player__engine video,
.txm-player:-webkit-full-screen .txm-player__engine video,
.txm-player:-moz-full-screen .txm-player__engine video,
.txm-player.txm-player--fs .txm-player__engine video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.txm-player:fullscreen .txm-custom-ui,
.txm-player:-webkit-full-screen .txm-custom-ui,
.txm-player.txm-player--fs .txm-custom-ui {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.txm-player:fullscreen .txm-player__poster-layer,
.txm-player:-webkit-full-screen .txm-player__poster-layer,
.txm-player.txm-player--fs .txm-player__poster-layer {
    inset: 0;
}

/* Native fullscreen on phone: fill screen */
.txm-player:fullscreen .txm-player__engine video,
.txm-player:-webkit-full-screen .txm-player__engine video,
.txm-player.txm-player--fs .txm-player__engine video {
    object-fit: cover !important;
}

/* Desktop landscape: show full frame */
@media (min-width: 901px) and (orientation: landscape) {
    .txm-player:fullscreen .txm-player__engine video,
    .txm-player:-webkit-full-screen .txm-player__engine video,
    .txm-player.txm-player--fs .txm-player__engine video {
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .txm-center-controls .txm-play-thin {
        width: 80px;
        height: 80px;
    }
    .txm-center-controls .txm-play-thin path {
        stroke-width: 3.35;
    }
    .txm-poster-play-wrap .txm-big-play-btn,
    .txm-big-play-btn:not(.txm-big-play-btn--center) {
        width: 70px;
        height: 70px;
    }
    .txm-big-play-btn:not(.txm-big-play-btn--center) i { font-size: 35px; }
    .txm-poster-play-wrap .txm-play-thin {
        width: 80px;
        height: 80px;
    }
    @keyframes txm-poster-play-breathe {
        0%, 100% {
            opacity: 0.9;
            transform: translateX(5px) scale(0.98);
            filter:
                drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
        }
        50% {
            opacity: 1;
            transform: translateX(5px) scale(1.04);
            filter:
                drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55))
                drop-shadow(0 0 22px rgba(255, 255, 255, 0.38));
        }
    }
    .txm-poster-play-wrap .txm-big-play-btn:hover .txm-play-thin {
        transform: translateX(5px) scale(1.06);
    }
    .txm-poster-play-wrap .txm-play-thin path {
        stroke-width: 3.35;
    }
    .txm-volume-container input.txm-volume-slider { display: none; }
    .txm-control-btn {
        font-size: 26px !important;
        width: 40px !important;
        height: 40px !important;
    }
    .txm-bottom-controls {
        padding: 30px 10px 10px;
    }
}
