/**
 * NFR 360 micro-site styles — standalone from the main site theme.
 * Brand navy, Roboto, Netflix-style tile rows under a large player.
 */
:root {
    --n360-navy: #202e5b;
    --n360-navy-dark: #16203f;
    --n360-navy-darker: #101731;
    --n360-red: #d91a2a;
    --n360-text: #ffffff;
    --n360-text-dim: #aab2cc;
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, var(--n360-navy) 0%, var(--n360-navy-darker) 100%);
    color: var(--n360-text);
    min-height: 100vh;
}

img {
    max-width: 100%;
}

/* ---- Header ---- */
.n360-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 70px;
    padding: 0 22px;
    background: var(--n360-navy);
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.n360-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.n360-slogan {
    height: 30px;
    width: auto;
}

.n360-back {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--n360-text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.n360-back:hover {
    color: var(--n360-text);
}

/* ---- Player ---- */
.n360-player-shell {
    background: #000;
    border-bottom: 3px solid rgba(0, 0, 0, 0.45);
}

.n360-player-frame {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 76vh;
}

.n360-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.n360-now-playing {
    max-width: 1500px;
    margin: 0 auto;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--n360-text);
    min-height: 44px;
}

.n360-np-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--n360-red);
    margin-right: 8px;
}

/* ---- Rows ---- */
.n360-rows {
    padding: 26px 0 60px;
}

.n360-row {
    margin: 0 auto 34px;
    max-width: 1500px;
    padding: 0 64px;
}

.n360-row-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.n360-row-viewport {
    position: relative;
}

.n360-row-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.n360-row-scroller::-webkit-scrollbar {
    display: none;
}

.n360-row-loading {
    font-size: 13px;
    color: var(--n360-text-dim);
    padding: 30px 0;
}

/* ---- Tiles ---- */
.n360-tile {
    position: relative;
    flex: 0 0 calc((100% - 40px) / 5);
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--n360-navy-dark);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.n360-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.n360-tile:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.n360-tile.active {
    outline: 3px solid var(--n360-red);
    outline-offset: -3px;
}

.n360-tile-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.n360-tile:hover .n360-tile-title,
.n360-tile.active .n360-tile-title {
    opacity: 1;
}

.n360-tile-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(217, 26, 42, 0.92);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.n360-tile:hover .n360-tile-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---- Row arrows ---- */
.n360-row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.n360-row-arrow:hover {
    background: var(--n360-red);
}

.n360-row-prev { left: -52px; }
.n360-row-next { right: -52px; }

/* ---- Ads ---- */
.n360-ad {
    max-width: 1100px;
    margin: 0 auto 34px;
    padding: 0 64px;
    text-align: center;
}

.n360-ad img {
    border-radius: 8px;
}

.n360-empty {
    text-align: center;
    color: var(--n360-text-dim);
    padding: 40px 20px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .n360-tile { flex-basis: calc((100% - 30px) / 4); }
}

@media (max-width: 900px) {
    .n360-tile { flex-basis: calc((100% - 20px) / 3); }
    .n360-row { padding: 0 48px; }
    .n360-row-prev { left: -42px; }
    .n360-row-next { right: -42px; }
    .n360-ad { padding: 0 48px; }
}

@media (max-width: 640px) {
    .n360-header { padding: 0 14px; gap: 12px; }
    .n360-slogan { height: 22px; }
    .n360-back span { display: none; }
    .n360-tile { flex-basis: calc((100% - 10px) / 2); }
    .n360-row { padding: 0 14px; margin-bottom: 26px; }
    .n360-row-prev { left: -6px; }
    .n360-row-next { right: -6px; }
    .n360-ad { padding: 0 14px; }
    .n360-now-playing { padding: 10px 14px; font-size: 13px; }
}
