/* ==========================================================================
   netflix.css - Tema 6: Netflix Cinema
   Cinematic dark, iconic red accent, wide banner, horizontal card rows
   ========================================================================== */

.tpl-netflix {
    --nf-bg: #141414;
    --nf-card: #1f1f1f;
    --nf-card-hover: #2b2b2b;
    --nf-red: var(--accent, #e50914);
    --nf-text: #ffffff;
    --nf-sub: #a3a3a3;
    background: var(--nf-bg);
    color: var(--nf-text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tpl-netflix .nf-shell { width: min(1280px, 100% - 3rem); margin-inline: auto; }
.tpl-netflix .nf-article-shell { max-width: 860px; }

/* ------------------------------------------------------------- header ---- */
.nf-header {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    position: sticky; top: 0; z-index: 50;
    transition: background .3s;
}
.nf-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: 68px; flex-wrap: wrap;
}
.nf-brand { display: flex; align-items: center; text-decoration: none; color: var(--nf-red); }
.nf-brand__text { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; color: var(--nf-red); }

.nf-header__right { display: flex; align-items: center; gap: .75rem; }

.nf-nav { display: flex; gap: 1.25rem; font-size: .85rem; font-weight: 500; }
.nf-nav a { color: #e5e5e5; text-decoration: none; transition: color .15s; }
.nf-nav a:hover { color: #b3b3b3; }

.nf-search { display: flex; align-items: center; }
.nf-search input {
    background: rgba(0,0,0,.75); border: 1px solid rgba(255,255,255,.3);
    padding: .45rem .85rem; color: #fff; font-size: .85rem; width: 170px;
}
.nf-search input:focus { border-color: #fff; outline: none; }
.nf-search button {
    background: var(--nf-red); border: 0; color: #fff;
    padding: .45rem .75rem; font-size: .8rem; font-weight: 700; cursor: pointer;
}

@media (min-width: 901px) {
    .nf-collapse {
        order: 2;
        margin-left: 1.5rem;
        flex: 1;
        justify-content: space-between;
    }
    .nf-header__right {
        order: 3;
    }
}

@media (max-width: 900px) {
    .nf-header__right { order: 2; }
    .nf-collapse { order: 3; }
    .nf-search input { width: 100%; }
}

/* --------------------------------------------------------------- hero ---- */
.nf-hero {
    position: relative;
    min-height: clamp(480px, 70vh, 750px);
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
}
.nf-badge {
    display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .15em;
    color: var(--nf-red); margin-bottom: .8rem;
}
.nf-hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; margin: 0 0 .8rem; max-width: 18ch; line-height: 1.08; }
.nf-hero__lead { font-size: 1.15rem; color: #e5e5e5; max-width: 55ch; margin: 0 0 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.nf-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.nf-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .65rem 1.6rem; border-radius: 4px; font-size: .95rem; font-weight: 700;
    text-decoration: none; border: 0; cursor: pointer;
}
.nf-btn--white { background: #ffffff; color: #000000; }
.nf-btn--white:hover { background: rgba(255,255,255,.75); }
.nf-btn--gray { background: rgba(109, 109, 110, .7); color: #ffffff; }
.nf-btn--gray:hover { background: rgba(109, 109, 110, .4); }
.nf-btn--red { background: var(--nf-red); color: #fff; }

/* ------------------------------------------------------------ section ---- */
.nf-section { padding: 1.5rem 0; }
.nf-row-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; color: #e5e5e5; }

/* ---------------------------------------------------------- carousel ----- */
.nf-carousel {
    display: flex; gap: .75rem; overflow-x: auto; padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}
.nf-card {
    flex: 0 0 260px; scroll-snap-align: start;
    background: var(--nf-card); border-radius: 6px; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nf-card:hover { transform: scale(1.04); z-index: 10; box-shadow: 0 12px 24px rgba(0,0,0,.7); }
.nf-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #2f2f2f; }
.nf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nf-card__rank {
    position: absolute; bottom: -5px; left: 4px; font-size: 4rem; font-weight: 900;
    line-height: 1; color: #000; -webkit-text-stroke: 2px #595959; text-shadow: 0 4px 8px rgba(0,0,0,.8);
}
.nf-card__body { padding: .75rem; }
.nf-card__body h3, .nf-card__body h2 { font-size: .95rem; margin: 0 0 .25rem; font-weight: 700; }
.nf-card__body a { color: #fff; text-decoration: none; }
.nf-card__meta { font-size: .78rem; color: #46d369; margin: 0; font-weight: 700; }
.nf-card__excerpt { font-size: .8rem; color: var(--nf-sub); margin: .35rem 0 0; }
.nf-card--dir { flex: 0 0 280px; }
.nf-match { display: inline-block; font-size: .75rem; color: #46d369; font-weight: 800; margin-bottom: .3rem; }

/* -------------------------------------------------------- categories ----- */
.nf-cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.nf-cat-card {
    background: #242424; border-radius: 6px; padding: 1.25rem;
    color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 100px; border-left: 4px solid var(--nf-red); transition: background .2s;
}
.nf-cat-card:hover { background: #333333; }
.nf-cat-card h3, .nf-cat-card h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.nf-cat-card p { margin: 0; font-size: .8rem; color: var(--nf-sub); }

/* --------------------------------------------------------------- cta ----- */
.nf-cta { background: #000; border-top: 1px solid #2f2f2f; padding: 3rem 0; text-align: center; }
.nf-cta h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .5rem; }
.nf-cta p { color: var(--nf-sub); margin: 0 0 1.25rem; }

/* ----------------------------------------------------------- article ----- */
.nf-article { padding: 2rem 0; }
.nf-article__header h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; margin: .5rem 0; }
.nf-article__cover { border-radius: 8px; overflow: hidden; margin: 1.5rem 0; }
.nf-prose { color: #d1d5db; font-size: 1.1rem; line-height: 1.8; }
.nf-prose a { color: var(--nf-red); }
.nf-prose h2, .nf-prose h3 { color: #fff; margin-top: 1.8em; }

.nf-crumbs { font-size: .8rem; color: var(--nf-sub); margin-bottom: 1.5rem; }
.nf-crumbs a { color: var(--nf-sub); text-decoration: none; }
.nf-crumbs a:hover { color: #fff; }
.nf-head { margin-bottom: 2rem; }
.nf-head h1 { font-size: 2.2rem; font-weight: 900; margin: 0 0 .3rem; }
.nf-head p { color: var(--nf-sub); margin: 0; }

.nf-grid--cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nf-pager { display: flex; gap: .4rem; margin-top: 2rem; }
.nf-pager a {
    padding: .4rem .9rem; border-radius: 4px; background: #222;
    color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700;
}
.nf-pager a.is-active, .nf-pager a:hover { background: var(--nf-red); }

/* ------------------------------------------------------------ footer ----- */
.nf-footer { color: #808080; padding: 3rem 0 1.5rem; font-size: .82rem; border-top: 1px solid #222; }
.nf-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nf-footer__title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #b3b3b3; margin: 0 0 .75rem; }
.nf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.nf-footer a { color: #808080; text-decoration: none; }
.nf-footer a:hover { text-decoration: underline; color: #fff; }
.nf-footer p { margin: 0 0 .5rem; }
.nf-footer__bottom {
    display: flex; justify-content: space-between; border-top: 1px solid #222;
    margin-top: 2rem; padding-top: 1.25rem; font-size: .75rem;
}
.nf-footer__love { color: var(--nf-red); font-weight: 700; }

/* --------------------------------------------------- netflix outbound btn - */
.outbound--netflix .outbound__btn--register {
    background: var(--nf-red);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
}
.outbound--netflix .outbound__btn--register:hover {
    background: #f40612;
}
.outbound--netflix .outbound__btn--login {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 4px;
}
.outbound--netflix .outbound__btn--login:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
}
.outbound--netflix-hero .outbound__btn--register {
    background: var(--nf-red);
    color: #fff;
    padding: .85rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 4px;
}
.outbound--netflix-hero .outbound__btn--login {
    background: rgba(109, 109, 110, .7);
    color: #fff;
    padding: .85rem 1.8rem;
    font-size: 1.05rem;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .nf-header__inner { padding: .6rem 0; }
    .nf-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: .25rem; }
    .nf-search input { width: 120px; }
}