/* Action Smart video oynatıcı */
.asp {
    --asp-accent: #f6b511;
    --asp-accent-2: #ffcd33;
    position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 16px; overflow: hidden;
    color: #fff; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; user-select: none; outline: none;
    isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.asp:focus-visible { box-shadow: 0 0 0 3px rgba(246,181,17,.45); }
.asp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }
.asp.fs { border-radius: 0; aspect-ratio: auto; }
.asp.idle, .asp.idle video { cursor: none; }
.asp button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.asp svg { width: 100%; height: 100%; display: block; }

/* Üst başlık ve alt degrade */
.asp::before, .asp::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; transition: opacity .3s; z-index: 1; }
.asp::before { top: 0; height: 90px; background: linear-gradient(180deg, rgba(0,0,0,.65), transparent); opacity: 0; }
.asp::after { bottom: 0; height: 130px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.asp.has-title::before { opacity: 1; }
.asp.idle::before, .asp.idle::after, .asp.paused:not(.started)::after { opacity: 0; }
.asp-title { position: absolute; top: 0; left: 0; right: 0; padding: 18px 22px; z-index: 2; font-weight: 700; font-size: 16px; letter-spacing: .01em; transition: opacity .3s, transform .3s; text-shadow: 0 1px 8px rgba(0,0,0,.5); pointer-events: none; }
.asp-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.asp.idle .asp-title, .asp.started:not(.paused) .asp-title { opacity: 0; transform: translateY(-6px); }
.asp.started:not(.paused):not(.idle) .asp-title { opacity: 1; transform: none; }

/* Ortadaki büyük oynat butonu */
.asp-big {
    position: absolute; left: 50%; top: 50%; z-index: 3; width: 84px; height: 84px; border-radius: 50%;
    transform: translate(-50%, -50%); display: grid; place-items: center; color: #141414 !important;
    background: linear-gradient(180deg, var(--asp-accent-2), var(--asp-accent)) !important;
    box-shadow: 0 18px 40px -12px rgba(246,181,17,.75), 0 0 0 10px rgba(246,181,17,.16);
    transition: transform .2s ease, opacity .25s ease, box-shadow .2s ease;
}
.asp-big svg { width: 34px; height: 34px; margin-left: 5px; }
.asp.ended .asp-big svg { margin-left: 0; }
.asp-big::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(246,181,17,.5); animation: asp-pulse 2s ease-out infinite; }
.asp-big:hover { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 22px 50px -12px rgba(246,181,17,.9), 0 0 0 14px rgba(246,181,17,.2); }
.asp.started:not(.ended) .asp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.asp.started.paused:not(.ended) .asp-big { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(.82); }
.asp.started.paused:not(.ended) .asp-big::after { animation: none; opacity: 0; }
@keyframes asp-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* Tıklama geri bildirimi */
.asp-flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 2; opacity: 0; pointer-events: none; padding: 18px; }
.asp-flash.go { animation: asp-flash .55s ease-out; }
@keyframes asp-flash { 0% { opacity: .95; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }

/* Yükleniyor / hata */
.asp-spinner { position: absolute; inset: 0; display: none; place-items: center; z-index: 2; pointer-events: none; }
.asp-spinner i { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255,255,255,.18); border-top-color: var(--asp-accent); animation: asp-spin .8s linear infinite; }
.asp.loading .asp-spinner { display: grid; }
@keyframes asp-spin { to { transform: rotate(360deg); } }
.asp-error { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; z-index: 4; background: rgba(0,0,0,.82); font-size: 14px; color: #fca5a5; }
.asp.error .asp-error { display: grid; }

/* Kontrol çubuğu */
.asp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 14px 10px; transition: opacity .3s, transform .3s; }
.asp.paused:not(.started) .asp-bar, .asp.idle .asp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.asp-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.asp-rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; transition: height .15s; }
.asp-progress:hover .asp-rail, .asp.seeking .asp-rail { height: 6px; }
.asp-buffer { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.32); transition: width .2s; }
.asp-played { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--asp-accent), var(--asp-accent-2)); }
.asp-knob { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(246,181,17,.45); transform: scale(0); transition: transform .15s; pointer-events: none; }
.asp-progress:hover .asp-knob, .asp.seeking .asp-knob { transform: scale(1); }
.asp-tip { position: absolute; bottom: 22px; left: 0; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(12,12,14,.92); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; pointer-events: none; white-space: nowrap; }
.asp-progress:hover .asp-tip, .asp.seeking .asp-tip { opacity: 1; }

.asp-controls { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.asp-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; padding: 9px !important; transition: background .15s, color .15s; flex-shrink: 0; }
.asp-btn:hover { background: rgba(255,255,255,.12) !important; color: var(--asp-accent-2) !important; }
.asp-btn[hidden] { display: none; }
.asp-grow { flex: 1; }
.asp-time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); margin-left: 6px; white-space: nowrap; }
.asp-time b { color: #fff; font-weight: 600; }

.asp-vol { display: flex; align-items: center; }
.asp-vol input {
    -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 4px; border-radius: 4px; cursor: pointer; transition: width .2s, opacity .2s, margin .2s;
    background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255,255,255,.25) var(--p, 100%));
}
.asp-vol:hover input, .asp-vol input:focus-visible { width: 78px; opacity: 1; margin: 0 8px 0 2px; }
.asp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.asp-vol input::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }

.asp-speed { position: relative; }
.asp-speed-btn { width: auto; min-width: 44px; font-size: 13px !important; font-weight: 700 !important; padding: 0 8px !important; }
.asp-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 120px; padding: 6px; border-radius: 12px; background: rgba(18,18,22,.96); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px -10px rgba(0,0,0,.6); display: none; backdrop-filter: blur(10px); }
.asp-speed.open .asp-menu { display: grid; }
.asp-menu button { padding: 8px 12px !important; border-radius: 8px; text-align: left; font-size: 13px !important; font-weight: 500; }
.asp-menu button:hover { background: rgba(255,255,255,.08) !important; }
.asp-menu button.on { color: var(--asp-accent-2) !important; font-weight: 700; }

@media (max-width: 640px) {
    .asp { border-radius: 12px; }
    .asp-big { width: 66px; height: 66px; box-shadow: 0 12px 30px -10px rgba(246,181,17,.75), 0 0 0 7px rgba(246,181,17,.16); }
    .asp-big svg { width: 26px; height: 26px; margin-left: 4px; }
    .asp-bar { padding: 0 8px 4px; }
    .asp-btn { width: 34px; height: 34px; padding: 8px !important; }
    .asp-hide-sm, .asp-vol input { display: none; }
    .asp-time { font-size: 12px; }
    .asp-title { padding: 12px 14px; font-size: 14px; }
}
