/**
 * Thanos Theme - Premium Video Player CSS
 * Theater Mode, Speed Control, Resume Dialog, Mobile Gestures
 */

/* ==========================================================================
   Player Container
   ========================================================================== */
.thanos-player {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--thanos-radius-lg, 12px);
}

.thanos-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thanos-player.fullscreen {
    border-radius: 0;
}

/* ==========================================================================
   Speed Control
   ========================================================================== */
.thanos-speed-menu {
    position: relative;
}

.thanos-speed-menu .thanos-menu-dropdown {
    min-width: 100px;
}

.thanos-speed-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 100;
    animation: speedPopIn 0.2s ease-out;
}

.thanos-speed-indicator.visible {
    display: block;
}

@keyframes speedPopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==========================================================================
   Resume Dialog
   ========================================================================== */
.thanos-resume-dialog {
    display: none;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--thanos-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 100;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}
.resume-actions button {
    color: var(--thanos-text);
}
.thanos-resume-dialog.visible {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.thanos-resume-dialog p {
    margin: 0 0 12px;
    color: var(--thanos-text);
    font-size: 0.9rem;
}

.thanos-resume-dialog .resume-time {
    color: var(--thanos-primary, #e50914);
    font-weight: 600;
}

.thanos-resume-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.thanos-resume-buttons button {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.thanos-resume-yes {
    background: var(--thanos-primary, #e50914);
    color: #fff;
}

.thanos-resume-yes:hover {
    background: var(--thanos-primary-hover, #b2070f);
}

.thanos-resume-no {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.thanos-resume-no:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Lights-toggle
   ========================================================================== */
#thanos-lights-toggle {
    background: var(--thanos-bg);
    color: var(--thanos-text);
    margin-bottom: 5px;
}

/* ==========================================================================
   Skip Intro/Outro Button
   ========================================================================== */
.thanos-skip-intro {
    display: none;
    position: absolute;
    bottom: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 50;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease;
}

.thanos-skip-intro:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.thanos-skip-intro.visible {
    display: block;
}

/* ==========================================================================
   Gesture Feedback
   ========================================================================== */
.thanos-gesture-feedback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

.thanos-gesture-feedback.visible {
    display: flex;
}

.thanos-gesture-seek {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 16px 24px;
    border-radius: 12px;
    animation: gesturePopIn 0.2s ease-out;
}

.thanos-gesture-seek svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.thanos-gesture-seek span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.thanos-gesture-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 16px 20px;
    border-radius: 12px;
    animation: gesturePopIn 0.2s ease-out;
}

.thanos-gesture-volume svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.thanos-volume-bar-vertical {
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.thanos-volume-bar-vertical .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--thanos-primary, #e50914);
    border-radius: 2px;
    transition: height 0.1s ease;
}

@keyframes gesturePopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Double tap seek ripple */
.thanos-double-tap-left,
.thanos-double-tap-right {
    position: absolute;
    top: 0;
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}

.thanos-double-tap-left {
    left: 0;
}

.thanos-double-tap-right {
    right: 0;
}

.thanos-double-tap-left.active,
.thanos-double-tap-right.active {
    opacity: 1;
    animation: doubleTapRipple 0.5s ease-out;
}

.thanos-double-tap-circle {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanos-double-tap-circle svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.thanos-double-tap-circle span {
    position: absolute;
    bottom: -25px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

@keyframes doubleTapRipple {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   Ambient Mode (Glow effect)
   ========================================================================== */
.thanos-player.ambient-mode::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: inherit;
    filter: blur(100px) saturate(1.5);
    opacity: 0.3;
    z-index: -1;
    animation: ambientPulse 4s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* ==========================================================================
   Enhanced Controls
   ========================================================================== */
.thanos-player-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thanos-player.show-ui .thanos-player-controls,
.thanos-player:hover .thanos-player-controls,
.thanos-player:not(.playing) .thanos-player-controls {
    opacity: 1;
}

.thanos-player-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

/* Center play button */
.thanos-player-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.thanos-player-play-big {
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thanos-player-play-big:hover {
    background: var(--thanos-primary, #e50914);
    transform: scale(1.1);
}

.thanos-player-play-big svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.thanos-player.playing .thanos-player-play-big {
    opacity: 0;
    pointer-events: none;
}

/* Bottom bar */
.thanos-player-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 16px 12px;
    z-index: 20;
}

/* Progress bar */
.thanos-player-progress {
    position: relative;
    height: 5px;
    margin-bottom: 8px;
    overflow: visible; /* Allow preview tooltip to show above */
}

.thanos-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.thanos-progress-bar:hover {
    height: 10px;
    margin-top: -5px;
}

.thanos-player-progress:hover .thanos-progress-bar {
    height: 10px;
    margin-top: -5px;
}

.thanos-progress-loaded {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.thanos-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--thanos-primary, #e50914);
    border-radius: 3px;
}

.thanos-progress-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--thanos-primary, #e50914);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thanos-progress-bar:hover .thanos-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

.thanos-progress-tooltip {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 8px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.thanos-progress-tooltip.visible {
    opacity: 1;
}

/* Progress Preview (Time Preview on Hover) */
.thanos-progress-preview {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
}

.thanos-progress-preview.visible {
    opacity: 1;
    visibility: visible;
}

.thanos-progress-preview .preview-time {
    display: block;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

/* Progress Hover Effect (indicates seek position) */
.thanos-progress-hover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    width: 0;
    transition: none;
    z-index: 2;
}

/* Control bar */
.thanos-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.thanos-player-left,
.thanos-player-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon buttons */
.thanos-btn-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    color: #fff;
}

.thanos-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.thanos-btn-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Volume control */
.thanos-volume-control {
    display: flex;
    align-items: center;
}

.thanos-volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}

.thanos-volume-control:hover .thanos-volume-slider {
    width: 80px;
    margin-left: 4px;
}

.thanos-volume-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.thanos-volume-level {
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

.thanos-volume-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Time display */
.thanos-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.thanos-time-separator {
    opacity: 0.6;
}

/* Quality button */
.thanos-btn-quality {
    width: auto;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.thanos-btn-quality .quality-label {
    text-transform: uppercase;
}

/* Speed button */
.thanos-btn-speed {
    width: auto;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Theater mode button */
.thanos-btn-theater svg {
    width: 20px;
    height: 20px;
}

/* Menus */
.thanos-player-menu {
    position: relative;
}

.thanos-menu-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 8px;
    min-width: 140px;
    padding: 8px 0;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.thanos-player-menu.open .thanos-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.thanos-menu-title {
    padding: 8px 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.thanos-menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.thanos-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.thanos-menu-item.active {
    color: var(--thanos-primary, #e50914);
}

.thanos-menu-item.active::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 8px;
}

/* Loading spinner */
.thanos-player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.thanos-spinner-large {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--thanos-primary, #e50914);
    border-radius: 50%;
    animation: thanos-spin 0.8s linear infinite;
}

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

/* Error state */
.thanos-player-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 60;
    text-align: center;
    padding: 20px;
}

.thanos-player-error .error-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--thanos-primary, #e50914);
    margin-bottom: 16px;
}

.thanos-player-error .error-message {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.thanos-player-error .error-retry {
    padding: 10px 24px;
}

/* ==========================================================================
   Mobile Styles
   ========================================================================== */
@media (max-width: 768px) {
    .thanos-player {
        border-radius: 0;
    }

    .thanos-player-play-big {
        width: 60px;
        height: 60px;
    }

    .thanos-player-play-big svg {
        width: 28px;
        height: 28px;
    }

    .thanos-player-bottom {
        padding: 0 8px 8px;
    }

    /* Fix player bar on mobile - allow dropdown overflow */
    .thanos-player-bar {
        gap: 4px;
        max-width: 100%;
        overflow: visible;
    }

    .thanos-player-left,
    .thanos-player-right {
        gap: 4px;
        flex-shrink: 0;
    }

    .thanos-player-left {
        flex: 1 1 auto;
    }

    .thanos-player-right {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .thanos-btn-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .thanos-btn-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Hide theater and mini player buttons on mobile (not applicable) */
    .thanos-btn-theater,
    .thanos-btn-miniplayer {
        display: none !important;
    }

    /* Keep PiP visible on mobile */
    .thanos-btn-pip {
        display: flex;
    }

    /* Ensure fullscreen button is always visible */
    .thanos-btn-fullscreen {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    .thanos-time {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .thanos-btn-quality,
    .thanos-btn-speed {
        padding: 0 6px;
        font-size: 0.7rem;
    }

    .thanos-volume-control .thanos-volume-slider {
        display: none;
    }

    /* Show touch controls area */
    .thanos-double-tap-left,
    .thanos-double-tap-right {
        pointer-events: auto;
    }

    .thanos-skip-intro {
        bottom: 80px;
        right: 12px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .thanos-resume-dialog {
        bottom: 70px;
        width: calc(100% - 40px);
        max-width: 300px;
    }

    /* Fix dropdown menus on mobile - use fixed positioning to escape overflow:hidden */
    .thanos-player .thanos-player-menu.open .thanos-menu-dropdown {
        position: fixed !important;
        bottom: auto !important;
        top: 30% !important;
        left: 70% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        min-width: 160px;
        max-width: 90vw;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 99999 !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.95) !important;
    }

    /* Larger touch targets for menu items */
    .thanos-menu-item {
        padding: 12px 16px;
        min-height: 44px;
    }

    /* Speed and Quality buttons more visible */
    .thanos-btn-quality,
    .thanos-btn-speed {
        min-width: 40px;
        padding: 4px 8px;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    /* Hide quality label on mobile, show only badge (SD/HD/4K) */
    .thanos-btn-quality .quality-label {
        display: none;
    }
}

/* Landscape on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .thanos-player {
        height: 100vh;
        aspect-ratio: auto;
    }
}

/* ==========================================================================
   Extra Small Mobile (< 400px)
   ========================================================================== */
@media (max-width: 400px) {
    .thanos-player-bottom {
        padding: 0 4px 6px;
    }

    .thanos-player-bar {
        gap: 2px;
    }

    .thanos-player-left,
    .thanos-player-right {
        gap: 2px;
    }

    /* Hide skip buttons on very small screens */
    .thanos-btn-skip-back,
    .thanos-btn-skip-forward {
        display: none !important;
    }

    /* Hide PiP on very small screens to prioritize fullscreen */
    .thanos-btn-pip {
        display: none !important;
    }

    .thanos-btn-icon {
        width: 28px;
        height: 28px;
    }

    .thanos-btn-icon svg {
        width: 16px;
        height: 16px;
    }

    .thanos-time {
        font-size: 0.65rem;
    }

    .thanos-btn-quality,
    .thanos-btn-speed {
        padding: 2px 4px;
        font-size: 0.65rem;
        min-width: 32px;
    }

    /* Ensure fullscreen is always visible on small screens */
    .thanos-btn-fullscreen {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .thanos-player-play-big {
        width: 50px;
        height: 50px;
    }

    .thanos-player-play-big svg {
        width: 24px;
        height: 24px;
    }

    .thanos-resume-dialog {
        width: calc(100% - 20px);
        padding: 12px 16px;
    }

    .thanos-resume-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .thanos-resume-buttons button {
        width: 100%;
    }
}

/* ==========================================================================
   Extra Extra Small Mobile (< 320px)
   ========================================================================== */
@media (max-width: 320px) {
    .thanos-player-bottom {
        padding: 0 2px 4px;
    }

    .thanos-player-bar {
        gap: 1px;
    }

    /* Hide speed button on very small screens, keep quality and fullscreen */
    .thanos-speed-menu {
        display: none !important;
    }

    /* Compact quality button */
    .thanos-btn-quality {
        padding: 2px !important;
        min-width: 28px !important;
        font-size: 0.6rem !important;
    }

    /* Hide quality label, show only badge */
    .thanos-btn-quality .quality-label {
        display: none;
    }

    .thanos-btn-icon {
        width: 26px;
        height: 26px;
    }

    .thanos-time {
        font-size: 0.6rem;
    }

    /* Make time more compact */
    .thanos-time-separator {
        margin: 0 1px;
    }

    /* Fullscreen must always show */
    .thanos-btn-fullscreen {
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
    }
}

/* ==========================================================================
   Touch-friendly improvements
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for touch devices */
    .thanos-btn-icon {
        min-width: 24px;
        min-height: 24px;
    }

    .thanos-progress-bar {
        height: 8px;
    }

    .thanos-progress-handle {
        width: 18px;
        height: 18px;
    }

    .thanos-volume-bar {
        height: 8px;
    }

    .thanos-volume-handle {
        width: 16px;
        height: 16px;
    }

    /* Keep controls visible longer on touch */
    .thanos-player.show-ui .thanos-player-controls {
        opacity: 1;
    }

    /* Disable hover effects that don't work on touch */
    .thanos-volume-control .thanos-volume-slider {
        width: 60px;
        margin-left: 4px;
    }
}

/* ==========================================================================
   Accessibility improvements
   ========================================================================== */
.thanos-btn-icon:focus-visible,
.thanos-menu-item:focus-visible,
.thanos-progress-bar:focus-visible {
    outline: 2px solid var(--thanos-primary, #e50914);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .thanos-progress-bar {
        background: rgba(255, 255, 255, 0.4);
    }

    .thanos-btn-icon {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .thanos-menu-dropdown {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .thanos-speed-indicator,
    .thanos-resume-dialog,
    .thanos-gesture-seek,
    .thanos-gesture-volume,
    .thanos-menu-dropdown {
        animation: none;
    }

    .thanos-progress-handle,
    .thanos-player-controls,
    .thanos-btn-icon {
        transition: none;
    }
}

/* ==========================================================================
   Subtitle Styles - Sizes from Admin Settings
   ========================================================================== */
.thanos-player video::cue {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: var(--thanos-font-body, sans-serif);
    line-height: 1.4;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Small subtitle size */
.thanos-player[data-subtitle-size="small"] video::cue {
    font-size: 14px;
}

/* Medium subtitle size (default) */
.thanos-player[data-subtitle-size="medium"] video::cue {
    font-size: 18px;
}

/* Large subtitle size */
.thanos-player[data-subtitle-size="large"] video::cue {
    font-size: 24px;
}

/* Mobile subtitle adjustments */
@media (max-width: 768px) {
    .thanos-player[data-subtitle-size="small"] video::cue {
        font-size: 12px;
    }
    .thanos-player[data-subtitle-size="medium"] video::cue {
        font-size: 14px;
    }
    .thanos-player[data-subtitle-size="large"] video::cue {
        font-size: 18px;
    }
}
