/* css/style.css */
:root {
    --tv-blue-logo: #154a7b;
    --tv-card-blue: #14497a;
    --tv-nav-blue: #104373;
    --tv-active-blue: #1e70bd;
    --tv-bg: #e9e9e9;
    --tv-yellow: #ffea00;
    --tv-footer-gray: #444444;
    --tv-btn-blue: #0d6efd;
    --carousel-blue: #0b4c82;
}

body { font-family: 'Roboto', sans-serif; background-color: var(--tv-bg); margin: 0; color: #333; overflow-x: hidden; }

/* FEJLÉC ÉS NAVIGÁCIÓ */
.navigation { background-color: #000; min-height: 70px; }
.logo-tv { background-color: var(--tv-blue-logo); color: #fff; font-weight: 900; font-style: italic; font-size: 2.2rem; padding: 5px 25px; height: 70px; display: flex; align-items: center; text-decoration: none; }
.logo-text { color: #fff; font-weight: 400; font-size: 1.8rem; margin-left: 15px; text-transform: uppercase; }
.navbar-toggler { border: none; box-shadow: none !important; }
.navbar-nav .nav-link { font-size: 0.9rem; letter-spacing: 0.5px; padding: 10px 0; }

/* DATE NAV BAR (Műsorújság/Csatorna) */
.date-nav-bar { background-color: var(--tv-nav-blue); padding: 10px 0; margin-bottom: 20px; position: sticky; top: 0; z-index: 1000; }
.date-nav-bar .nav-link { color: #fff; border-radius: 0; padding: 0 18px; font-weight: 500; border: none; font-size: 0.95rem; height: 55px; line-height: 55px; }
.date-nav-bar .nav-link.active { background-color: var(--tv-active-blue); }

.btn-filter-nav, .btn-nav-custom { color: #fff; font-weight: 700; text-transform: uppercase; border: none; background: transparent; height: 55px; padding: 0 20px; display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
@media (min-width: 768px) { .btn-filter-nav, .btn-nav-custom { width: auto; justify-content: flex-start; } }

.search-wrapper-nav { position: relative; width: 100%; }
.search-input-nav { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 4px; padding: 7px 15px; width: 100%; height: 45px; font-size: 0.9rem; }
#search-results { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid #ddd; display: none; margin-top: 5px; }
.search-result-item { padding: 10px 15px; border-bottom: 1px solid #eee; color: #333; display: flex; align-items: center; text-decoration: none; }
.search-result-item img { width: 50px; height: 30px; object-fit: cover; margin-right: 12px; }

.date-pager-container { display: flex; align-items: center; flex-wrap: nowrap; justify-content: center; width: 100%; }
.page-btn { background-color: var(--tv-nav-blue); color: #fff; border: none; width: 50px; height: 55px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.2s; border-left: 1px solid rgba(255,255,255,0.1); }
.page-date-box { background-color: var(--tv-nav-blue); color: #fff; height: 55px; display: flex; align-items: center; justify-content: center; font-weight: 700; min-width: 250px; flex-grow: 1; text-align: center; cursor: pointer; white-space: nowrap; padding: 0 10px; position: relative; }
@media (min-width: 768px) { .page-date-box { min-width: 300px; flex-grow: 0; } .date-pager-container { width: auto; } }

/* TARTALOM DOBOZOK */
.content-box { background: transparent; padding: 20px 0; }
.show-title { font-weight: 900; font-size: 2.2rem; text-transform: uppercase; margin-bottom: 25px; display: flex; align-items: center; }
.age-circle { background-color: var(--tv-yellow); color: #000; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; margin-left: 15px; }
.age-circle.small { width: 22px; height: 22px; font-size: 10px; margin-left: 5px; margin-top: 4px; vertical-align: middle; }

.info-table { width: 100%; background: #fff; margin-bottom: 30px; border-collapse: collapse; }
.info-table th { background: #333; color: #fff; padding: 10px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; text-align: center; border: 1px solid #444; }
.info-table td { padding: 15px; text-align: center; border: 1px solid #ddd; font-size: 0.95rem; background: #fff; }

.section-subtitle { font-weight: 900; text-transform: uppercase; margin: 30px 0 15px 0; font-size: 1.2rem; border-left: 5px solid var(--tv-blue-logo); padding-left: 15px; }
.description-text { line-height: 1.6; font-size: 1rem; color: #444; text-align: justify; margin-bottom: 20px; }
.full-content-text { line-height: 1.6; font-size: 1rem; color: #555; background: #f9f9f9; padding: 20px; border-radius: 4px; border-left: 3px solid #ccc; font-style: italic; }

.cast-list { font-size: 0.95rem; color: #555; margin-bottom: 20px; }
.cast-role { font-weight: 700; color: #000; min-width: 100px; display: inline-block; }

/* CAROUSEL */
.carousel-wrapper { background-color: #000; overflow: hidden; height: 500px; position: relative; }
.carousel-item { height: 500px; background-color: #000; }
.carousel-item img { height: 100%; width: auto; max-width: 100%; display: block; margin: 0 auto; object-fit: contain; }
.carousel-caption-new { position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: rgba(0, 0, 0, 0.65); color: #fff; padding: 20px 35px; text-align: left; z-index: 10; display: flex; flex-direction: column; justify-content: center; }
.carousel-caption-new h2 { font-weight: 900; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 5px; }
.carousel-caption-new p { font-size: 1rem; margin: 0; line-height: 1.4; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-time-box { position: absolute; left: 0; bottom: 150px; background-color: var(--carousel-blue); color: #fff; padding: 15px 30px; z-index: 20; min-width: 220px; box-shadow: 5px 0 15px rgba(0,0,0,0.3); text-decoration: none; display: block; text-align: center; }
.carousel-time-box:hover { background-color: #0e5ba0; color: #fff; }
.carousel-logo-img { max-width: 80px; max-height: 45px; object-fit: contain; }
.carousel-time-box .time { font-size: 3.8rem; font-weight: 900; line-height: 0.9; }
.carousel-time-box .day { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.carousel-control-prev, .carousel-control-next { width: 8%; z-index: 25; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 3rem; height: 3rem; }

/* SIDEBAR & LISTÁK */
.sidebar-title { color: var(--tv-blue-logo); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 25px; }
.sidebar-title-custom { color: var(--tv-blue-logo); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 25px; }
.next-show-box { text-align: center; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.next-time { font-size: 3.5rem; font-weight: 700; color: #b0b0b0; line-height: 1; }
.next-day { font-weight: 900; text-transform: uppercase; margin: 5px 0; display: block; color: #555; }
.sidebar-logo-img { max-height: 45px; max-width: 100px; object-fit: contain; margin-top: 10px; }

.future-item-link { display: block; border-bottom: 1px solid #ccc; padding: 12px 0; font-size: 0.85rem; text-decoration: none; color: #555; transition: 0.2s; }
.future-item-link:hover { background-color: #fff; padding-left: 5px; color: var(--tv-blue-logo); }
.future-item-link strong { display: block; color: #000; margin-bottom: 2px; font-size: 0.95rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.gallery-img { width: 100%; height: 110px; object-fit: cover; border-radius: 2px; border: 1px solid #ddd; }

.sidebar-item { display: flex; padding: 18px 0; border-bottom: 1px solid #ccc; align-items: flex-start; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-left-col { flex: 0 0 100px; text-align: center; display: flex; flex-direction: column; align-items: center; margin-right: 15px; }
.sidebar-left-link { text-decoration: none; display: flex; flex-direction: column; align-items: center; width: 100%; }
.sidebar-left-link:hover .sidebar-time-val { color: var(--tv-blue-logo); }
.sidebar-time-val { font-size: 2.2rem; font-weight: 700; color: #b0b0b0; line-height: 1; transition: color 0.2s; }
.sidebar-logo-container { width: 100%; height: 35px; display: flex; align-items: center; justify-content: center; margin-top: 5px; }
.sidebar-info { flex: 1; min-width: 0; }
.sidebar-info h6 { font-weight: 900; font-size: 1rem; text-transform: uppercase; margin-bottom: 0px; color: #000; line-height: 1.2; }
.sidebar-desc-text { font-size: 0.8rem; color: #888; line-height: 1.4; margin-top: 8px; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* KEZDŐLAP KÁRTYÁK */
.section-title { font-weight: 900; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 25px; }
.show-card { border: none; overflow: hidden; height: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; flex-direction: column; background-color: var(--tv-card-blue); }
.show-img-box { position: relative; height: 180px; background: #000; }
.show-img-box img { width: 100%; height: 100%; object-fit: cover; }
.card-time-overlay { position: absolute; bottom: 10px; left: 15px; color: white; text-shadow: 2px 2px 4px #000; display: flex; align-items: center; z-index: 5; }
.card-time-link { text-decoration: none; color: white; display: flex; align-items: center; }
.card-time-link:hover { opacity: 0.9; }
.card-logo-sm { max-height: 30px; max-width: 60px; object-fit: contain; margin-right: 10px; }
.card-content { color: white; padding: 15px; flex-grow: 1; }
.card-content h5 { font-weight: 900; text-transform: uppercase; font-size: 1rem; margin-bottom: 8px; height: 2.4rem; overflow: hidden; }

/* GUIDE GRID & FILTER */
.filter-collapse { background: #fff; border-bottom: 2px solid var(--tv-nav-blue); padding: 25px 0; display: none; }
.channel-filter-item, .channel-select-item { background: #f8f9fa; border: 1px solid #ddd; padding: 8px; margin-bottom: 10px; display: flex; align-items: center; cursor: pointer; border-radius: 4px; height: 50px; text-decoration: none; color: #333; }
.filter-logo-box { width: 65px; height: 35px; display: flex; align-items: center; justify-content: center; background: #fff; margin-right: 12px; flex-shrink: 0; }
.filter-logo-img { max-height: 100%; max-width: 100%; object-fit: contain; }

.guide-wrapper { position: relative; width: 100%; padding: 0 10px; }
.guide-container { display: flex; overflow-x: auto; gap: 20px; padding: 10px 0 30px 0; scrollbar-width: none; }
.guide-container::-webkit-scrollbar { display: none; }
.scroll-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background-color: var(--tv-header-blue); color: #fff; border: none; border-radius: 50%; z-index: 500; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.8; }
.scroll-nav-btn.left { left: 10px; } .scroll-nav-btn.right { right: 10px; }

.channel-column, .day-column { flex: 0 0 320px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.channel-header { background: #fff; padding: 20px; text-align: center; border-bottom: 2px solid var(--tv-bg); height: 100px; display: flex; align-items: center; justify-content: center; }
.channel-logo { max-height: 50px; max-width: 140px; object-fit: contain; }
.program-item { display: flex; padding: 15px; border-bottom: 1px solid #eee; text-decoration: none !important; color: inherit !important; transition: 0.2s; flex-wrap: wrap; }
.program-item:hover { background-color: #f8f9fa; }
.program-time { font-size: 1.8rem; font-weight: 700; color: #b0b0b0; line-height: 1; flex: 0 0 85px; }
.program-right { flex: 1; min-width: 0; margin-left: 10px; }
.program-title { font-weight: 900; font-size: 0.9rem; text-transform: uppercase; color: #000; margin-bottom: 3px; display: block; }
.program-img-mini { width: 100%; margin-top: 10px; border-radius: 4px; height: 140px; object-fit: cover; border: 1px solid #eee; }

/* CSATORNA OLDAL SPECIFIKUS */
.channel-header-bar { background: #fff; padding: 20px 0; border-bottom: 1px solid #ddd; margin-bottom: 25px; }
.big-logo { max-height: 60px; max-width: 150px; object-fit: contain; }
.ch-title { font-weight: 900; font-size: 2.2rem; text-transform: uppercase; margin-left: 20px; color: var(--tv-header-blue); }
.day-header { background: #333; color: #fff; padding: 15px; text-align: center; font-weight: 900; text-transform: uppercase; font-size: 1rem; }
.day-header.today { background-color: var(--tv-active-blue); }
.guide-grid { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px; }

/* FOOTER & MODAL */
.footer-top { background-color: var(--tv-footer-gray); padding: 30px 0; color: #fff; }
.footer-logo-blue-box { background-color: var(--tv-blue-logo); color: #fff; font-weight: 900; font-style: italic; font-size: 2.2rem; padding: 5px 20px; display: inline-block; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav .nav-link { color: #fff !important; font-weight: 900; text-transform: uppercase; font-size: 1rem; padding: 0; }
.footer-bottom-black { background-color: #000000; padding: 30px 0; color: #fff; font-size: 0.95rem; text-align: center; }

.modal-content { border-radius: 8px; border: none; }
.modal-body { padding: 40px 30px; }
.modal-title-custom { font-weight: 800; text-transform: uppercase; color: #333; text-align: center; margin-bottom: 30px; font-size: 2rem; }
.form-control-lg-custom { height: 50px; font-size: 1rem; border: 1px solid #ced4da; border-radius: 5px; }
.btn-blue-custom { background-color: #0d6efd; color: #fff; font-weight: 700; height: 50px; border-radius: 5px; text-transform: uppercase; width: 100%; border: none; font-size: 1.1rem; }
.btn-blue-custom:hover { background-color: #0b5ed7; color: #fff; }
.btn-gray-custom { background-color: #6c757d; color: #fff; font-weight: 700; height: 50px; border-radius: 5px; width: 100%; border: none; font-size: 1rem; }
.btn-gray-custom:hover { background-color: #5c636a; color: #fff; }

.flatpickr-calendar { z-index: 10001 !important; }

/* ÉRTÉKELÉS ÉS KOMMENTEK */
.star-rating i { transition: color 0.2s; }
.text-warning { color: #ffc107 !important; } /* Bootstrap sárga */
.text-secondary { color: #6c757d !important; }

.comment-list .border-bottom:last-child { border-bottom: none !important; }
.comment-list strong { font-size: 0.95rem; }
.comment-list small { font-size: 0.85rem; }