/* === XXX Filmek - Modern reszponzív stíluslap === */
:root {
    --bg: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --text: #ccc;
    --text-heading: #fff;
    --accent: #e91e63;
    --accent-hover: #ff4081;
    --link: #64b5f6;
    --border: #333;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,.3);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #90caf9; }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 12px;
}

/* === HEADER / NAVBAR === */
.site-header {
    background: #111;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-size: .9rem;
    border-radius: 8px;
    transition: background .15s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* === HERO / CÍM === */
.hero {
    padding: 8px 0;
}

@media (max-width: 599px) {
    .hero { padding: 4px 0; }
}

.hero h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
}

.hero h1 span { color: var(--accent); }

/* === VIDEÓ GRID === */
.video-grid {
    padding: 0 0 24px;
}

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

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--bg-card-hover);
}

.video-card a {
    display: block;
    color: inherit;
}

.video-card .thumb {
    position: relative;
    aspect-ratio: 392/220;
    overflow: hidden;
    background: #222;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.video-card:hover .thumb img {
    transform: scale(1.05);
}

.video-card .title {
    margin: 0;
    padding: 8px 12px 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.3;
    height: calc(1.3em * 2 + 16px);
    overflow: hidden;
}

@media (max-width: 599px) {
    .video-card .title {
        font-size: .8rem;
        padding: 6px 10px 3px;
        height: calc(1.3em * 2 + 8px);
    }
}

/* === LAPOZÓ === */
.pagination {
    padding: 8px 0 32px;
    text-align: center;
}

.pagination .contents {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    transition: background .15s;
}

.pagination a:hover {
    background: var(--bg-card-hover);
    color: #fff;
}

.pagination span {
    background: var(--accent);
    color: #fff;
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: .8rem;
    color: #666;
}

.site-footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 12px;
    list-style: none;
}

.site-footer .links a {
    color: #888;
    font-size: .8rem;
}

.site-footer .links a:hover { color: var(--link); }

.site-footer .copyright { color: #555; }

/* === RESZPONZÍV === */
@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .container { padding: 0 16px; }
}

@media (min-width: 900px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .hero h1 { font-size: 1.5rem; }
    .video-card .title { font-size: .9rem; padding: 12px 14px 14px; }
}

@media (min-width: 1200px) {
    .grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .container { padding: 0 24px; }
}

@media (min-width: 1600px) {
    .grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
}

/* === VIDEÓ LEJÁTSZÓ === */
.player-layout {
    padding: 8px 0;
}

.player-layout-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.player-main {
    flex: 1;
    min-width: 0;
}

.player-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.player-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-info {
    padding: 16px 0;
}

.player-info h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 8px;
    line-height: 1.3;
}

.player-info .descr {
    font-size: .9rem;
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.5;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--text);
}

.player-meta li label {
    color: #888;
    margin-right: 4px;
}

.player-meta li b { color: var(--text-heading); }

.ad-block {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-block-mobile {
    margin-bottom: 12px;
    text-align: center;
    min-height: 100px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-section {
    padding: 8px 0 24px;
}

.related-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 16px;
}

@media (max-width: 899px) {
    .player-layout-inner {
        flex-direction: column;
    }
    .player-sidebar {
        width: 100%;
    }
    .player-info h1 { font-size: 1.05rem; }
}

/* === MOBIL MENU === */
@media (max-width: 767px) {
    .menu-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #111;
        flex-direction: column;
        padding: 8px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.open { display: flex; }

    .nav-menu a {
        padding: 12px 16px;
        border-radius: 8px;
    }
}
