body {
    margin: 0;
    background: #141414;
    color: white;
    font-family: Arial, sans-serif;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.logo span {
    color: red;
}

.navbar input {
    padding: 8px;
    border-radius: 4px;
    border: none;
}

/* HERO */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
}

.hero h1 {
    font-size: 40px;
    max-width: 600px;
}

.hero a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* KÉP */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* MOZGÁS */
    animation: zoomHero 20s ease-in-out infinite alternate;
}

/* CINEMATIC FADE */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        to top,
        #141414 10%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.2) 70%,
        transparent 100%
    );
}

/* CONTENT */
.hero-content {
    position: absolute;
    bottom: 80px;
    left: 50px;
    max-width: 600px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
}

/* PLAY BUTTON */
.hero a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;

    transition: all 0.3s;
}

.hero a:hover {
    background: #ff1a1a;
    transform: scale(1.05);
}

/* ANIMÁCIÓ */
@keyframes zoomHero {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* ROWS */
.row {
    margin-left: 20px;
}

.row h2 {
    margin-left: 10px;
}

.row-posters {
    display: flex;
    overflow-x: scroll;
    padding: 10px;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

/* POSTER */
.poster {
    position: relative;
    min-width: 260px;
    max-width: 260px;
    margin-right: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex: 0 0 auto;
}

.poster:hover {
    transform: scale(1.08);
    z-index: 5;
}

.poster-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #0f0f0f;
}

.poster-media img,
.poster-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-info {
    padding: 8px 2px 0 2px;
}

.poster-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    max-height: 36px;
    overflow: hidden;
}

.poster-meta {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #b3b3b3;
}

/* INFO */
.poster-info {
    position: absolute;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    width: 100%;
    font-size: 12px;
}

.player-page {
    padding-top: 90px;
    min-height: 100vh;
    background: #141414;
    color: #fff;
}

.player-shell {
    width: min(1400px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.player-stage {
    background: #0d0d0d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.main-player-video,
.main-player-poster {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.main-player-poster-wrap,
.main-player-empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
}

.player-details {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.player-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 14px;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.player-meta span {
    background: #2a2a2a;
    color: #d8d8d8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.watch-source-btn,
.back-btn {
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.watch-source-btn {
    background: #e50914;
    color: #fff;
}

.back-btn {
    background: #2a2a2a;
    color: #fff;
}

.watch-source-btn:hover,
.back-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.player-description-box {
    background: #202020;
    border-radius: 12px;
    padding: 18px;
}

.player-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.player-description {
    margin: 0 0 14px 0;
    color: #cfcfcf;
    line-height: 1.6;
}

.player-channel {
    color: #cfcfcf;
}

.player-channel a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.player-error {
    width: min(900px, 92%);
    margin: 120px auto 0 auto;
    padding: 24px;
    background: #1f1f1f;
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

@media (max-width: 980px) {
    .player-shell {
        grid-template-columns: 1fr;
    }

    .player-title {
        font-size: 22px;
    }
}

.player-related-wrap {
    width: min(1400px, 92%);
    margin: 28px auto 60px auto;
}

.player-related-wrap .row {
    margin-left: 0;
}

.player-related-wrap .row h2 {
    margin-left: 0;
    margin-bottom: 10px;
    font-size: 24px;
}