/* Telegazeta NBA - nbahistoria.pl */
@font-face {
	font-family: 'NBATG Teletext';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/nbatg-teletext-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'NBATG Teletext';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/nbatg-teletext-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.nbatg {
	/* Kolory telegazety - można nadpisać w Wygląd > Dostosuj > Dodatkowy CSS */
	--tg-blue: #1A1AE6;
	--tg-red: #FF2020;
	--tg-magenta: #FF40FF;
	--tg-green: #40FF40;
	--tg-cyan: #40FFFF;
	--tg-yellow: #FFFF40;
	--tg-gold: #C9A227;
	--tg-frame: #EDEDED;
	--tg-font: 'NBATG Teletext', 'Courier New', monospace;
	max-width: 1100px;
	margin: 0 auto 2em;
	container-type: inline-size;
}
.nbatg *, .nbatg *::before, .nbatg *::after { box-sizing: border-box; }
.nbatg [hidden] { display: none !important; }

/* Telewizor */
.nbatg .tg-tv {
	background: var(--tg-frame);
	border-radius: clamp(14px, 2.6cqw, 30px);
	padding: clamp(10px, 2.2cqw, 26px) clamp(10px, 2.2cqw, 26px) clamp(8px, 1.4cqw, 16px);
}
.nbatg .tg-screen {
	background: #000;
	color: #fff;
	border-radius: clamp(14px, 3.4cqw, 40px);
	padding: clamp(12px, 3.6cqw, 44px) clamp(10px, 3.4cqw, 40px);
	font-family: var(--tg-font);
	font-size: clamp(7px, 1.75vw, 20px);
	font-size: clamp(7px, 2.05cqw, 20px);
	line-height: 1.55;
	letter-spacing: .02em;
	text-align: left;
	-webkit-font-smoothing: none;
	font-smooth: never;
}
.nbatg .tg-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: clamp(6px, 1.1cqw, 12px) clamp(6px, 1.6cqw, 18px) 0;
	font: 700 clamp(10px, 1.35cqw, 15px)/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
	letter-spacing: .08em;
	color: #5a5a5a;
}
.nbatg .tg-led {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d33;
	box-shadow: 0 0 6px #f44;
}

/* Reset elementów motywu wewnątrz ekranu */
.nbatg .tg-screen h2,
.nbatg .tg-screen p,
.nbatg .tg-screen nav,
.nbatg .tg-screen section {
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
	color: inherit;
	text-transform: none;
	border: 0;
	background: none;
}
.nbatg .tg-screen a { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.nbatg .tg-screen a:hover, .nbatg .tg-screen a:focus-visible { color: var(--tg-yellow); }

/* Układ ekranu */
.nbatg .tg-head { display: flex; justify-content: space-between; gap: 1ch; white-space: nowrap; }
.nbatg .tg-num.is-rolling { color: var(--tg-yellow); }
.nbatg .tg-band { margin-top: .5em; background: var(--tg-blue); color: #fff; text-align: center; }
.nbatg .tg-title-wrap { display: flex; justify-content: center; }
.nbatg .tg-screen .tg-title { background: var(--tg-red); color: #fff; padding: 0 2ch; text-align: center; }
.nbatg .tg-pages { min-height: 28em; }
.nbatg .tg-page { display: flex; flex-direction: column; min-height: 28em; }
.nbatg .tg-body { flex: 1 1 auto; }

.nbatg .tg-r { display: grid; column-gap: 1ch; }
.nbatg .tg-r > span { white-space: nowrap; overflow: hidden; min-width: 0; }
.nbatg .tg-res { grid-template-columns: minmax(0, 12ch) minmax(0, 12ch) minmax(0, 1fr) 4ch; }
.nbatg .tg-std { grid-template-columns: minmax(0, 1fr) 3ch 3ch 5ch; }
.nbatg .tg-ld { grid-template-columns: 3ch minmax(0, 1fr) 4ch 5ch; }
.nbatg .tg-l { overflow-wrap: anywhere; }
.nbatg .tg-split { display: flex; justify-content: space-between; gap: 1ch; }
.nbatg .tg-game { margin-top: .8em; }
.nbatg .tg-mt { margin-top: .8em; }
.nbatg .tg-c { text-align: center; }
.nbatg .tg-rt { text-align: right; }
.nbatg .tg-otd { display: flex; justify-content: space-between; gap: 1ch; margin-top: .7em; }

.nbatg .c-y { color: var(--tg-yellow); }
.nbatg .c-r { color: var(--tg-red); }
.nbatg .c-m { color: var(--tg-magenta); }
.nbatg .c-g { color: var(--tg-green); }
.nbatg .c-c { color: var(--tg-cyan); }
.nbatg .tg-screen a.c-y { color: var(--tg-yellow); }

.nbatg .tg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .2em 2ch; margin-top: .9em; }
.nbatg .tg-sq { display: inline-block; width: .8em; height: .8em; margin-right: .6ch; vertical-align: -.05em; background: currentColor; }
.nbatg .tg-arrows { margin-left: auto; display: flex; gap: 1ch; }
.nbatg .tg-arrows button {
	font: inherit;
	line-height: 1;
	min-width: 3ch;
	min-height: 2em;
	padding: .3em .5em;
	background: #000;
	color: var(--tg-yellow);
	border: 2px solid var(--tg-yellow);
	border-radius: 0;
	cursor: pointer;
}
.nbatg .tg-arrows button:hover { background: var(--tg-yellow); color: #000; }
.nbatg .tg-screen .tg-nav { display: flex; justify-content: space-between; gap: 1ch; margin-top: .3em; padding: 0 1ch; background: var(--tg-blue); color: #fff; }

/* Pilot pod ekranem */
.nbatg .tg-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.nbatg .tg-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.nbatg .tg-go label { font-size: 15px; margin: 0; }
.nbatg .tg-go input {
	width: 84px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: #000;
	color: var(--tg-yellow);
	border: 1px solid #444;
	border-radius: 8px;
	font-family: var(--tg-font);
	font-size: 16px;
	text-align: center;
}
.nbatg .tg-go button,
.nbatg .tg-dl {
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	line-height: 44px;
	cursor: pointer;
}
.nbatg .tg-go button { background: var(--tg-gold); color: #0D0D0D; }
.nbatg .tg-go button:hover { filter: brightness(1.1); }
.nbatg .tg-fx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nbatg .tg-dl { display: inline-flex; align-items: center; gap: 8px; background: #262626; color: #F5F5F5; border: 1px solid #3A3A3A; }
.nbatg .tg-dl:hover { background: #333; }
.nbatg .tg-dl[disabled] { opacity: .6; cursor: progress; }
.nbatg .tg-fxb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 44px;
	padding: 0 8px;
	border-radius: 8px;
	font-family: var(--tg-font);
	font-size: 13px;
	text-decoration: none !important;
	box-shadow: none;
}
.nbatg .fx-r { background: var(--tg-red); color: #fff !important; }
.nbatg .fx-g { background: var(--tg-green); color: #000 !important; }
.nbatg .fx-y { background: var(--tg-yellow); color: #000 !important; }
.nbatg .fx-c { background: var(--tg-cyan); color: #000 !important; }
.nbatg .tg-fxb[aria-current="page"] { outline: 3px solid var(--tg-gold); outline-offset: 2px; }
.nbatg .tg-updated { margin: 12px 0 0; font-size: 13px; opacity: .65; }
.nbatg .tg-intro { margin-top: 24px; max-width: 760px; }

@media (max-width: 560px) {
	.nbatg .tg-controls { flex-direction: column; align-items: stretch; }
	.nbatg .tg-fx { justify-content: space-between; }
	.nbatg .tg-dl { order: 5; width: 100%; justify-content: center; }
	.nbatg .tg-fxb { flex: 1 1 0; min-width: 0; }
}
