/* ── Encrypted player ─────────────────────────────────────────────────────── */

.enc-player-wrapper {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.enc-player-wrapper video,
.enc-player-wrapper audio {
    width: 100%;
    display: block;
    outline: none;
}

.enc-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(24, 24, 40, 0.95);
    backdrop-filter: blur(8px);
}

.enc-btn-play,
.enc-btn-fs {
    background: none;
    border: none;
    color: #7eb8f7;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.enc-btn-play:hover,
.enc-btn-fs:hover { background: #2a2a4a; }

.enc-btn-fs { margin-left: auto; flex-shrink: 0; }

/* Fullscreen: fill the screen */
.enc-player-wrapper:fullscreen,
.enc-player-wrapper:-webkit-full-screen {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: #000;
}

.enc-player-wrapper:fullscreen video,
.enc-player-wrapper:-webkit-full-screen video {
    flex: 1;
    height: 0;
    width: 100%;
    object-fit: contain;
}

.enc-player-wrapper:fullscreen .enc-player-controls,
.enc-player-wrapper:-webkit-full-screen .enc-player-controls {
    flex-shrink: 0;
}

.enc-seeker {
    flex: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    transition: height 0.15s;
}
.enc-seeker:hover { height: 6px; }
.enc-seeker::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #7eb8f7;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    transition: transform 0.15s;
}
.enc-seeker:hover::-webkit-slider-thumb { transform: scale(1.2); }
.enc-seeker::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #7eb8f7;
    border: none;
    cursor: pointer;
}
.enc-seeker::-moz-range-track {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    height: 4px;
}

.enc-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.enc-volume {
    width: 80px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}
.enc-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #7eb8f7;
    border: none;
    cursor: pointer;
}
.enc-volume::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #7eb8f7;
    border: none;
    cursor: pointer;
}
.enc-volume::-moz-range-track {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    height: 4px;
}

.enc-vol-icon {
    color: #7eb8f7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.enc-audio-wrapper {
    width: 100%;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.enc-player-loading,
.enc-player-error {
    padding: 20px;
    text-align: center;
    color: #aaa;
}

.enc-player-error { color: #f77; }

/* ── Encrypted image ─────────────────────────────────────────────────────── */

.enc-image-wrapper {
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    background: #111;
    min-height: 60px;
}

.enc-image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Encrypted document ──────────────────────────────────────────────────── */

.enc-document-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    background: #1a1a2e;
    min-height: 80px;
}

.enc-pdf-viewer {
    background: #525659;
}

.enc-pdf-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #3c4043;
    user-select: none;
}

.enc-pdf-btn {
    background: none;
    border: none;
    color: #e8eaed;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 3px;
    transition: background 0.12s;
}
.enc-pdf-btn:hover  { background: rgba(255,255,255,0.12); }
.enc-pdf-btn:active { background: rgba(255,255,255,0.22); }

.enc-pdf-pagenum {
    color: #e8eaed;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: center;
}

.enc-pdf-sep {
    flex: 1;
}

.enc-pdf-viewport {
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 16px;
    max-height: 680px;
    background: #525659;
}

.enc-pdf-viewport canvas {
    display: block;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
