
.player-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #101014;
    color: white;
    padding: 18px;
    overflow-y: auto;
    box-sizing: border-box;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.player-header h2 {
    font-size: 18px;
    margin: 0;
}

.player-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #25252e;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 14px;
    object-fit: contain;
}

.player-info {
    margin-top: 24px;
}

.player-info h1 {
    font-size: 26px;
    margin-bottom: 12px;
}

.player-info p {
    color: #aaaab5;
    line-height: 1.6;
}

.player-progress {
    height: 5px;
    background: #30303b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.player-progress-fill {
    height: 100%;
    width: 0;
    background: #9561ff;
    border-radius: 10px;
}

.player-time {
    display: flex;
    justify-content: space-between;
    color: #aaaab5;
    font-size: 12px;
    margin-top: 8px;
}

.player-status {
    background: #1c1c24;
    color: #aaaab5;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 20px;
}

.player-fullscreen {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background: #9561ff;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.player-exit {
    display: none;
}

.player-overlay.player-expanded {
    position: fixed;
    inset: 0;
    padding: 0;
    background: black;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-expanded .player-video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
}

.player-expanded .player-header,
.player-expanded .player-progress,
.player-expanded .player-time,
.player-expanded .player-fullscreen,
.player-expanded .player-info,
.player-expanded .player-status {
    display: none;
}

.player-expanded .player-exit {
    display: block;
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
    right: 16px;
    z-index: 10000;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(35, 35, 35, 0.85);
    color: white;
    font-size: 13px;
}

.player-video:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    background: black;
}
