/* ==UserStyle==
@name           YouTube - Revert pre-dynamic player sizing
@namespace      https://greasyfork.org/en/users/933798
@version        20260107.08.21
@description    This style forces to use the pre-flexy video size before it first came out in 2018.
@author         Magma_Craft
@license        MIT
@preprocessor   stylus
@var            checkbox  width640 "Reduce video player width size to 640px (useful for smaller resolutions)" 0
@downloadURL https://update.greasyfork.org/scripts/489498/YouTube%20-%20Revert%20pre-dynamic%20player%20sizing.user.css
@updateURL https://update.greasyfork.org/scripts/489498/YouTube%20-%20Revert%20pre-dynamic%20player%20sizing.meta.css
==/UserStyle== */
 
@-moz-document domain("youtube.com") {
/* Set the width for the watch flexy size to 854px (default option) */
ytd-watch-flexy[default-layout] #primary.ytd-watch-flexy {
max-width: 854px !important
}

/* Replace background from transparent to black translucent one */
ytd-watch-flexy[flexy] #player-container-outer.ytd-watch-flexy {
background-color: #000000 !important
}

/* Remove rounded edges on videos due to buggyness */
#ytd-player.ytd-watch-flexy {
border-radius: 0px !important
}

if width640 {
    ytd-watch-flexy[default-layout] #primary.ytd-watch-flexy { max-width: 640px !important }
}
}