/*
Theme Name: Youth Television News & Live TV Portal
Theme URI: https://youthtelevision.tv
Author: Youth Television Digital Team
Description: Customizable WordPress Theme for Youth Television with 12-item header menu, compact live/featured video player on homepage, 25 news categories (auto-matching by slug or Bangla name), 8 customizable banner ad slots, editable featured/hero strip, custom header & footer logos, office contact info, and Google Play Store app download section.
Version: 1.0.1
Text Domain: youth-television
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --ytv-primary: #c8102e;
    --ytv-navy: #0f172a;
    --ytv-blue: #1e3a8a;
    --ytv-gold: #eab308;
    --ytv-bg: #f1f5f9;
    --ytv-card: #ffffff;
    --ytv-text: #0f172a;
    --ytv-muted: #475569;
    --ytv-border: #cbd5e1;
}

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

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--ytv-bg);
    color: var(--ytv-text);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--ytv-primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.ytv-topbar {
    background: var(--ytv-navy);
    color: #f8fafc;
    font-size: 13.5px;
    padding: 7px 0;
    border-bottom: 2px solid var(--ytv-primary);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.live-pill {
    background: var(--ytv-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ytv-header {
    background: var(--ytv-card);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ytv-header-main {
    padding: 12px 0;
}

.ytv-logo img {
    max-height: 70px;
    width: auto;
}

.ytv-brand-title {
    font-size: 29px;
    font-weight: 700;
    color: var(--ytv-primary);
    line-height: 1.15;
}

.ytv-brand-sub {
    display: block;
    font-size: 12.5px;
    color: var(--ytv-muted);
    font-weight: 600;
}

.ytv-nav-wrap {
    background: var(--ytv-navy);
    color: #fff;
}

.ytv-nav-wrap ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.ytv-nav-wrap ul li a {
    display: block;
    padding: 10px 11px;
    color: #f8fafc;
    font-size: 14.5px;
    font-weight: 600;
}

.ytv-nav-wrap ul li a:hover {
    background: var(--ytv-primary);
    color: #fff;
}

.ytv-top-showcase {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    margin: 18px 0;
    align-items: stretch;
}

.ytv-featured-card {
    background: #fff;
    border-left: 5px solid var(--ytv-primary);
    border-top: 1px solid var(--ytv-border);
    border-right: 1px solid var(--ytv-border);
    border-bottom: 1px solid var(--ytv-border);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ytv-featured-card h1 {
    font-size: 26px;
    line-height: 1.35;
    color: var(--ytv-navy);
    margin: 8px 0 10px;
}

.ytv-featured-card p {
    font-size: 15px;
    color: var(--ytv-muted);
}

.ytv-mini-player-box {
    background: var(--ytv-navy);
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #1e293b;
}

.ytv-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.ytv-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #020617;
    border-radius: 6px;
    overflow: hidden;
}

.ytv-video-frame-wrap iframe,
.ytv-video-frame-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ytv-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    color: #cbd5e1;
    font-size: 13px;
}

.ytv-ad-slot {
    margin: 22px 0;
    text-align: center;
    background: #e2e8f0;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    padding: 10px;
}

.ytv-ad-slot img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.ytv-ad-label {
    font-size: 11px;
    color: var(--ytv-muted);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ytv-cat-section {
    background: var(--ytv-card);
    border: 1px solid var(--ytv-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.ytv-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ytv-bg);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.ytv-cat-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ytv-navy);
    padding-left: 12px;
    border-left: 4px solid var(--ytv-primary);
}

.ytv-more-btn {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ytv-primary);
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 4px;
}

.ytv-more-btn:hover {
    background: var(--ytv-primary);
    color: #fff;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.ytv-post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ytv-post-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.ytv-no-thumb {
    height: 140px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    text-align: center;
}

.ytv-post-body {
    padding: 13px;
    flex: 1;
}

.ytv-post-card h3 {
    font-size: 16.5px;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 700;
}

.ytv-post-card p {
    font-size: 13.5px;
    color: var(--ytv-muted);
    margin-bottom: 8px;
}

.ytv-post-meta {
    font-size: 12px;
    color: #64748b;
}

.ytv-empty-box {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--ytv-muted);
    text-align: center;
}

.ytv-single-box {
    background: #fff;
    border: 1px solid var(--ytv-border);
    border-radius: 8px;
    padding: 28px;
    margin: 24px 0;
}

.ytv-footer {
    background: var(--ytv-navy);
    color: #cbd5e1;
    padding: 46px 0 20px;
    margin-top: 35px;
    border-top: 4px solid var(--ytv-primary);
}

.ytv-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 1fr;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b;
}

.ytv-footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 6px;
}

.ytv-contact-list {
    list-style: none;
    font-size: 14.5px;
}

.ytv-contact-list li {
    margin-bottom: 8px;
}

.ytv-playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    color: #fff;
    border: 1px solid #475569;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
}

.ytv-playstore-btn:hover {
    background: var(--ytv-primary);
    color: #fff;
    border-color: var(--ytv-primary);
}

.ytv-footer-menu {
    padding: 16px 0;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}

.ytv-footer-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.ytv-footer-menu ul li a:hover {
    color: #fde047;
}

.ytv-copyright {
    text-align: center;
    padding-top: 16px;
    font-size: 13.5px;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .ytv-top-showcase {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3, .ytv-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
}
