/* 🎬 GER Media-Player (Dateiablage) – Video & Audio, Glas-Optik, Visualizer */
.ftp { --pa: #19e6c9; --pb: #8a6bff; --pc: #ff5fa8; position: fixed; inset: 0; z-index: 1000002; display: flex; align-items: center; justify-content: center; padding: 18px; color: #eef3f8; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; animation: ftp-in .28s ease both; }
.ftp[hidden] { display: none; }
.ftp * { box-sizing: border-box; }
@keyframes ftp-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
html.ftp-open, html.ftp-open body { overflow: hidden; }
.ftp-bg { position: absolute; inset: 0; background: radial-gradient(1200px 700px at 20% 10%, rgba(138,107,255,.22), transparent 60%), radial-gradient(900px 600px at 90% 90%, rgba(25,230,201,.18), transparent 60%), rgba(4,7,12,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ftp-wrap { position: relative; width: min(1760px, 100%); max-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
.ftp-main { min-width: 0; }
.ftp-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 36px); background: #02040a; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(25,230,201,.08), 0 0 80px rgba(138,107,255,.12); outline: none; user-select: none; -webkit-user-select: none; }
.ftp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ftp.is-audio .ftp-stage video { opacity: 0; pointer-events: none; }
.ftp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.ftp.is-audio .ftp-stage canvas { display: block; }
.ftp-ambient { position: absolute; inset: 0; display: none; opacity: calc(.65 + var(--bass, 0) * .7); background: radial-gradient(600px 400px at 50% 50%, rgba(138,107,255,.35), transparent 70%), linear-gradient(160deg, #0a1020, #070a14 60%, #0c0a1a); }
.ftp.is-audio .ftp-ambient { display: block; }
.ftp-disc { position: absolute; left: 50%; top: 46%; width: min(26vh, 22%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: none; place-items: center; background: conic-gradient(from 0deg, #19e6c9, #8a6bff, #ff5fa8, #19e6c9); box-shadow: 0 0 60px rgba(138,107,255,.55), 0 0 140px rgba(25,230,201,.25); }
.ftp.is-audio .ftp-disc { display: grid; }
.ftp-disc::before { content: ''; position: absolute; inset: 5%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1b2440, #0a0f1e 70%); }
.ftp-disc span { position: relative; font-size: clamp(2rem, 7vh, 4.4rem); filter: drop-shadow(0 0 14px rgba(25,230,201,.7)); }
.ftp-top { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px 46px; display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(180deg, rgba(2,4,10,.82), transparent); transition: opacity .35s, transform .35s; z-index: 4; }
.ftp-ttl { min-width: 0; flex: 1; } .ftp-ttl > b { display: block; font-family: 'Orbitron', system-ui, sans-serif; font-size: clamp(.95rem, 2.2vw, 1.3rem); letter-spacing: .03em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.ftp-by { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .8rem; color: #b8c4d2; } .ftp-by img, .ftp-by i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #1b2129; display: inline-grid; place-items: center; font-style: normal; font-size: .65rem; font-weight: 800; }
.ftp-ib { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .15s, border-color .2s; padding: 0; }
.ftp-ib:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); } .ftp-ib:active { transform: scale(.94); } .ftp-ib svg { width: 20px; height: 20px; fill: currentColor; } .ftp-ib.on { color: var(--pa); border-color: rgba(25,230,201,.5); background: rgba(25,230,201,.12); }
.ftp-ctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 16px; background: linear-gradient(0deg, rgba(2,4,10,.92), rgba(2,4,10,.55) 55%, transparent); transition: opacity .35s, transform .35s; z-index: 4; }
.ftp.is-idle.is-playing.is-video .ftp-ctl { opacity: 0; transform: translateY(10px); pointer-events: none; } .ftp.is-idle.is-playing.is-video .ftp-top { opacity: 0; transform: translateY(-10px); pointer-events: none; } .ftp.is-idle.is-playing.is-video .ftp-stage { cursor: none; }
.ftp-seek { position: relative; height: 22px; cursor: pointer; touch-action: none; display: flex; align-items: center; }
.ftp-rail { position: relative; width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); transition: height .15s; } .ftp-seek:hover .ftp-rail, .ftp-seek.drag .ftp-rail { height: 8px; }
.ftp-buf, .ftp-pg { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; width: 0; } .ftp-buf { background: rgba(255,255,255,.28); } .ftp-pg { background: linear-gradient(90deg, var(--pa), var(--pb) 60%, var(--pc)); box-shadow: 0 0 14px rgba(25,230,201,.55); }
.ftp-th { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(25,230,201,.3), 0 2px 8px rgba(0,0,0,.6); left: 0; transform: scale(0); transition: transform .15s; } .ftp-seek:hover .ftp-th, .ftp-seek.drag .ftp-th { transform: scale(1); }
.ftp-tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: rgba(10,14,24,.95); border: 1px solid rgba(255,255,255,.14); font-size: .74rem; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; } .ftp-seek:hover .ftp-tip, .ftp-seek.drag .ftp-tip { opacity: 1; }
.ftp-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ftp-play { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #03140f; background: linear-gradient(135deg, var(--pa), #5be7ff); box-shadow: 0 6px 26px rgba(25,230,201,.45); transition: transform .15s, box-shadow .2s; padding: 0; } .ftp-play:hover { transform: scale(1.07); box-shadow: 0 8px 34px rgba(25,230,201,.65); } .ftp-play:active { transform: scale(.95); } .ftp-play svg { width: 26px; height: 26px; fill: currentColor; }
.ftp .i-pause, .ftp.is-playing .i-play { display: none; } .ftp.is-playing .i-pause { display: block; }
.ftp-time { font-variant-numeric: tabular-nums; font-size: .82rem; color: #cfd8e3; margin: 0 6px; white-space: nowrap; }
.ftp-sp { flex: 1; }
.ftp-vol { display: flex; align-items: center; gap: 4px; } .ftp-vol input { -webkit-appearance: none; appearance: none; width: 88px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--pa) var(--v, 100%), rgba(255,255,255,.2) var(--v, 100%)); outline: none; cursor: pointer; } .ftp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.6); } .ftp-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.ftp-rate { min-width: 52px; width: auto; padding: 0 10px; font: 800 .78rem system-ui, sans-serif; }
.ftp .i-vol-off, .ftp.is-muted .i-vol-on { display: none; } .ftp.is-muted .i-vol-off { display: block; }
.ftp.is-audio .only-video { display: none; } .ftp.is-video .only-audio { display: none; }
.ftp-big { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgba(10,14,24,.55); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; pointer-events: none; z-index: 3; } .ftp-big svg { width: 44px; height: 44px; fill: #fff; }
.ftp-big.pop { animation: ftp-pop .55s ease-out; } @keyframes ftp-pop { 0% { opacity: .95; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }
.ftp-spin { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--pa); animation: ftp-rot .8s linear infinite; display: none; z-index: 3; } .ftp.is-loading .ftp-spin { display: block; } @keyframes ftp-rot { to { transform: rotate(360deg); } }
.ftp-err { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(4,7,12,.9); } .ftp-err[hidden] { display: none; } .ftp-err b { font-size: 1.1rem; } .ftp-err p { margin: 0; max-width: 460px; color: #b8c4d2; line-height: 1.6; font-size: .9rem; } .ftp-err a { padding: 10px 20px; border-radius: 12px; background: linear-gradient(135deg, var(--pa), #5be7ff); color: #03140f; font-weight: 800; text-decoration: none; }
/* Playlist */
.ftp-list { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 36px); border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(10,14,24,.72); backdrop-filter: blur(14px); overflow: hidden; }
.ftp-lh { padding: 14px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'Orbitron', system-ui, sans-serif; font-size: .78rem; letter-spacing: .1em; color: #cfd8e3; } .ftp-lh span { margin-left: auto; color: #7f8b99; font: 700 .72rem system-ui, sans-serif; letter-spacing: 0; }
.ftp-li { overflow: auto; padding: 8px; display: grid; gap: 4px; align-content: start; scrollbar-width: thin; }
.ftp-it { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background .15s; } .ftp-it:hover { background: rgba(255,255,255,.07); }
.ftp-it.on { background: linear-gradient(90deg, rgba(25,230,201,.16), rgba(138,107,255,.12)); border-color: rgba(25,230,201,.35); }
.ftp-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 1.15rem; background: rgba(255,255,255,.07); position: relative; }
.ftp-it.on .ftp-ic { background: transparent; } .ftp-eq { display: none; gap: 3px; align-items: flex-end; height: 18px; } .ftp-it.on .ftp-eq { display: flex; } .ftp-it.on .ftp-ic > em { display: none; }
.ftp-eq i { width: 4px; background: linear-gradient(0deg, var(--pa), var(--pb)); border-radius: 2px; height: 30%; } .ftp.is-playing .ftp-it.on .ftp-eq i { animation: ftp-eq .9s ease-in-out infinite; } .ftp-eq i:nth-child(2) { animation-delay: .2s !important; } .ftp-eq i:nth-child(3) { animation-delay: .4s !important; } @keyframes ftp-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
html.fx-off .ftp-eq i { animation: none !important; height: 60%; }
.ftp-in { min-width: 0; } .ftp-in b { display: block; font-size: .85rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ftp-in small { display: block; margin-top: 2px; font-size: .72rem; color: #8995a4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftp-ic em { font-style: normal; }
@media (max-width: 980px) {
    .ftp { align-items: flex-start; padding: 0; overflow: auto; } .ftp-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; } .ftp-stage { border-radius: 14px; } .ftp-list { max-height: 42dvh; }
    .ftp-vol input { width: 64px; } .ftp-ctl { padding: 40px 12px 10px; } .ftp-top { padding: 12px 12px 30px; } .ftp-play { width: 46px; height: 46px; } .ftp-ib { width: 36px; height: 36px; border-radius: 10px; } .ftp-time { margin: 0 2px; font-size: .74rem; } .ftp-row { gap: 5px; }
    .ftp-disc { top: 40%; }
}
@media (max-width: 560px) { .ftp-vol input { display: none; } .ftp-rate { min-width: 44px; padding: 0 6px; } }
.ftp-stage:fullscreen { max-height: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; border: 0; }
.ftp-stage:-webkit-full-screen { max-height: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; border: 0; }
/* Die Seite erzwingt überall 2px-Ecken (site_v2.css) – für den Player gezielt überstimmen */
.ftp .ftp-stage, .ftp .ftp-list { border-radius: 18px !important; }
.ftp .ftp-ib { border-radius: 12px !important; } .ftp .ftp-it { border-radius: 12px !important; } .ftp .ftp-ic { border-radius: 10px !important; } .ftp .ftp-tip { border-radius: 8px !important; } .ftp .ftp-err a { border-radius: 12px !important; }
.ftp .ftp-rail, .ftp .ftp-buf, .ftp .ftp-pg, .ftp .ftp-vol input { border-radius: 6px !important; } .ftp .ftp-eq i { border-radius: 2px !important; }
.ftp .ftp-play, .ftp .ftp-disc, .ftp .ftp-disc::before, .ftp .ftp-big, .ftp .ftp-spin, .ftp .ftp-th, .ftp .ftp-by img, .ftp .ftp-by i, .ftp .ftp-vol input::-webkit-slider-thumb { border-radius: 50% !important; }
.ftp .ftp-stage:fullscreen { border-radius: 0 !important; }
@media (max-width: 980px) { .ftp .ftp-stage { border-radius: 14px !important; } }
.ftp .ftp-by span { display: inline; min-width: 0; } .ftp .ftp-by b { font: inherit; font-weight: 700; display: inline; letter-spacing: 0; text-shadow: none; }
.ftp-share { width: auto; padding: 0 14px; gap: 8px; display: flex; align-items: center; font: 800 .78rem system-ui, sans-serif; } .ftp-share svg { width: 18px; height: 18px; }
.ftp-toast { position: absolute; left: 50%; bottom: 110px; transform: translate(-50%, 10px); max-width: calc(100% - 28px); padding: 10px 18px; background: rgba(12,24,34,.96); border: 1px solid rgba(25,230,201,.5); color: #fff; font: 700 .84rem system-ui, sans-serif; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 7; box-shadow: 0 10px 34px rgba(0,0,0,.6); } .ftp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ftp .ftp-toast { border-radius: 12px !important; }
@media (max-width: 560px) { .ftp-share span { display: none; } .ftp-share { padding: 0; width: 36px; justify-content: center; } }
