.video-error-cover { align-items: center; background: var(--base-overlay-background); color: var(--primary-text-color); cursor: pointer; display: flex; flex-direction: column; height: 100%; justify-content: center; margin-top: 8px; position: relative; text-align: center; z-index: 100; } .media-spoiler { background: var(--base-overlay-background); color: var(--darker-text-color); border: 0; width: 100%; height: 100%; &:hover, &:active, &:focus { color: var(--darker-text-color-lighten-8); } .status__content > & { margin-top: 15px; } &.full-width { margin-left: -14px; margin-right: -14px; width: inherit; max-width: none; border-radius: 0; } } .media-spoiler__warning { display: block; font-size: 14px; } .media-spoiler__trigger { display: block; font-size: 11px; font-weight: 500; } .media-gallery__item__badges { position: absolute; bottom: 6px; inset-inline-start: 6px; display: flex; gap: 2px; } .media-gallery__gifv__label { display: block; color: var(--white); background: var(--black-a65); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; z-index: 1; pointer-events: none; line-height: 18px; } .media-gallery { box-sizing: border-box; margin-top: 8px; overflow: hidden; border-radius: 4px; position: relative; width: 100%; min-height: 64px; display: grid; grid-template-columns: 50% 50%; grid-template-rows: 50% 50%; gap: 2px; &.full-width { margin-left: -14px; margin-right: -14px; width: inherit; max-width: none; border-radius: 0; } } .media-gallery__item { border: 0; box-sizing: border-box; display: block; position: relative; border-radius: 4px; overflow: hidden; &--tall { grid-row: span 2; } &--wide { grid-column: span 2; } .full-width & { border-radius: 0; } &.letterbox { background: var(--base-shadow-color); } } .media-gallery__item-thumbnail { cursor: zoom-in; display: block; text-decoration: none; color: var(--secondary-text-color); position: relative; z-index: 1; &, img { height: 100%; width: 100%; object-fit: contain; &:not(.letterbox) { height: 100%; object-fit: cover; } } } .media-gallery__preview { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; inset-inline-start: 0; z-index: 0; background: var(--base-overlay-background); &--hidden { display: none; } } .media-gallery__gifv { height: 100%; overflow: hidden; position: relative; width: 100%; display: flex; justify-content: center; } .media-gallery__item-gifv-thumbnail { cursor: zoom-in; height: 100%; width: 100%; object-fit: contain; user-select: none; &:not(.letterbox) { height: 100%; object-fit: cover; } } .media-gallery__item-thumbnail-label { clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); overflow: hidden; position: absolute; } .video-modal__container { max-width: 100vw; max-height: 100vh; } .audio-modal__container { width: 50vw; } .media-modal { width: 100%; height: 100%; position: relative; &__close, &__zoom-button { color: var(--white-a70); &:hover, &:focus, &:active { color: var(--white); background-color: var(--white-a15); } &:focus { background-color: var(--white-a30); } } } .media-modal__closer { position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; } .media-modal__navigation { position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; pointer-events: none; transition: opacity 0.3s linear; will-change: opacity; * { pointer-events: auto; } &.media-modal__navigation--hidden { opacity: 0; * { pointer-events: none; } } } .media-modal__nav { background: transparent; box-sizing: border-box; border: 0; color: var(--white-a70); cursor: pointer; display: flex; align-items: center; font-size: 24px; height: 20vmax; margin: auto 0; padding: 30px 15px; position: absolute; top: 0; bottom: 0; &:hover, &:focus, &:active { color: var(--white); } } .media-modal__nav--left { inset-inline-start: 0; } .media-modal__nav--right { inset-inline-end: 0; } .media-modal__overlay { max-width: 600px; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; margin: 0 auto; .picture-in-picture__footer { border-radius: 0; background: transparent; padding: 20px 0; .icon-button { color: var(--white); &:hover, &:focus, &:active { color: var(--white); background-color: var(--white-a15); } &:focus { background-color: var(--white-a30); } &.active { color: var(--highlight-text-color); &:hover, &:focus, &:active { background: var(--highlight-text-color-a15); } &:focus { background: var(--highlight-text-color-a30); } } &.star-icon.active { color: var(--gold-star); &:hover, &:focus, &:active { background: var(--gold-star-a15); } &:focus { background: var(--gold-star-a30); } } &.disabled { color: var(--white); background-color: transparent; cursor: default; opacity: 0.4; } } } } .media-modal__pagination { display: flex; justify-content: center; margin-bottom: 20px; } .media-modal__page-dot { flex: 0 0 auto; background-color: var(--white); opacity: 0.4; height: 6px; width: 6px; border-radius: 50%; margin: 0 4px; padding: 0; border: 0; font-size: 0; transition: opacity 0.2s ease-in-out; &.active { opacity: 1; } } .media-modal__close { position: absolute; inset-inline-end: 8px; top: 8px; z-index: 100; } .detailed, .fullscreen { .video-player__volume__current, .video-player__volume::before { bottom: 27px; } .video-player__volume__handle { bottom: 23px; } } .audio-player { overflow: hidden; box-sizing: border-box; position: relative; background: var(--ui-base-color-darken-8); border-radius: 4px; padding-bottom: 44px; width: 100%; &.editable { border-radius: 0; height: 100%; } &.inactive { audio, .video-player__controls { visibility: hidden; } } .video-player__volume::before, .video-player__seek::before { background: currentColor; opacity: 0.15; } .video-player__seek__buffer { background: currentColor; opacity: 0.2; } .video-player__buttons button, .video-player__buttons a { color: currentColor; opacity: 0.75; &:active, &:hover, &:focus { color: currentColor; opacity: 1; } } .video-player__time-sep, .video-player__time-total, .video-player__time-current { color: currentColor; } .video-player__seek::before, .video-player__seek__buffer, .video-player__seek__progress { top: 0; } .video-player__seek__handle { top: -4px; } .video-player__controls { padding-top: 10px; background: transparent; } } .video-player { overflow: hidden; position: relative; background: var(--base-shadow-color); max-width: 100%; border-radius: 4px; box-sizing: border-box; color: var(--white); display: flex; align-items: center; &.editable { border-radius: 0; height: 100% !important; } &:focus { outline: 0; } .detailed-status & { width: 100%; height: 100%; } &.full-width { margin-left: -14px; margin-right: -14px; width: inherit; max-width: none; border-radius: 0; } video { display: block; max-width: 100vw; max-height: 80vh; z-index: 1; position: relative; } &.fullscreen { width: 100% !important; height: 100% !important; margin: 0; video { max-width: 100% !important; max-height: 100% !important; width: 100% !important; height: 100% !important; outline: 0; } } &.inline { video { object-fit: contain; } } &__controls { position: absolute; direction: ltr; z-index: 2; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; box-sizing: border-box; background: linear-gradient( 0deg, var(--base-shadow-color-a85) 0, var(--base-shadow-color-a45) 60%, transparent ); padding: 0 15px; opacity: 0; transition: opacity 0.1s ease; &.active { opacity: 1; } } &.inactive { video, .video-player__controls { visibility: hidden; } } &__spoiler { display: none; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 100%; z-index: 4; border: 0; background: var(--base-shadow-color); color: var(--darker-text-color); transition: none; pointer-events: none; &.active { display: block; pointer-events: auto; &:hover, &:active, &:focus { color: var(--darker-text-color-lighten-7); } } &__title { display: block; font-size: 14px; } &__subtitle { display: block; font-size: 11px; font-weight: 500; } } &__buttons-bar { display: flex; justify-content: space-between; padding-bottom: 8px; margin: 0 -5px; .video-player__download__icon { color: inherit; .fa, &:active .fa, &:hover .fa, &:focus .fa { color: inherit; } } } &__buttons { display: flex; flex: 0 1 auto; min-width: 30px; align-items: center; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; .player-button { display: inline-block; outline: 0; flex: 0 0 auto; background: transparent; padding: 5px; font-size: 16px; border: 0; color: var(--white-a75); &:active, &:hover, &:focus { color: var(--white); } } } &__time { display: inline; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; margin: 0 5px; } &__time-sep, &__time-total, &__time-current { font-size: 14px; font-weight: 500; } &__time-current { color: var(--white); } &__time-sep { display: inline-block; margin: 0 6px; } &__time-sep, &__time-total { color: var(--white); } &__volume { flex: 0 0 auto; display: inline-flex; cursor: pointer; height: 24px; position: relative; overflow: hidden; @media (prefers-reduced-motion: no-preference) { transition: all 100ms linear; } &.active { overflow: visible; width: 50px; margin-inline-end: 16px; } &::before { content: ''; width: 50px; background: var(--white-a35); border-radius: 4px; display: block; position: absolute; height: 4px; inset-inline-start: 0; top: 50%; transform: translate(0, -50%); } &__current { display: block; position: absolute; height: 4px; border-radius: 4px; inset-inline-start: 0; top: 50%; transform: translate(0, -50%); background: var(--ui-highlight-color-lighten-8); } &__handle { position: absolute; z-index: 3; border-radius: 50%; width: 12px; height: 12px; top: 50%; inset-inline-start: 0; margin-inline-start: -6px; transform: translate(0, -50%); background: var(--ui-highlight-color-lighten-8); box-shadow: 1px 2px 6px var(--base-shadow-color-a20); opacity: 0; @media (prefers-reduced-motion: no-preference) { transition: opacity 100ms linear; } } &.active &__handle { opacity: 1; } } &__link { padding: 2px 10px; a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--white); &:hover, &:active, &:focus { text-decoration: underline; } } } &__seek { cursor: pointer; height: 24px; position: relative; &::before { content: ''; width: 100%; background: var(--white-a35); border-radius: 4px; display: block; position: absolute; height: 4px; top: 14px; } &__progress, &__buffer { display: block; position: absolute; height: 4px; border-radius: 4px; top: 14px; background: var(--ui-highlight-color-lighten-8); } &__buffer { background: var(--white-a20); } &__handle { position: absolute; z-index: 3; opacity: 0; border-radius: 50%; width: 12px; height: 12px; top: 10px; margin-inline-start: -6px; background: var(--ui-highlight-color-lighten-8); box-shadow: 1px 2px 6px var(--base-shadow-color-a20); @media (prefers-reduced-motion: no-preference) { transition: opacity 0.1s ease; } &.active { opacity: 1; } } &:hover { .video-player__seek__handle { opacity: 1; } } } &.detailed, &.fullscreen { .video-player__buttons { .player-button { padding-top: 10px; padding-bottom: 10px; } } } } .gifv { video { max-width: 100vw; max-height: 80vh; } }