@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root { --pink: #ff85c1; --glow: #ff2d95; --bg: #0a0a0a; --card: #161616; }

body { background: var(--bg); color: #fff; margin: 0; font-family: 'Montserrat', sans-serif; opacity: 0; transition: opacity 0.3s; }

/* Modal Overlay */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 999999 !important; /* На самый верх! */
    display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.modal-content {
    background: #1a1a1a; border: 2px solid var(--pink); border-radius: 30px;
    padding: 40px 20px; text-align: center; max-width: 400px;
    box-shadow: 0 0 40px var(--glow);
}
.modal-content h2 { color: var(--pink); font-weight: 900; margin-bottom: 15px; font-size: 1.6rem; }
.modal-content p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 35px; color: #ccc; }
.modal-btns { display: flex; flex-direction: column; gap: 15px; }

.btn-yes { background: var(--pink); color: #000; padding: 18px; border-radius: 50px; border: none; font-weight: 900; cursor: pointer; text-transform: uppercase; }
.btn-no { background: transparent; border: 2px solid #444; color: #777; padding: 14px; border-radius: 50px; border: none; font-weight: 700; cursor: pointer; }

/* Остальное */
.tg-link { display: block; text-align: center; background: linear-gradient(90deg, var(--glow), var(--pink)); color: #000; text-decoration: none; padding: 14px; font-weight: 900; text-transform: uppercase; position: sticky; top: 0; z-index: 100; }
header { padding: 25px 0; text-align: center; }
header h1 { color: var(--pink); font-size: 1.4rem; text-shadow: 0 0 10px var(--glow); margin: 0; font-weight: 900; text-transform: uppercase; }

#video-grid { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 20px 15px; width: 100%; box-sizing: border-box; }
.video-card { width: 100%; max-width: 500px; background: var(--card); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,133,193,0.15); }
.player-container { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.player-container video { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.video-duration { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.8); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 900; z-index: 10; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 50px; color: var(--pink); filter: drop-shadow(0 0 10px var(--glow)); pointer-events: none; }
.video-info { padding: 20px; text-align: center; }
.video-title { color: var(--pink); font-size: 1.1rem; font-weight: 900; margin: 0; }

.single-video-container { width: 100%; max-width: 900px; }
.video-info-large { padding: 40px 20px; text-align: center; }
.video-info-large h2 { color: var(--pink); margin-bottom: 30px; font-size: 1.6rem; font-weight: 900; }
.back-btn { background: transparent; border: 2px solid var(--pink); color: var(--pink); padding: 18px 40px; border-radius: 50px; font-weight: 900; cursor: pointer; text-transform: uppercase; }

.plyr--full-ui.plyr--video { --plyr-color-main: var(--pink); }
