/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  background-color: #FFFFFF;
  color: #000000;
}

/* ==========================================================================
   PAGE 1: GATEKEEPER / PASSWORD SCREEN
   ========================================================================== */
.gate-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* Full-page brutalist frame, offset from the viewport edges by a margin. */
.page-frame {
  position: fixed;
  inset: 24px;
  border: 8px solid #000000;
  pointer-events: none;
  z-index: 10;
}

/* Giant brutalist corner mark, top-left of the viewport. */
.corner-title {
  position: fixed;
  top: 48px;
  left: 28px;
  font-size: clamp(4.5rem, 14vw, 10rem); 
  line-height: 0.85;
  letter-spacing: 1px;
  margin: 0;
  z-index: 11;
  pointer-events: none;
}

/* Ukrywa elementy tylko na urządzeniach mobilnych w orientacji poziomej */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .hide-on-landscape {
    display: none !important;
  }
}

.gate-container {
  width: 100%;
  max-width: 480px;
  background-color: #FFFFFF;
  border: none;
  box-shadow: none;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate-footer {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gate-logo {
  max-width: 140px;
  width: 40%;
  height: auto;
}

.gate-copyright {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #000000;
}

.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gate-label {
  text-align: left;
  font-size: 1rem;
  letter-spacing: 1px;
}

.gate-input-row {
  width: 100%;
  display: flex;
  align-items: stretch;
  border: 1px solid #000000;
}

.gate-input {
  flex: 1;
  width: 100%;
  font-family: 'Anton', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  border-radius: 0px;
  padding: 14px 16px;
  outline: none;
  box-shadow: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.gate-input:focus {
  background-color: #000000;
  color: #FFFFFF;
}

.gate-input::placeholder {
  color: #00000055;
  letter-spacing: 4px;
}

.gate-arrow-button {
  flex: 0 0 auto;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  border-left: 1px solid #000000;
  border-radius: 0px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.gate-arrow {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(-45deg);
  color: #000000;
}

.gate-arrow-button:hover {
  background-color: #000000;
}

.gate-arrow-button:hover .gate-arrow {
  color: #FFFFFF;
}

.gate-arrow-button:active {
  background-color: #FFFFFF;
}

.gate-arrow-button:active .gate-arrow {
  color: #000000;
}

.gate-error {
  margin-top: 24px;
  width: 100%;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #FFFFFF;
  background-color: #000000;
  border: 4px solid #000000;
  box-shadow: none;
  padding: 12px 16px;
}

/* ==========================================================================
   PAGE 2: VAULT / MEDIA PLAYER
   ========================================================================== */
.vault-body {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100vh;
  padding: 32px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .vault-body {
    padding: 24px;
  }
}

.vault-container {
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  background-color: #FFFFFF;
  border: none;
  box-shadow: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

/* Video.js brutalist wrapper */
.vault-player-wrapper {
  border: 8px solid #000000;
  box-shadow: none;
  background-color: #000000;
  line-height: 0;
}

.video-js {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 0px !important;
  font-family: 'Anton', sans-serif;
  transition: none;
}

.video-js .vjs-big-play-button {
  border: 4px solid #FFFFFF;
  border-radius: 0px;
  background-color: #000000;
  box-shadow: none;
}

.video-js .vjs-control-bar {
  background-color: #000000;
  border-top: 4px solid #FFFFFF;
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background-color: #FFFFFF;
}

.video-js .vjs-slider {
  background-color: #444444;
  border-radius: 0px;
}

.video-js .vjs-load-progress {
  background-color: #666666;
}

/* AUDIO MODE — hide the video canvas entirely, keep only the control bar
   (progress bar, play/pause, volume, time) visible and always shown. */
.vault-player-wrapper.is-audio {
  border-width: 4px;
}

.vault-player-wrapper.is-audio .video-js {
  aspect-ratio: unset;
  height: auto !important;
  background-color: #000000;
}

.vault-player-wrapper.is-audio .vjs-tech,
.vault-player-wrapper.is-audio .vjs-poster,
.vault-player-wrapper.is-audio .vjs-big-play-button,
.vault-player-wrapper.is-audio .vjs-loading-spinner {
  display: none !important;
}

.vault-player-wrapper.is-audio .vjs-control-bar {
  position: relative;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-top: none;
}

/* VIDEO MODE — full-size player with 16:9 canvas. */
.vault-player-wrapper.is-video .video-js {
  aspect-ratio: 16 / 9;
}

/* ==========================================================================
   WINAMP-STYLE PLAYLIST
   ========================================================================== */
.vault-playlist {
  list-style: none;
  border: 1px solid #000000;
}

.vault-track-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-align: left;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  border-bottom: 1px solid #FFFFFF;
  border-radius: 0px;
  padding: 2px 2px;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.vault-playlist li:last-child .vault-track-button {
  border-bottom: none;
}

.vault-track-index {
  opacity: 0.6;
}

.vault-track-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.vault-track-button.is-playing {
  background-color: #000000;
  color: #FFFFFF;
}

.vault-track-button.is-playing:hover {
  background-color: #000000;
}

.back-arrow-button {
  position: fixed;
  top: 64px;
  right: 64px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #000000;
  background-color: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 0px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

/* "Return" glyph used as the back-to-index button. */
.back-arrow {
  display: inline-block;
  font-size: 32px;
  line-height: 1;
  color: #000000;
}

.back-arrow-button:hover {
  background-color: #000000;
}

.back-arrow-button:hover .back-arrow {
  color: #FFFFFF;
}

.back-arrow-button:active {
  background-color: #FFFFFF;
}

.back-arrow-button:active .back-arrow {
  color: #000000;
}
