/* TVPM — ciemny motyw (wariant A „Studio”). Prefiks klas: .tv- */

/* Czcionki Barlow / Barlow Condensed (SIL OFL, pliki w ../fonts) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.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: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-italic.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; }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-italic.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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.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: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.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; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-normal.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; }

:root {
    --tv-bg: #0C0E13;
    --tv-bg-deep: #08090D;
    --tv-surface: #161A22;
    --tv-surface-2: #12151C;
    --tv-line: #1E232D;
    --tv-line-2: #262C38;
    --tv-text: #EDEFF3;
    --tv-text-2: #C9CED7;
    --tv-muted: #A3AAB8;
    --tv-accent: #F08A24;
    --tv-accent-text: #F59A3C;
    --tv-live: #D8333A;
    --tv-live-text: #FF6B70;
    --tv-radius: 10px;
    --tv-sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tv-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tv-body { margin: 0; background: var(--tv-bg); color: var(--tv-text); font-family: var(--tv-sans); font-size: 17px; line-height: 1.55; hyphens: none; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--tv-text); text-decoration: none; }
a:hover { color: var(--tv-accent-text); }
:focus-visible { outline: 3px solid var(--tv-accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--tv-cond); font-weight: 700; line-height: 1.1; margin: 0; }

.tv-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tv-skip { position: absolute; left: -999px; top: 8px; background: var(--tv-accent); color: #0C0E13; padding: 8px 14px; z-index: 100; font-weight: 600; }
.tv-skip:focus { left: 8px; }
.tv-muted { color: var(--tv-muted); }
.tv-empty { color: var(--tv-muted); padding: 48px 0; font-size: 19px; }

/* Pasek górny */
.tv-topbar { background: var(--tv-bg-deep); border-bottom: 1px solid var(--tv-line); font-size: 14px; color: var(--tv-muted); }
.tv-topbar-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.tv-topbar-live { display: inline-flex; gap: 8px; align-items: center; }
.tv-topbar-live strong { color: var(--tv-live-text); letter-spacing: .06em; }
.tv-topbar-plan { color: var(--tv-text-2); }
.tv-dot { width: 9px; height: 9px; border-radius: 50%; background: #F0464C; display: inline-block; animation: tv-pulse 1.6s ease-in-out infinite; }
@keyframes tv-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tv-dot { animation: none; } }

/* Nagłówek i menu */
.tv-header { border-bottom: 1px solid var(--tv-line); background: var(--tv-bg); position: relative; z-index: 20; }
.tv-header-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tv-brand { display: flex; gap: 14px; align-items: center; flex: none; }
.tv-brand img { height: 52px; width: auto; }
.tv-brand-tag { font-family: var(--tv-cond); font-weight: 600; font-size: 15px; letter-spacing: .14em; color: var(--tv-muted); line-height: 1.2; text-transform: uppercase; }
.tv-nav { flex: 1 1 auto; }
.tv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.tv-nav a { display: block; padding: 6px 0; font-family: var(--tv-cond); font-weight: 600; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.tv-nav a.active { color: var(--tv-accent-text); border-bottom-color: var(--tv-accent); }
.tv-search { display: flex; align-items: center; background: var(--tv-surface); border: 1px solid var(--tv-line-2); border-radius: 8px; height: 44px; }
.tv-search input { background: transparent; border: 0; color: var(--tv-text); font: inherit; font-size: 15px; width: 150px; padding: 0 0 0 12px; outline: none; }
.tv-search input::placeholder { color: var(--tv-muted); }
.tv-search button { width: 44px; height: 42px; border: 0; background: transparent; color: var(--tv-text); cursor: pointer; font-size: 16px; }
.tv-search:focus-within { border-color: var(--tv-accent); }
.tv-menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--tv-line-2); background: var(--tv-surface); cursor: pointer; position: relative; }
.tv-burger, .tv-burger::before, .tv-burger::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--tv-text); content: ''; transition: transform .2s; }
.tv-burger { top: 22px; }
.tv-burger::before { left: 0; top: -7px; }
.tv-burger::after { left: 0; top: 7px; }
.tv-menu-btn[aria-expanded="true"] .tv-burger { background: transparent; }
.tv-menu-btn[aria-expanded="true"] .tv-burger::before { transform: translateY(7px) rotate(45deg); }
.tv-menu-btn[aria-expanded="true"] .tv-burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .tv-brand-tag { display: none; }
}
@media (max-width: 900px) {
    .tv-menu-btn { display: block; }
    .tv-nav, .tv-search { display: none; flex-basis: 100%; }
    .tv-header.tv-open .tv-nav, .tv-header.tv-open .tv-search { display: flex; }
    .tv-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .tv-nav a { padding: 12px 0; border-bottom: 1px solid var(--tv-line); font-size: 21px; }
    .tv-search input { flex: 1; width: auto; }
    .tv-brand-tag { display: inline; font-size: 13px; }
}

.tv-main { padding: 28px 0 0; min-height: 50vh; }

/* Elementy wspólne */
.tv-pill { display: inline-block; background: var(--tv-accent); color: #0C0E13; padding: 3px 9px; border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
a.tv-pill:hover { color: #0C0E13; background: var(--tv-accent-text); }
.tv-kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-accent-text); }
.tv-date { color: var(--tv-muted); font-size: 14px; }
.tv-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: var(--tv-surface); color: var(--tv-line-2); font-size: 48px; }
.tv-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(12,14,19,.8); border: 2px solid var(--tv-accent); color: var(--tv-accent); display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; }
.tv-btn { display: inline-flex; gap: 8px; align-items: center; background: var(--tv-accent); color: #0C0E13; padding: 12px 20px; border-radius: 8px; font-weight: 600; }
.tv-btn:hover { background: var(--tv-accent-text); color: #0C0E13; }
.tv-btn-ghost { background: transparent; color: var(--tv-text); border: 1px solid var(--tv-line-2); }
.tv-btn-ghost:hover { background: var(--tv-surface); color: var(--tv-text); }

/* Czołówka strony głównej */
.tv-front { display: flex; flex-wrap: wrap; gap: 24px; }
.tv-lead, .tv-front-main { flex: 999 1 560px; min-width: 0; }
.tv-lead { position: relative; display: block; border-radius: var(--tv-radius); overflow: hidden; background: var(--tv-surface); }
.tv-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-lead-play { position: absolute; top: 22px; left: 22px; width: 64px; height: 64px; border-radius: 50%; background: rgba(12,14,19,.8); border: 2px solid var(--tv-accent); color: var(--tv-accent); display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 4px; }
.tv-lead-text { position: absolute; inset: auto 0 0 0; padding: 90px 28px 26px; background: linear-gradient(to top, rgba(8,9,13,.96) 35%, rgba(8,9,13,0)); display: flex; flex-direction: column; gap: 10px; }
.tv-lead-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: #D5D9E0; }
.tv-lead-title { font-family: var(--tv-cond); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.05; color: #fff; }
.tv-lead:hover .tv-lead-title { color: var(--tv-accent-text); }
.tv-front-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tv-box { background: var(--tv-surface); border: 1px solid var(--tv-line-2); border-radius: var(--tv-radius); padding: 16px 18px; }
.tv-box.tv-live { padding: 0; overflow: hidden; }
.tv-box-body { padding: 14px 18px 18px; }
.tv-box-body p { margin: 4px 0 0; font-size: 15px; }
.tv-box-title { font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-accent-text); margin-bottom: 8px; }
.tv-live-screen { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #050608; }
.tv-live-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.tv-live-screen .tv-play { position: relative; }
.tv-live-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; gap: 6px; align-items: center; background: var(--tv-live); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 4px; letter-spacing: .06em; }
.tv-live-badge .tv-dot { background: #fff; width: 7px; height: 7px; }
.tv-live-title { font-family: var(--tv-cond); font-weight: 700; font-size: 22px; line-height: 1.15; display: block; }
.tv-live-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 18px; }
.tv-live-head .tv-live-badge { position: static; }
.tv-plan { list-style: none; margin: 0; padding: 0; }
.tv-plan li { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid #232937; }
.tv-plan time { font-family: var(--tv-cond); font-weight: 700; font-size: 17px; min-width: 78px; }
.tv-plan span { color: var(--tv-text-2); font-size: 15px; }
.tv-plan small { display: block; color: var(--tv-muted); font-size: 13px; }

/* Sekcje i siatki */
.tv-section { margin-top: 44px; }
.tv-section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--tv-accent); padding-bottom: 8px; margin-bottom: 20px; }
.tv-section-head h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .04em; }
.tv-section-head a { color: var(--tv-accent-text); font-weight: 600; }
.tv-panel { background: var(--tv-surface-2); border: 1px solid var(--tv-line); border-radius: 12px; padding: 24px; }
.tv-panel .tv-section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 18px; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.tv-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.tv-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tv-card-img { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--tv-surface); margin-bottom: 2px; }
.tv-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.tv-card-img:hover img { transform: scale(1.03); }
.tv-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(8,9,13,.85); color: var(--tv-text); font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.tv-card-title { font-family: var(--tv-cond); font-weight: 600; font-size: 22px; line-height: 1.15; }

.tv-gal { display: flex; flex-direction: column; gap: 10px; }
.tv-gal-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: 8px; overflow: hidden; height: 200px; }
.tv-gal-mosaic > img { grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.tv-gal-mosaic > img:only-child { grid-column: 1 / 3; }
.tv-gal-small { position: relative; display: block; min-height: 0; }
.tv-gal-small img { width: 100%; height: 100%; object-fit: cover; }
.tv-gal-more { position: absolute; inset: 0; background: rgba(8,9,13,.65); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }

.tv-cols { display: flex; flex-wrap: wrap; gap: 28px; }
.tv-col { flex: 1 1 300px; min-width: 0; }
.tv-col-title { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--tv-accent); padding-bottom: 6px; margin-bottom: 4px; }
.tv-col-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--tv-line); font-size: 17px; font-weight: 500; line-height: 1.3; }

/* Listy, filtry, stronicowanie */
.tv-list-header { margin-bottom: 18px; }
.tv-list-header h1 { font-size: clamp(32px, 4vw, 44px); text-transform: uppercase; letter-spacing: .02em; }
.tv-list-header small { font-size: .6em; color: var(--tv-muted); }
.tv-list-intro { color: var(--tv-text-2); max-width: 760px; }
.tv-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--tv-line); }
.tv-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tv-filter-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-muted); min-width: 64px; }
.tv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--tv-surface); border: 1px solid var(--tv-line-2); font-size: 15px; font-weight: 500; }
.tv-chip.active { background: var(--tv-accent); border-color: var(--tv-accent); color: #0C0E13; }
.tv-pagination { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin: 40px 0 0; color: var(--tv-muted); }
.tv-pagination a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 8px; background: var(--tv-surface); border: 1px solid var(--tv-line-2); color: var(--tv-text); font-weight: 600; }

/* Wpis */
.tv-article { max-width: 880px; margin: 0 auto; }
.tv-article-header { margin-bottom: 22px; }
.tv-article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.tv-article h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; }
.tv-article-lead { font-size: 20px; line-height: 1.5; color: var(--tv-text-2); margin: 16px 0 0; font-weight: 500; }
.tv-byline { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--tv-muted); font-size: 15px; margin: 14px 0 0; }
.tv-article-img { margin: 0 0 26px; }
.tv-article-img img { width: 100%; border-radius: var(--tv-radius); }
.tv-article-img figcaption { color: var(--tv-muted); font-size: 14px; margin-top: 8px; }
.tv-article-body { font-size: 18px; line-height: 1.7; color: #E2E5EA; }
.tv-article-body p { margin: 0 0 1.1em; }
.tv-article-body a { color: var(--tv-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.tv-article-body h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.tv-article-body h3 { font-size: 24px; margin: 1.3em 0 .4em; }
.tv-article-body img { border-radius: 8px; height: auto; }
.tv-article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tv-accent); color: var(--tv-text-2); font-style: italic; }
.tv-article-body figure { margin: 1.4em 0; }
.tv-article-body figcaption { color: var(--tv-muted); font-size: 14px; margin-top: 6px; }
.tv-article-body ul, .tv-article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.tv-article-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.tv-article-body th, .tv-article-body td { border: 1px solid var(--tv-line-2); padding: 8px 10px; text-align: left; }
.tv-article-footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--tv-line); margin-top: 32px; padding-top: 18px; }
.tv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-tags a { color: var(--tv-accent-text); font-weight: 500; }
.tv-share { display: flex; gap: 8px; align-items: center; color: var(--tv-muted); }
.tv-share a { width: 44px; height: 44px; border-radius: 50%; background: var(--tv-surface); border: 1px solid var(--tv-line-2); display: flex; align-items: center; justify-content: center; }
.tv-page h1 { margin-bottom: 20px; }
.tv-error { text-align: center; padding: 48px 0; }
.tv-error .tv-btn { margin: 6px; }

/* Odtwarzacz */
.tv-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--tv-radius); overflow: hidden; margin: 0 0 26px; }
.tv-player video, .tv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-player-start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tv-player-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-player-start .tv-play { position: relative; width: 84px; height: 84px; font-size: 32px; background: rgba(12,14,19,.75); }
.tv-player-start:hover .tv-play { background: var(--tv-accent); color: #0C0E13; }
.tv-offair { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tv-radius); overflow: hidden; background: var(--tv-surface); display: flex; align-items: flex-end; margin-bottom: 26px; }
.tv-offair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.tv-offair-text { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 6px; color: var(--tv-text-2); }
.tv-offair-text strong { font-family: var(--tv-cond); font-size: 30px; color: var(--tv-text); }

/* Galeria i podgląd zdjęć */
.tv-gallery { margin-top: 28px; }
.tv-gallery-title { font-size: 26px; text-transform: uppercase; margin-bottom: 14px; }
.tv-gallery-title small { font-family: var(--tv-sans); font-size: 15px; color: var(--tv-muted); text-transform: none; font-weight: 400; }
.tv-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tv-gallery-item { display: block; border-radius: 6px; overflow: hidden; }
.tv-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.tv-gallery-item:hover img { transform: scale(1.04); }
.tv-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,5,7,.96); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.tv-lightbox[hidden] { display: none; }
.tv-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.tv-lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--tv-line-2); background: rgba(22,26,34,.9); color: var(--tv-text); font-size: 20px; cursor: pointer; }
.tv-lb-close { top: 12px; right: 12px; }
.tv-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.tv-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.tv-lb-info { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--tv-muted); font-size: 15px; }

/* Formularze (wtyczka Form) */
.tv-article-body form { display: flex; flex-direction: column; gap: 14px; }
.tv-article-body input[type=text], .tv-article-body input[type=email], .tv-article-body input[type=tel], .tv-article-body textarea, .tv-article-body select { width: 100%; background: var(--tv-surface); color: var(--tv-text); border: 1px solid var(--tv-line-2); border-radius: 8px; padding: 12px 14px; font: inherit; }
.tv-article-body button, .tv-article-body input[type=submit] { align-self: flex-start; background: var(--tv-accent); color: #0C0E13; border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; }

/* Stopka */
.tv-footer { margin-top: 72px; background: var(--tv-bg-deep); border-top: 1px solid var(--tv-line); color: var(--tv-muted); font-size: 15px; }
.tv-footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 36px; padding-bottom: 28px; }
.tv-footer-logo img { width: 220px; height: auto; }
.tv-footer-col { display: flex; flex-direction: column; gap: 6px; }
.tv-footer-col strong { color: var(--tv-text); }
.tv-footer-col a { color: var(--tv-text-2); }
.tv-footer-copy { border-top: 1px solid var(--tv-line); padding-top: 14px; padding-bottom: 18px; font-size: 13px; }

@media (max-width: 600px) {
    body.tv-body { font-size: 16px; }
    .tv-wrap { padding: 0 16px; }
    .tv-lead-text { position: static; padding: 16px 18px 20px; background: var(--tv-surface); }
    .tv-lead-play { width: 52px; height: 52px; top: 14px; left: 14px; font-size: 20px; }
    .tv-panel { padding: 18px 16px; }
    .tv-grid { grid-template-columns: 1fr; }
    .tv-lightbox { padding: 56px 8px; }
    .tv-lb-prev, .tv-lb-next { top: auto; bottom: 8px; transform: none; }
}
