/* ═══════════════════════════════════════════════
   My TV Guide — Bold Redesign v2
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f0f0f0;
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --text: #000000;
    --text-2: #333333;
    --text-3: #666666;
    --text-inv: #ffffff;
    --border: #d4d4d4;
    --border-light: #e8e8e8;
    --accent: #000000;
    --accent-hover: #222222;
    --live: #dc2626;
    --success: #16a34a;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,.1);
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
.hidden { display: none !important; }

/* ═══ HEADER ═══ */
.site-header {
    background: var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-inv);
    flex-shrink: 0;
    letter-spacing: -.01em;
}

.site-logo svg { opacity: .7; }

.site-nav {
    display: flex;
    gap: 1px;
    margin-left: auto;
}

.site-nav a {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    transition: all .15s;
}

.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.active { color: #fff; background: rgba(255,255,255,.1); font-weight: 600; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: #fff;
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--accent);
    margin-top: 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 48px 0 36px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
    font-size: 12.5px;
    color: rgba(255,255,255,.4);
    margin-top: 12px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-logo { margin-bottom: 8px; }
.footer-logo .site-logo { font-size: 14px; }

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    padding: 4px 0;
    transition: color .15s;
}

.footer-col a:hover { color: #fff; }

.footer-newsletter h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}

.footer-newsletter .newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.footer-newsletter .newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.15);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 12.5px;
    min-height: 40px;
    background: rgba(255,255,255,.06);
    color: #fff;
    outline: none;
}

.footer-newsletter .newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.3); }
.footer-newsletter .newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,.3); }

.footer-newsletter .newsletter-form button {
    padding: 10px 18px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12px;
    font-weight: 600;
    min-height: 40px;
    transition: background .15s;
    white-space: nowrap;
}

.footer-newsletter .newsletter-form button:hover { background: rgba(255,255,255,.2); }

.footer-bottom {
    padding: 20px 0;
    font-size: 11.5px;
    color: rgba(255,255,255,.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-newsletter {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    text-align: left;
}

/* ═══ HERO ═══ */
.hero {
    background: var(--accent);
    padding: 64px 28px 56px;
    text-align: center;
    color: var(--text-inv);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,.1);
    margin-bottom: 24px;
}

.hero-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    display: inline-block;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.hero h1 em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(255,255,255,.25);
}

.hero > p {
    font-size: 14px;
    color: rgba(255,255,255,.45);
    margin: 0 auto 32px;
    max-width: 440px;
    line-height: 1.7;
}

/* ═══ SEARCH ═══ */
.search-wrap {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, background .2s;
}

.search-wrap:focus-within {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
}

.search-icon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: rgba(255,255,255,.35);
    pointer-events: none;
    flex-shrink: 0;
}

.search-wrap input {
    flex: 1;
    min-width: 0;
    padding: 15px 0;
    font-size: 14px;
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
    font-family: inherit;
}

.search-wrap input::placeholder { color: rgba(255,255,255,.3); }

.search-wrap button {
    flex-shrink: 0;
    background: #fff;
    color: var(--accent);
    border: none;
    padding: 0 24px;
    min-height: 48px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: opacity .15s;
}

.search-wrap button:hover { opacity: .85; }

/* ═══ CATEGORY PILLS ═══ */
.category-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 28px;
}

.cat-pill {
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: rgba(255,255,255,.4);
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
}

.cat-pill:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

.cat-pill.active {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
    font-weight: 600;
}

/* ═══ LOADER ═══ */
.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 0;
}

.loader {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
    margin-top: 14px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-3);
}

/* ═══ CHANNEL PAGE ═══ */
.channel-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}

.channel-main { min-width: 0; overflow: hidden; }

.channel-header h1 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 10px;
    line-height: 1.15;
}

.channel-header h1 span {
    font-weight: 400;
    color: var(--text-3);
    font-size: .8em;
}

.channel-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.badge-cat { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); }
.badge-country { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 20px;
    font-size: 12px;
    color: var(--text-3);
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .active { color: var(--text); font-weight: 500; }

/* ── Date Nav ── */
.date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.date-nav .nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-3);
    flex-shrink: 0;
    transition: all .15s;
}

.date-nav .nav-pill:hover { background: var(--bg); color: var(--text); }

.pills-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    flex: 1;
}

.pills-scroll::-webkit-scrollbar { display: none; }

.date-pill {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    background: transparent;
    color: var(--text-3);
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all .15s;
    flex-shrink: 0;
    min-height: 38px;
}

.date-pill:hover { background: var(--bg); color: var(--text); }

.date-pill.active {
    background: var(--accent);
    color: var(--text-inv);
    border-color: var(--accent);
    font-weight: 600;
}

/* ── Schedule Header ── */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-title { font-size: 14px; font-weight: 700; }

.tz-container { display: flex; align-items: center; gap: 8px; }
.tz-label { font-size: 11px; color: var(--text-3); font-weight: 500; }

.tz-select {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 12px;
    font-family: inherit;
    background: var(--surface);
}

/* ═══ TIMELINE ═══ */
.timeline {
    position: relative;
    padding-left: 18px;
}

.timeline-line {
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.program-item {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    animation: fadeInUp .35s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.program-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    position: relative;
    z-index: 1;
}

.program-time {
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.program-icon-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon-ring.live      { background: #fef2f2; color: var(--live); }
.program-icon-ring.past      { background: var(--bg); color: var(--text-3); }
.program-icon-ring.upcoming  { background: var(--bg); color: var(--text-2); }

.program-card {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow .2s, transform .15s;
    overflow: hidden;
}

.program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-live {
    background: var(--surface);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.card-past {
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    opacity: .6;
}

.card-upcoming {
    background: var(--surface);
    border: 1px solid var(--border);
}

.program-card .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.program-card .duration,
.program-card .time-range {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-3);
    letter-spacing: .03em;
}

.program-card h2 {
    font-size: clamp(.85rem, 2.5vw, 1rem);
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

.program-card .prog-desc {
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-3);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card .badges { display: flex; gap: 5px; flex-wrap: wrap; }

.program-card .ch-badge {
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
}

.ch-badge-light { background: var(--bg); color: var(--text-3); }
.ch-badge-dark  { background: var(--accent); color: var(--text-inv); }
.ch-badge-muted { background: var(--bg); color: var(--text-3); }

/* ── Progress Bar ── */
.progress-bar-bg {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 30s linear;
}

/* ── Live Badge ── */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--live);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

/* ═══ SEO BOX & FAQ ═══ */
.seo-box {
    margin: 28px 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-2);
}

.seo-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.seo-box h3 { font-size: .9rem; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.seo-box strong { color: var(--text); }

.faq-wrap {
    margin: 28px 0 0;
}

.faq-wrap h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: var(--surface);
    transition: background .15s;
    user-select: none;
    gap: 12px;
}

.faq-q:hover { background: var(--surface-alt); }

.faq-icon {
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform .2s;
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-a-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.active .faq-a-wrap { max-height: 300px; }

.faq-a {
    padding: 2px 18px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
}

/* ═══ SIDEBAR ═══ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    overflow: hidden;
}

.sidebar-widget .wtl-ad-sidebar { margin: 0 auto; padding: 0; }

.sidebar-widget h2 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget .desc {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.channel-item {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: all .12s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-item:hover { background: var(--border-light); }
.channel-item.active { background: var(--accent); color: var(--text-inv); font-weight: 600; }

/* ═══ NEWSLETTER ═══ */
.newsletter-card {
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
}

.newsletter-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.newsletter-card .subtitle { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
}

.newsletter-form input[type="email"]:focus { border-color: var(--accent); }

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: var(--text-inv);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: opacity .15s;
}

.newsletter-form button:hover { opacity: .85; }

.newsletter-response {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.bg-success { background: #f0fdf4; color: #166534; padding: 8px; }
.bg-error   { background: #fef2f2; color: #991b1b; padding: 8px; }

/* ═══ LIVE NOW — SIDEBAR ═══ */
.live-now-widget h2 { display: flex; align-items: center; gap: 8px; }

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.live-now-list { display: flex; flex-direction: column; gap: 4px; }

.live-now-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: background .12s;
}

.live-now-item:hover { background: var(--border-light); }

.live-now-ch { font-size: 12px; font-weight: 600; color: var(--text); }

.live-now-prog {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-now-item.no-listing .live-now-prog { color: var(--text-3); font-style: italic; }

/* ═══ LIVE NOW — HOME ═══ */
.live-now-section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 28px;
}

.live-now-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.live-now-header h2 { font-size: 1.1rem; font-weight: 700; }

.live-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.live-now-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .12s;
}

.live-now-card:hover {
    border-color: #bbb;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.live-now-card-ch { font-size: 13px; font-weight: 600; color: var(--text); }

.live-now-card-prog {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-now-card.no-listing .live-now-card-prog { color: var(--text-3); font-style: italic; }

.live-now-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.live-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--live);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.live-dot-sm {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .3; transform: scale(1.5); }
}

.live-now-card-btn {
    display: block;
    text-align: center;
    padding: 9px 12px;
    margin-top: 4px;
    background: var(--accent);
    color: var(--text-inv);
    font-size: 11.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: opacity .15s;
}

.live-now-card-btn:hover { opacity: .85; }

/* ═══ BROWSE CHANNELS — TABLE ═══ */
.browse-channels-section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 28px;
}

.browse-channels-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.browse-subtitle { color: var(--text-3); margin-bottom: 20px; font-size: 13px; }

.channel-browse-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.channel-browse-table thead {
    background: var(--accent);
}

.channel-browse-table th {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-inv);
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: left;
    white-space: nowrap;
}

.channel-browse-table td {
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.channel-browse-table tbody tr:last-child td { border-bottom: none; }

.channel-browse-table tbody tr:hover { background: var(--surface-alt); }

.channel-browse-table td a {
    font-weight: 600;
    color: var(--text);
    transition: opacity .12s;
}

.channel-browse-table td a:hover { opacity: .65; }

.channel-browse-table .td-cat {
    font-size: 11.5px;
    color: var(--text-3);
}

.channel-browse-table .td-country {
    font-size: 11.5px;
    color: var(--text-3);
}

.channel-browse-table .td-action {
    text-align: right;
}

.channel-browse-table .td-action .table-show-guide {
    display: inline-block;
    padding: 6px 16px;
    background: #000000;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-decoration: none !important;
    transition: opacity .15s;
}

.channel-browse-table .td-action .table-show-guide:hover { opacity: .75; color: #ffffff !important; }

.no-results {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-3);
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ═══ SEO CONTENT ═══ */
.seo-content-wrap {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 28px;
}

.seo-content-wrap h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -.02em; }

.seo-content-wrap h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.seo-content-wrap p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.seo-feature-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .12s;
}

.seo-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.seo-feature-icon { font-size: 1.8rem; margin-bottom: 12px; }

.seo-feature-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; }

.seo-feature-card p { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin: 0; }

.seo-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.seo-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .12s;
}

.seo-cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.seo-cat-icon { font-size: 1.8rem; flex-shrink: 0; }

.seo-cat-card strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.seo-cat-card p { font-size: 12px; color: var(--text-3); margin: 0; }

.seo-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.seo-benefit-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: box-shadow .2s, transform .12s;
}

.seo-benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.seo-benefit-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-inv);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.seo-benefit-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }

.seo-benefit-card p { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin: 0; }

.faq-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin-top: -12px;
    margin-bottom: 20px;
}

/* ═══ SEARCH PAGE ═══ */
.search-results-wrap { padding: 36px 28px 72px; }

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto 20px;
}

.search-results-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.search-results-count {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-3);
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}

.ad-native-wrap { max-width: 100%; margin: 20px auto; padding: 0 28px; text-align: center; }

.search-seo-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 56px 28px;
}

.search-seo-inner { max-width: 780px; margin: 0 auto; }

.search-seo-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -.02em; }
.search-seo-section h3 { font-size: 1.1rem; font-weight: 600; margin: 36px 0 14px; }
.search-seo-section p { font-size: 14px; line-height: 1.85; color: var(--text-2); margin-bottom: 14px; }

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px 48px;
}

.channel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.channel-card:hover {
    border-color: #bbb;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.channel-card-name { font-size: 13px; font-weight: 600; line-height: 1.3; }

.channel-card-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }

/* ═══ AD SLOTS ═══ */
.wtl-ad-leaderboard,
.wtl-ad-sidebar,
.wtl-ad-native,
.wtl-ad-skyscraper,
.wtl-ad-halfpage {
    text-align: center;
    margin: 16px auto;
    line-height: 0;
}

.wtl-ad-leaderboard { max-width: 728px; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.wtl-ad-sidebar     { max-width: 300px; min-height: 250px; }
.wtl-ad-native      { max-width: 100%; min-height: 90px; }
.wtl-ad-skyscraper  { max-width: 160px; min-height: 600px; }
.wtl-ad-halfpage    { max-width: 160px; min-height: 300px; }

.program-ad-slot {
    margin: 24px 0;
    padding: 18px 0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ═══ STATIC PAGES ═══ */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 28px 60px;
}

.static-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; line-height: 1.15; letter-spacing: -.02em; }
.static-page .static-updated { font-size: 12px; color: var(--text-3); margin-bottom: 32px; }
.static-page h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.static-page p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.static-page strong { color: var(--text); }

.contact-form { margin: 24px 0; }
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-submit {
    display: inline-block;
    padding: 11px 32px;
    background: var(--accent);
    color: var(--text-inv);
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity .2s;
}

.contact-submit:hover { opacity: .85; }

.contact-response {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.contact-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.contact-list { list-style: none; padding: 0; margin: 16px 0; }

.contact-list li {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
    border-bottom: 1px solid var(--border-light);
}

.contact-list li:last-child { border-bottom: none; }
.contact-list li strong { color: var(--text); }

/* ═══ 404 ═══ */
.error-page { text-align: center; padding: 96px 28px; }

.error-page h1 { font-size: 5rem; font-weight: 800; color: var(--border); margin-bottom: 8px; letter-spacing: -.04em; }
.error-page h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.error-page p { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }

.error-page a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--text-inv);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    transition: opacity .15s;
}

.error-page a:hover { opacity: .85; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .channel-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .seo-features-grid { grid-template-columns: 1fr; }
    .seo-benefits-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .header-inner { padding: 0 16px; height: 48px; gap: 8px; }
    .site-logo { font-size: 14px; gap: 7px; flex: 1; }

    .site-nav {
        display: none;
        position: fixed;
        top: 48px; left: 0; right: 0; bottom: 0;
        background: var(--accent);
        flex-direction: column;
        padding: 12px;
        z-index: 200;
        overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 16px; font-size: 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.6); }
    .site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
    .site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }

    .menu-toggle { display: flex; padding: 8px; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; order: 10; }

    .hero { padding: 40px 16px 36px; }
    .hero h1 { font-size: 1.5rem; }
    .hero > p { font-size: 13px; }

    .search-wrap { border-radius: var(--radius-sm); }
    .search-wrap input { padding: 14px 0 14px 14px; font-size: 14px; }
    .search-wrap button { padding: 0 20px; min-height: 46px; font-size: 11px; }

    .category-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; gap: 5px; }
    .category-bar::-webkit-scrollbar { display: none; }

    .channel-layout { padding: 16px; gap: 16px; }
    .channel-header h1 { font-size: 1.1rem; }
    .channel-header h1 span { display: block; font-size: .75em; margin-top: 4px; color: var(--text-3); font-weight: 400; }

    .breadcrumb { font-size: 11px; padding: 0 0 14px; gap: 4px; }
    .breadcrumb svg { width: 11px; height: 11px; }

    .schedule-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .tz-container { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
    .tz-select { flex: 1; max-width: none; width: 100%; }

    .timeline { padding-left: 12px; }
    .timeline-line { left: 3px; }
    .program-item { gap: 10px; margin-bottom: 10px; }
    .program-time-col { min-width: 38px; }
    .program-time { font-size: 10.5px; }
    .program-icon-ring { width: 22px; height: 22px; }
    .program-card { padding: 14px; border-radius: 6px; }
    .program-card h2 { font-size: .85rem; }
    .badge-live { padding: 3px 8px; font-size: 9px; }

    .sidebar { grid-template-columns: 1fr; }
    .channel-grid { grid-template-columns: 1fr; }

    .live-now-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .live-now-card { padding: 12px 14px; }
    .live-now-card-ch { font-size: 12px; }

    .browse-channels-section { padding: 0 16px; }
    .channel-browse-table { font-size: 12px; }
    .channel-browse-table th,
    .channel-browse-table td { padding: 9px 12px; }
    .channel-browse-table .th-country,
    .channel-browse-table .td-country { display: none; }

    .seo-content-wrap { padding: 0 16px; margin: 32px auto; }
    .seo-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .seo-categories-grid { grid-template-columns: 1fr; }
    .seo-benefits-grid { grid-template-columns: 1fr; }

    .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .channel-card { padding: 14px; min-height: 80px; }

    .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
    .footer-brand { text-align: center; }
    .footer-brand p { max-width: none; margin: 12px auto 0; }
    .footer-col { text-align: center; }
    .footer-newsletter .newsletter-form { max-width: 320px; margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .static-page { padding: 24px 16px 40px; }
    .static-page h1 { font-size: 1.4rem; }
}
