* {
    box-sizing: border-box;
}

.netflix-player-wrapper {
    --player-bg: #050505;
    --player-panel: rgba(10, 10, 12, 0.72);
    --player-stroke: rgba(255, 255, 255, 0.12);
    --player-text-soft: rgba(255, 255, 255, 0.7);
    --player-accent: #e50914;
    position: relative;
    width: 100%;
    height: calc(100vh - 5rem);
    min-height: 28rem;
    background: var(--player-bg);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.netflix-player-wrapper:-webkit-full-screen,
.netflix-player-wrapper:fullscreen {
    height: 100vh;
}

.player-stage,
.player-video {
    width: 100%;
    height: 100%;
}

.player-chrome {
    pointer-events: none;
}

.player-chrome button,
.player-chrome [role="button"],
.player-progress-track,
.player-controls-panel,
.player-shortcuts {
    pointer-events: auto;
}

.player-video {
    object-fit: contain;
    background: #000;
    display: block;
}

.player-touch-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
}

.player-touch-zone-left,
.player-touch-zone-right {
    width: 28%;
}

.player-touch-zone-left {
    left: 0;
}

.player-touch-zone-center {
    left: 28%;
    width: 44%;
}

.player-touch-zone-right {
    right: 0;
}

.player-loader.hidden,
.player-error.hidden,
.player-seek-toast.hidden {
    display: none !important;
}

.loader-ring {
    width: 4.5rem;
    height: 4.5rem;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--player-accent);
    border-radius: 9999px;
    animation: player-spin 0.9s linear infinite;
}

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

.player-icon-btn,
.player-chip-btn,
.player-primary-btn {
    border: 1px solid var(--player-stroke);
    background: var(--player-panel);
    color: #fff;
    backdrop-filter: blur(18px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.player-icon-btn:hover,
.player-chip-btn:hover,
.player-primary-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.player-icon-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-primary-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-chip-btn {
    border-radius: 9999px;
    min-width: 4.5rem;
    height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.player-big-play {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.player-big-play:hover {
    transform: scale(1.04);
    background: rgba(229, 9, 20, 0.78);
    border-color: rgba(255, 255, 255, 0.18);
}

.netflix-player-wrapper.playing #centerPlayContainer-playerWrapper,
.netflix-player-wrapper.playing [id^="centerPlayContainer-"] {
    opacity: 0;
    pointer-events: none;
}

.player-bottom-controls {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.netflix-player-wrapper.controls-visible .player-bottom-controls,
.netflix-player-wrapper.paused .player-bottom-controls {
    opacity: 1;
}

.player-progress-shell {
    padding: 0 0.2rem;
}

.player-progress-track {
    position: relative;
    cursor: pointer;
}

.player-progress-rail {
    position: relative;
    height: 0.38rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    transition: height 0.18s ease;
}

.player-progress-track:hover .player-progress-rail {
    height: 0.56rem;
}

.player-progress-loaded,
.player-progress-played {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: inherit;
}

.player-progress-loaded {
    background: rgba(255, 255, 255, 0.22);
}

.player-progress-played {
    background: linear-gradient(90deg, var(--player-accent), #ff6b6b);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
}

.player-progress-thumb {
    position: absolute;
    top: 50%;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 9999px;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.player-progress-track:hover .player-progress-thumb {
    opacity: 1;
}

.player-progress-preview {
    position: absolute;
    bottom: calc(100% + 0.8rem);
    transform: translateX(-50%);
    padding: 0.4rem 0.65rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 5, 5, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.player-progress-track:hover .player-progress-preview {
    opacity: 1;
}

.player-controls-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 6, 6, 0.62);
    backdrop-filter: blur(20px);
    border-radius: 1.6rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.player-time-display {
    color: var(--player-text-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 8.2rem;
}

.player-volume-btn {
    position: relative;
}

.player-seek-toast {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.player-shortcuts {
    max-height: calc(100vh - 8rem);
    overflow: auto;
}

.player-theater .player-video {
    object-fit: cover;
}

.player-theater {
    height: calc(100vh - 5rem);
    min-height: 32rem;
}

@media (max-width: 1024px) {
    .netflix-player-wrapper {
        height: 72vh;
        min-height: 24rem;
    }
}

@media (max-width: 768px) {
    .netflix-player-wrapper {
        height: 58vh;
        min-height: 18rem;
    }

    .player-icon-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .player-primary-btn {
        width: 3.15rem;
        height: 3.15rem;
    }

    .player-big-play {
        width: 3.6rem;
        height: 3.6rem;
    }

    .player-controls-panel {
        padding: 0.85rem;
        border-radius: 1.25rem;
    }

    .player-time-display {
        min-width: auto;
        font-size: 0.86rem;
    }

    .player-progress-preview,
    .player-shortcuts {
        display: none !important;
    }
}

:fullscreen .netflix-player-wrapper,
:-webkit-full-screen .netflix-player-wrapper {
    height: 100vh !important;
}

.netflix-player-wrapper:fullscreen,
.netflix-player-wrapper:-webkit-full-screen {
    height: 100vh !important;
}
