.player-dialog{position:fixed;inset:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#000;box-shadow:none;overflow:hidden;outline:0;color:#fff;--player-inset:clamp(24px,4vw,80px)}
.player-dialog::backdrop{background:#000;backdrop-filter:none}
.player-dialog video{display:block;width:100%;height:100%;object-fit:contain;background:#000;border-radius:0}
.player-accessible-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.watching-video{overflow:hidden}
.player-toolbar{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(#0009,transparent 24%,transparent 68%,#000c)}
.player-toolbar button,.player-toolbar input{pointer-events:auto}
.player-topbar{position:absolute;inset:var(--player-inset) var(--player-inset) auto;display:flex;align-items:center;gap:24px}
.player-dialog .player-icon-button{position:static;display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff}
.player-icon-button svg{width:26px;height:26px}
.player-exit svg{transform:rotate(180deg)}
.player-channel-info{display:flex;min-width:0;flex:1;flex-direction:column;gap:8px;text-shadow:0 2px 8px #0008}
#player-channel-label{font-size:clamp(18px,1.4vw,28px);font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player-source-label{font-size:14px;color:#d3d3d8}
.player-actions{display:flex;gap:16px;align-items:center}
.player-dialog button:hover{background-color:#ffffff14}
.player-dialog button:focus-visible,.player-dialog input:focus-visible{outline:2px solid #fff;outline-offset:5px}
.player-dialog .player-icon-button[aria-pressed=true],
.player-dialog #player-settings[aria-expanded=true]{background:#f5f5f7;color:#171719;box-shadow:0 2px 12px #0002}
.player-icon-button[aria-disabled=true]{opacity:.75}
.player-icon-button .cc-icon{filter:drop-shadow(0 1px 3px #0009)}
.cc-icon{display:grid;place-items:center;width:27px;height:21px;border:1.5px solid currentColor;border-radius:4px;font-size:12px;letter-spacing:-.5px;font-weight:700}
.player-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:88px;height:88px;border:0;border-radius:50%;background:#0003;color:#fff;backdrop-filter:blur(6px)}
.player-center-play svg{width:38px;height:38px}
.player-bottom-bar{position:absolute;inset:auto var(--player-inset) var(--player-inset);display:flex;align-items:center;gap:24px;font-size:15px;font-variant-numeric:tabular-nums}
#player-seek{flex:1;min-width:0;height:32px;accent-color:#fff;cursor:pointer;appearance:none;background:transparent}
#player-seek::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,#fff var(--played,0%),#ffffff45 var(--played,0%))}
#player-seek::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-5.5px;border-radius:50%;background:#fff}
#player-seek::-moz-range-track{height:3px;background:#ffffff45}
#player-seek::-moz-range-thumb{width:14px;height:14px;border:0;background:#fff;border-radius:50%}
#player-live{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1px;margin-left:auto}
#player-live i{width:7px;height:7px;background:#f45c5c;border-radius:50%}
.player-message{position:absolute;left:50%;top:58%;transform:translateX(-50%);z-index:7;max-width:min(560px,85%);text-align:center;text-shadow:0 2px 6px #000}
.player-message p{font-size:14px;line-height:1.6;margin:0 0 12px}.player-message button{background:#ffffff18;padding:10px 18px;border:1px solid #ffffff30;border-radius:24px}
.subtitle-overlay{position:absolute;left:7%;right:7%;bottom:10%;text-align:center;pointer-events:none;white-space:pre-line;line-height:1.42;z-index:2}
.subtitle-overlay>span{font-family:Arial,sans-serif;padding:4px 10px;box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px}

/* Compact settings menu, anchored beneath the top-right controls. */
.player-subtitle-panel{position:absolute;top:calc(var(--player-inset) + 72px);right:var(--player-inset);width:352px;max-width:calc(100vw - 40px);max-height:calc(100vh - var(--player-inset) - 160px);padding:20px;overflow:auto;z-index:5;background:#202024c9;backdrop-filter:blur(28px) saturate(140%);-webkit-backdrop-filter:blur(28px) saturate(140%);border:1px solid #ffffff20;border-radius:16px;box-shadow:0 16px 48px #0005;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent;scroll-padding:16px}
.player-subtitle-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.player-subtitle-panel h2{margin:0;font-size:17px;font-weight:550;letter-spacing:-.3px}
.player-subtitle-panel header button{width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#bdbdc7}
.player-subtitle-panel header svg{width:18px;height:18px}
.player-caption-summary{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}
.player-track-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:10px 12px;min-height:40px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff05;color:#fff;font-size:13px}
.player-track-choice[aria-disabled=true]{color:#95959f}
.player-track-choice svg{width:14px;height:14px;flex-shrink:0}
.player-track-choice span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#player-track-note{color:#92929f;font-size:11px;line-height:1.5;margin:0}
#player-style-sample{padding:8px;border-radius:4px;text-align:center;line-height:1.4;order:3}
#player-subtitle-controls{display:flex;flex-direction:column}
.player-pref{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-top:1px solid #ffffff10}
.player-pref-label{font-size:12px;color:#b9b9c2}
.player-stepper{display:flex;align-items:center;justify-content:space-between;gap:4px;width:164px;flex-shrink:0}
.player-stepper button{height:40px;width:28px;flex-shrink:0;border-radius:6px;background:transparent;color:#c7c7d0;padding:0}
.player-stepper svg{width:13px;height:13px}
.player-stepper button[data-direction='-1'] svg{transform:rotate(180deg)}
.player-stepper output{font-size:12px;text-align:center;min-width:96px;font-variant-numeric:tabular-nums}
.player-dialog[data-settings-open=true] .player-center-play{visibility:hidden}
@media(max-width:650px){.player-dialog{--player-inset:20px}.player-topbar{gap:8px}.player-dialog .player-icon-button{width:40px;height:44px;flex-basis:40px}.player-actions{gap:0}.player-icon-button svg{width:22px;height:22px}.player-channel-info{gap:4px}#player-channel-label{font-size:15px}#player-source-label{font-size:11px}.player-center-play{width:72px;height:72px}.player-bottom-bar{gap:12px;font-size:12px}.player-subtitle-panel{top:88px;max-height:calc(100vh - 160px);padding:16px}.player-actions{gap:0}.player-stepper{width:156px}.player-stepper output{min-width:88px}}

/* Kaldığın yerden devam: oynatıcının ortasında iki seçenek. */
.player-resume{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px 32px;border-radius:24px;background:#202024c9;border:1px solid #ffffff24;backdrop-filter:blur(28px) saturate(140%);-webkit-backdrop-filter:blur(28px) saturate(140%);box-shadow:0 20px 60px #0008;text-align:center}
.player-resume p{margin:0;font-size:17px;color:#d6d6dc;font-variant-numeric:tabular-nums}
.player-resume-actions{display:flex;gap:14px}
.player-resume-actions button{min-width:180px;min-height:52px;font-size:17px}
.player-resume-actions svg{width:18px;height:18px}
/* Sonraki bölüm: sağ altta, ilerleme çubuğunun üstünde. */
.player-next{position:absolute;right:var(--player-inset);bottom:calc(var(--player-inset) + 56px);z-index:6;display:flex;align-items:center;gap:14px;padding:12px 16px 12px 20px;min-height:56px;border:1px solid #ffffff30;border-radius:16px;background:#202024b3;color:#fff;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);text-align:left;transition:background-color 180ms ease,color 180ms ease,transform 180ms ease}
.player-next-text{display:flex;flex-direction:column;gap:3px}
.player-next strong{font-size:16px;font-weight:650}
.player-next small{font-size:12px;color:#c9c9d0;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-next svg{width:20px;height:20px}
.player-next.is-prominent{background:#f5f5f7;color:#171719;border-color:transparent;box-shadow:0 10px 30px #0006;transform:scale(1.04)}
.player-next.is-prominent small{color:#4a4a52}
.player-dialog .player-next.is-prominent:hover{background:#fff}
@media(max-width:650px){.player-resume{padding:20px;width:calc(100vw - 40px)}.player-resume-actions{flex-direction:column;width:100%}.player-resume-actions button{min-width:0;width:100%}.player-next{bottom:calc(var(--player-inset) + 48px)}}
