/* ============================================================
   Tela cheia imersiva.
   Carregada após os temas para oferecer uma apresentação única.
   ============================================================ */

body.fullscreen-mode {
    background: #000000;
    cursor: none;
}

body.fullscreen-mode.fullscreen-controls-visible {
    cursor: default;
}

body.fullscreen-mode .player-window {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: #000000;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.fullscreen-mode .title-bar,
body.fullscreen-mode .menu-bar,
body.fullscreen-mode .status-bar,
body.fullscreen-mode .playlist-panel,
body.fullscreen-mode .format-row {
    display: none;
}

body.fullscreen-mode .main-content {
    padding: 0;
    gap: 0;
    background: #000000;
}

body.fullscreen-mode .player-main {
    gap: 0;
}

body.fullscreen-mode .screen-area {
    border: 0;
    border-radius: 0;
}

body.fullscreen-mode .seek-row,
body.fullscreen-mode .transport-row {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    padding-left: 3vw;
    padding-right: 3vw;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.fullscreen-mode .seek-row {
    bottom: 72px;
}

body.fullscreen-mode .transport-row {
    bottom: 24px;
}

body.fullscreen-mode.fullscreen-controls-visible .seek-row,
body.fullscreen-mode.fullscreen-controls-visible .transport-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.fullscreen-mode .theater-bottom-scrim {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    transition: opacity 0.18s ease;
}

body.fullscreen-mode.fullscreen-controls-visible .theater-bottom-scrim {
    opacity: 1;
}

body.fullscreen-mode .screen-track-title {
    bottom: 105px;
    padding: 4px 3vw;
    color: #ffffff;
    background: transparent;
    opacity: 0;
    z-index: 1000;
    font-size: 14px;
    transition: opacity 0.18s ease;
}

body.fullscreen-mode.fullscreen-controls-visible .screen-track-title {
    opacity: 1;
}

body.fullscreen-mode .transport-btn {
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

body.fullscreen-mode .transport-btn:hover,
body.fullscreen-mode .transport-btn.is-active {
    background: rgba(255, 255, 255, 0.16);
}

body.fullscreen-mode .icon-play,
body.fullscreen-mode #playBtn .icon-play {
    border-left-color: #ffffff;
}

body.fullscreen-mode .icon-pause::before,
body.fullscreen-mode .icon-pause::after,
body.fullscreen-mode .icon-stop,
body.fullscreen-mode .icon-next::after,
body.fullscreen-mode .icon-prev::after,
body.fullscreen-mode .icon-settings {
    background: #ffffff;
}

body.fullscreen-mode #stopBtn .icon-stop {
    background: #ff6b6b;
}

body.fullscreen-mode .icon-next::before { border-left-color: #ffffff; }
body.fullscreen-mode .icon-prev::before { border-right-color: #ffffff; }
body.fullscreen-mode .icon-theater,
body.fullscreen-mode .icon-pip { border-color: #ffffff; }

body.fullscreen-mode .icon-fullscreen::before,
body.fullscreen-mode .icon-fullscreen::after {
    border-color: #ffffff;
}

body.fullscreen-mode .icon-pip::after {
    background: #ffffff;
    border-color: #000000;
}

body.fullscreen-mode .volume-toggle-btn,
body.fullscreen-mode .playback-mode-icon {
    color: #ffffff;
}

body.fullscreen-mode .view-controls::before {
    background: rgba(255, 255, 255, 0.3);
}

body.fullscreen-mode .time-label {
    color: #ffffff;
    font-size: 12px;
}

body.fullscreen-mode .seek-bar {
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(to right, var(--w98-highlight) 0%, var(--w98-highlight) var(--fill-percent, 0%), rgba(255,255,255,0.3) var(--fill-percent, 0%), rgba(255,255,255,0.3) 100%);
}

body.fullscreen-mode .seek-bar::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--w98-highlight);
    box-shadow: none;
}

body.fullscreen-mode .seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--w98-highlight);
}

body.fullscreen-mode .seek-bar::-moz-range-track {
    height: 4px;
    background: linear-gradient(to right, var(--w98-highlight) 0%, var(--w98-highlight) var(--fill-percent, 0%), rgba(255,255,255,0.3) var(--fill-percent, 0%), rgba(255,255,255,0.3) 100%);
}

body.fullscreen-mode #theaterToggleBtn {
    display: none;
}

body.fullscreen-mode.is-image .image-controls-row {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.fullscreen-mode.is-image.fullscreen-controls-visible .image-controls-row {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

body.fullscreen-mode.is-image .screen-track-title {
    bottom: 72px;
}
