/* Sırada — TV bekleme / sıra ekranı (16:9 ekranlar için viewport birimleriyle ölçeklenir) */
.tv {
  --navy-0: #030b1f;
  --navy-1: #071a3d;
  --navy-2: #0c2a5e;
  --glow: #2f7bff;
  --glow-2: #5ea2ff;
  --glass: rgba(120, 150, 210, .10);
  --glass-line: rgba(160, 190, 255, .28);
  margin: 0; height: 100vh; overflow: hidden; color: #fff; font-family: var(--font);
  background: radial-gradient(120% 90% at 70% 0%, var(--navy-2) 0%, var(--navy-1) 45%, var(--navy-0) 100%);
  display: grid; grid-template-rows: 15vh 1fr 19vh;
}
.tv.idle, .tv.idle * { cursor: none; }
.tv .ic { width: 1em; height: 1em; }

/* Arka plandaki akan ince çizgiler */
.tv-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tv-bg span { position: absolute; left: -10%; width: 120%; height: 40vh; border-radius: 50%; border-top: 1px solid rgba(94, 162, 255, .18); }
.tv-bg .w1 { top: 52vh; transform: rotate(-6deg); animation: drift 18s ease-in-out infinite; }
.tv-bg .w2 { top: 58vh; transform: rotate(-3deg); border-color: rgba(94, 162, 255, .12); animation: drift 22s ease-in-out infinite reverse; }
.tv-bg .w3 { top: 64vh; transform: rotate(-8deg); border-color: rgba(94, 162, 255, .08); animation: drift 26s ease-in-out infinite; }
@keyframes drift { 50% { translate: 4vw -1.5vh; } }

/* Üst bant */
.tv-head { position: relative; display: flex; align-items: center; gap: 4vw; padding: 0 4.5vw; }
.tv-brand { display: flex; align-items: center; gap: 1.4vw; min-width: 0; }
.tv-logo { display: grid; place-items: center; width: 7.4vh; height: 7.4vh; border-radius: 2vh; background: linear-gradient(145deg, var(--glow), #1240b8); box-shadow: 0 0 3vh rgba(47, 123, 255, .55); font-size: 4.2vh; flex-shrink: 0; }
.tv-name { font-size: 4.2vh; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.02; max-width: 30vw; text-shadow: 0 0 2vh rgba(94, 162, 255, .35); }
.tv-clock { display: flex; align-items: baseline; gap: 1.2vw; }
.tv-clock b { font-size: 9vh; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-shadow: 0 0 3vh rgba(94, 162, 255, .35); }
.tv-clock small { font-size: 2.2vh; color: #a9c2ee; text-transform: capitalize; }
.tv-sound { margin-left: auto; display: inline-flex; align-items: center; gap: .8vw; height: 5.4vh; padding: 0 1.6vw; border-radius: 1.4vh; border: 1px solid var(--glass-line); background: var(--glass); color: #dbe6ff; font-size: 1.9vh; font-weight: 600; backdrop-filter: blur(10px); transition: opacity .3s; }
.tv-sound .ic { font-size: 2.5vh; }
.tv-sound.on { background: #fff; color: var(--navy-1); border-color: #fff; }
.tv.idle .tv-sound:not(.on) { opacity: 0; }

/* Paneller */
.tv-main { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; padding: 1vh 4.5vw 3vh; min-height: 0; }
.tv-panel { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 3vh; overflow: hidden; }
.tv-panel header { padding: 2.6vh 2vw 2.2vh; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tv-panel h2 { margin: 0; font-size: 4.4vh; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.tv-panel header p { margin: .6vh 0 0; font-size: 2.7vh; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tv-panel.prep { background: linear-gradient(180deg, rgba(110, 130, 170, .28), rgba(25, 40, 75, .55)); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 3vh 6vh -2vh rgba(0, 0, 0, .5); backdrop-filter: blur(16px); }
.tv-panel.prep header p { color: #8fb4f4; }
.tv-panel.ready { background: linear-gradient(180deg, #2d86ff 0%, #1667f2 45%, #0d4fd1 100%); border: 2px solid #8cc0ff; box-shadow: 0 0 0 1px rgba(140, 192, 255, .4), 0 0 5vh rgba(47, 123, 255, .75), 0 0 12vh rgba(47, 123, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.tv-panel.ready header { background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent); border-color: rgba(255, 255, 255, .28); }
.tv-panel.ready header p { color: #dcebff; }

.tv-list { list-style: none; margin: 0; padding: 2.2vh 3.4vw; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: .4vh; overflow: hidden; }
.tv-list li { display: flex; align-items: center; gap: 1.6vw; min-height: 8vh; animation: tvIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes tvIn { from { opacity: 0; transform: translateX(-2vw); } }
.tv-list .dot { width: 1.6vh; height: 1.6vh; border-radius: 50%; background: #fff; flex-shrink: 0; box-shadow: 0 0 1.4vh rgba(255, 255, 255, .5); }
.tv-list b { font-size: 7.6vh; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-shadow: 0 .4vh 1.4vh rgba(0, 0, 0, .3); }
.prep .tv-list b { font-size: 6.6vh; }
.prep .tv-list li.waiting { opacity: .62; }
.prep .tv-list li.waiting .dot { background: #8fb4f4; box-shadow: none; }
.tv-list .tag { display: inline-flex; align-items: center; gap: .5vw; margin-left: auto; height: 3.8vh; padding: 0 1vw; border-radius: 1vh; background: rgba(47, 123, 255, .35); border: 1px solid rgba(140, 192, 255, .45); font-size: 1.8vh; font-weight: 700; color: #dcebff; }
.tv-list .tag.soft { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #a9c2ee; }
.tv-list .tag .ic { font-size: 2vh; color: #ffb36b; }
.tv-list .more, .tv-list .empty { font-size: 2.6vh; color: #a9c2ee; min-height: 6vh; }
.ready .tv-list .empty { color: #dcebff; }
.ready .tv-list b { font-size: 9vh; }
.ready .tv-list li { min-height: 10.4vh; }
.ready .tv-list .ok { margin-left: auto; font-size: 5.4vh; color: #fff; filter: drop-shadow(0 0 1.2vh rgba(255, 255, 255, .7)); display: grid; }
.ready .tv-list .ok .ic { stroke-width: 2.6; }
.ready .tv-list .bell { position: relative; display: grid; place-items: center; font-size: 4.4vh; color: #fff; animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
.ready .tv-list .bell em { position: absolute; left: 100%; top: -1.6vh; margin-left: .3vw; font-style: normal; font-size: 1.9vh; font-weight: 800; letter-spacing: .1em; color: #fff; text-shadow: 0 0 1vh rgba(255, 255, 255, .9); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }
.ready .tv-list li.new b { text-shadow: 0 0 3vh rgba(255, 255, 255, .55); }
.ready .tv-list li.new { animation: tvIn .5s cubic-bezier(.2, .8, .2, 1), newGlow 2s ease-in-out 3; border-radius: 2vh; }
@keyframes newGlow { 50% { background: rgba(255, 255, 255, .12); } }
.ready .tv-list .waves { display: flex; gap: .3vw; align-items: center; }
.ready .tv-list .waves i { width: 1.2vh; height: 4.6vh; border-radius: 50%; border-right: .5vh solid rgba(255, 255, 255, .55); }
.ready .tv-list .waves i:last-child { height: 6.4vh; opacity: .55; }

.tv-spinner { position: absolute; right: 2.6vw; bottom: 2.6vh; width: 5.4vh; height: 5.4vh; animation: spin 1.2s steps(8) infinite; }
.tv-spinner i { position: absolute; left: 50%; top: 0; width: .9vh; height: .9vh; margin-left: -.45vh; border-radius: 50%; background: #fff; transform-origin: .45vh 2.7vh; }
.tv-spinner i:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.tv-spinner i:nth-child(2) { transform: rotate(45deg); opacity: .85; }
.tv-spinner i:nth-child(3) { transform: rotate(90deg); opacity: .7; }
.tv-spinner i:nth-child(4) { transform: rotate(135deg); opacity: .55; }
.tv-spinner i:nth-child(5) { transform: rotate(180deg); opacity: .42; }
.tv-spinner i:nth-child(6) { transform: rotate(225deg); opacity: .32; }
.tv-spinner i:nth-child(7) { transform: rotate(270deg); opacity: .22; }
.tv-spinner i:nth-child(8) { transform: rotate(315deg); opacity: .14; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alt bant */
.tv-foot { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3vw; padding: 0 4.5vw; background: linear-gradient(180deg, rgba(3, 11, 31, .2), rgba(3, 11, 31, .85)); border-top: 1px solid rgba(94, 162, 255, .22); }
.tv-qr { display: flex; align-items: center; gap: 1.6vw; padding: 1.4vh 1.6vw; border-radius: 2vh; background: linear-gradient(90deg, rgba(12, 42, 94, .85), rgba(12, 42, 94, 0)); }
.tv-phone { font-size: 6vh; color: #cfe0ff; display: grid; }
.tv-qrbox { display: grid; justify-items: center; gap: .4vh; padding: .8vh; border-radius: 1.4vh; border: 2px solid var(--glow-2); box-shadow: 0 0 2vh rgba(47, 123, 255, .5); background: rgba(3, 11, 31, .6); }
.tv-qrbox small { font-size: 1.05vh; color: #a9c2ee; letter-spacing: .04em; }
.tv-qrbox #qr { display: block; width: 12vh; height: 12vh; padding: .5vh; background: #fff; border-radius: .8vh; }
.tv-qrbox #qr svg { width: 100%; height: 100%; display: block; }
.tv-qrtext { font-size: 2.2vh; line-height: 1.35; color: #dbe6ff; max-width: 26vw; }
.tv-qrtext b { display: block; font-size: 5.2vh; font-weight: 850; text-transform: uppercase; letter-spacing: .02em; color: #fff; line-height: 1.05; margin-bottom: .6vh; }
.tv-msg { position: relative; text-align: center; display: grid; gap: .6vh; padding-bottom: 1vh; }
.tv-msg em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 4.8vh; color: #e8efff; }
.tv-msg span { font-size: 2.2vh; color: #dbe6ff; }
.tv-wifi { position: absolute; right: 0; bottom: -2.2vh; display: inline-flex; align-items: center; gap: .4vw; font-size: 1.6vh; color: #a9c2ee; }
.tv-wifi .ic { font-size: 1.8vh; }

/* Tam ekran çağrı */
.tv-callout { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(23, 103, 242, .92), rgba(3, 11, 31, .96)); opacity: 0; pointer-events: none; transition: opacity .35s; }
.tv-callout.show { opacity: 1; }
.tv-callout-card { display: grid; justify-items: center; gap: 1vh; padding: 5vh 7vw; border-radius: 5vh; background: linear-gradient(180deg, #2d86ff, #0d4fd1); border: 2px solid #8cc0ff; box-shadow: 0 0 8vh rgba(47, 123, 255, .8); transform: scale(.92); transition: transform .45s cubic-bezier(.2, 1.4, .3, 1); }
.tv-callout.show .tv-callout-card { transform: none; }
.tv-callout-ic { font-size: 9vh; display: grid; animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
.tv-callout small { font-size: 3vh; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #dcebff; }
.tv-callout b { font-size: 30vh; font-weight: 900; letter-spacing: -.04em; line-height: .95; text-shadow: 0 0 6vh rgba(255, 255, 255, .45); }
.tv-callout-card > span:last-child { font-size: 4vh; font-weight: 700; }

/* Dikey ekran / telefon önizlemesi */
@media (max-aspect-ratio: 1/1) {
  .tv { height: auto; min-height: 100vh; overflow: auto; grid-template-rows: auto auto auto; }
  .tv-head { flex-wrap: wrap; gap: 2vh 4vw; padding: 3vh 5vw; }
  .tv-sound { margin-left: 0; }
  .tv-main { grid-template-columns: 1fr; }
  .tv-panel { min-height: 40vh; }
  .tv-foot { grid-template-columns: 1fr; padding: 3vh 5vw; }
  .tv-qrtext { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-bg span, .tv-spinner, .bell, .tv-callout-ic { animation: none !important; } }
