/* ── Player fullscreen reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Android WebView: OS font-size ayarı rem'i değiştirebilir, 16px sabitle */
    font-size: 16px;

    /* Tizen 7 WebEngine (Chromium 94): disable browser gestures on signage display */
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ── AVPlay compositor transparency ────────────────────────────────────────── */
/* When AVPlay hardware decoder is active, make all HTML layers transparent
   so the video compositor (rendered BELOW the web layer) is visible. */
body.avplay-active,
body.avplay-active #app,
body.avplay-active .scene-outer,
body.avplay-active .scene-viewport,
body.avplay-active .scene-actors {
    background-color: transparent !important;
}

/* Tizen 7: GPU-accelerated layer for video/image containers */
#app {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: contents;
}

/* ── Blazor loading screen ─────────────────────────────────────────────────── */

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ── Blazor fatal error overlay (unattended signage) ───────────────────────── */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    color: #e6eefb;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: center;
}

#blazor-error-ui .tb-error-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
}

#blazor-error-ui .tb-error-overlay p {
    font-size: 1.2rem;
    opacity: 0.7;
    animation: tb-error-pulse 1.5s ease-in-out infinite;
}

@keyframes tb-error-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.9; }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* New logo + pulsing heart loader */
.loading-container {
    position: absolute;
    inset: 18vh 0 auto 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loading-logo {
    width: 5.25rem;
    height: auto;
    display: block;
    border-radius: 0.35rem;
}

.ekg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ekg {
    width: 20rem; /* larger canvas */
    height: auto;
    overflow: visible;
}

.loader-ekg path, .loader-ekg polyline {
    fill: none;
    stroke: #39ff14; /* neon green */
    stroke-width: 1.8; /* thinner line */
    stroke-linejoin: round;
    stroke-linecap: round;
    opacity: 0.22;
    filter: drop-shadow(0 0 6px rgba(57,255,20,0.9));
}

.loader-ekg polyline {
    /* dash length tuned for uniform three pulses */
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: ekg-draw 2.8s cubic-bezier(.25,.1,.25,1) infinite;
}

@keyframes ekg-draw {
    0%   { stroke-dashoffset: 480; opacity: 0.22; }
    8%   { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.22; }
}

/* dot removed — EKG trace only */

.loading-text {
    font-weight: bold;
    color: #e6eefb;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ══════════════════════════════════════════════════════════════════════════════
   DeviceIdleScreen — TIZEN FIX: duplicated as global CSS because Blazor's
   scoped CSS attribute selectors ($[b-...$]) don't work on Tizen Chromium 94.
   Source: DeviceIdleScreen.razor.css
══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   DeviceIdleScreen — TV-grade kurumsal bekleme ekranı
   Zemin: saf siyah. Vurgu: mavi/turkuaz. Tipografi: sistem sans-serif.
══════════════════════════════════════════════════════════════════════════════ */

/* ── Kök kapsayıcı ─────────────────────────────────────────────────────────── */
.idle-screen {
    position: fixed;
    top: 0;
    left: 0;
    background: #000000;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #e0e8f0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 3.6rem 1fr 2.4rem;
    grid-template-columns: 1fr;
    /* Android TV DPR telafisi — değerler JS'te hesaplanır (CSS aritmetik yok) */
    width: var(--tbs-screen-w, 100vw);
    height: var(--tbs-screen-h, 100vh);
    transform: scale(var(--tbs-screen-scale, 1));
    transform-origin: top left;
}

/* ── Üst şerit ─────────────────────────────────────────────────────────────── */
.idle-topbar {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.idle-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.idle-topbar-icon {
    font-size: 0.9rem;
    color: #2563eb;
    background: #2563eb22;
    border: 1px solid #2563eb44;
    border-radius: 5px;
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

.idle-topbar-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
}

.idle-topbar-tagline {
    font-size: 0.72rem;
    color: #3a4558;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-left: 0.6rem;
    border-left: 1px solid #1a2233;
    margin-left: 0.2rem;
}

.idle-topbar-right {
    font-size: 0.78rem;
    color: #334155;
    letter-spacing: 0.04em;
    text-transform: capitalize;
}

/* ── Merkez alan ───────────────────────────────────────────────────────────── */
.idle-center {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    position: relative;
}

/* Logo bloğu */
.idle-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.idle-logo-icon-lg {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2563eb;
    border: 2px solid #2563eb33;
    border-radius: 16px;
    background: #2563eb0d;
    box-shadow: 0 0 32px #2563eb22;
    animation: idleLogoPulse 4s ease-in-out infinite;
}

@keyframes idleLogoPulse {
    0%, 100% { box-shadow: 0 0 24px #2563eb22; }
    50%       { box-shadow: 0 0 48px #2563eb44; }
}

.idle-logo-wordmark {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Tarayıcı çizgisi — TV efekti */
.idle-scan-line {
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2563eb 40%, #38bdf8 60%, transparent 100%);
    opacity: 0.6;
}

/* Dijital saat */
.idle-clock {
    font-size: 5.5rem;
    font-weight: 100;
    letter-spacing: 0.08em;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 60px rgba(56, 189, 248, 0.18);
}

/* Durum satırı */
.idle-status-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.idle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e88;
    animation: idleDotPulse 2.5s ease-in-out infinite;
}

@keyframes idleDotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.idle-status-text {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #22c55e;
    font-weight: 500;
}

/* ── Sol alt panel: cihaz bilgileri ────────────────────────────────────────── */
.idle-device-panel {
    position: absolute;
    bottom: 3.6rem;   /* bottombar yüksekliği kadar yukarı */
    left: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 260px;
}

.idle-info-panel {
    position: absolute;
    bottom: 3.6rem;
    right: 2.4rem;
    max-width: 280px;
    text-align: right;
}

.idle-panel-title {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1e3a5f;
    font-weight: 700;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #0f1f33;
    padding-bottom: 0.25rem;
}

.idle-panel-row {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    font-size: 0.78rem;
}

.idle-panel-label {
    color: #1e3a5f;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    min-width: 52px;
}

.idle-panel-value {
    color: #334155;
    font-size: 0.78rem;
}

.idle-panel-value.mono {
    font-family: 'Consolas', 'Cascadia Code', monospace;
    font-size: 0.72rem;
    color: #1e3a5f;
    word-break: break-all;
}

.idle-info-text {
    font-size: 0.76rem;
    color: #1a2b3c;
    line-height: 1.6;
    margin: 0;
}

/* ── Alt şerit ─────────────────────────────────────────────────────────────── */
.idle-bottombar {
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f1a27;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.idle-bottombar strong {
    color: #162033;
    font-weight: 700;
}

.idle-bottombar-sep {
    color: #0c1520;
}


/* ── Arka plan süsleme orbs ─────────────────────────────────────────────────── */

.idle-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: idleOrbFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.idle-bg-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1e90ff 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation-duration: 14s;
}

.idle-bg-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation-duration: 10s;
    animation-direction: alternate-reverse;
}

.idle-bg-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation-duration: 18s;
}

@keyframes idleOrbFloat {
    from { transform: translate(0, 0) scale(1);   }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Ana kart ────────────────────────────────────────────────────────────────── */

.idle-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 3rem 3.5rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
    max-width: 520px;
    width: 88vw;
    text-align: center;
    animation: idleCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes idleCardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Logo ────────────────────────────────────────────────────────────────────── */

.idle-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.idle-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 10px;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.idle-logo-text {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Saat ─────────────────────────────────────────────────────────────────────── */

.idle-clock {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.06em;
    color: #f0f4ff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.35);
}

.idle-date {
    font-size: 0.95rem;
    color: #8892a4;
    text-transform: capitalize;
    letter-spacing: 0.04em;
}

/* ── Ayraç ───────────────────────────────────────────────────────────────────── */

.idle-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ── Durum rozeti ─────────────────────────────────────────────────────────────── */

.idle-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    font-size: 0.82rem;
    color: #4ade80;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.idle-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: idlePulse 2s ease-in-out infinite;
}

@keyframes idlePulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Mesaj ───────────────────────────────────────────────────────────────────── */

.idle-message {
    font-size: 0.9rem;
    color: #7c8594;
    line-height: 1.65;
    margin: 0;
}

/* ── Cihaz bilgi kutusu ──────────────────────────────────────────────────────── */

.idle-device-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 0.2rem;
}

.idle-device-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
}

.idle-device-label {
    color: #5a6475;
    font-weight: 500;
    white-space: nowrap;
}

.idle-device-value {
    color: #94a3b8;
    font-family: 'Consolas', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    text-align: right;
}

/* ── Alt bandı ───────────────────────────────────────────────────────────────── */

.idle-footer {
    position: absolute;
    bottom: 1.4rem;
    font-size: 0.75rem;
    color: #2d3748;
    letter-spacing: 0.05em;
    z-index: 1;
}

.idle-footer strong {
    color: #3d4a5c;
}

