:root {
    --background-primary: #0a0c0f;
    --background-secondary: #14181c;
    --background-tertiary: #1e2429;

    --accent-primary: #00e676;
    --accent-secondary: #00b0ff;

    --text-primary: #ffffff;
    --text-secondary: #a0a8b8;

    --border-color: rgba(255, 255, 255, 0.08);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.3s ease;
}


/* =========================
   GLOBAL RESET
========================= */

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


/* =========================
   BODY
========================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
}


/* =========================
   GLOBAL FOCUS STATES
   Smart TV / D-Pad
========================= */

a:focus,
button:focus,
.rec-card:focus,
.cast-card:focus {
    outline: 2px solid var(--accent-primary) !important;
    outline-offset: 3px;
    transform: scale(1.03);
}


/* =========================
   HEADER
========================= */

.header {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 18px;

    position: sticky;
    top: 0;

    z-index: 90;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: var(--transition);
}

.logo:hover .logo-img {
    opacity: 0.9;
}

.logo-fallback {
    display: none;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    align-items: center;
    gap: 6px;
}

.logo-fallback .badge {
    background: var(--accent-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.nav-menu {
    display: none;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);

    padding: 8px 12px;
    border-radius: var(--radius-sm);

    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--background-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
}


/* Desktop navigation SVG icons */

.nav-link svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================
   BACK BUTTON
========================= */

.back-btn {
    background: var(--background-tertiary);
    color: var(--text-primary);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);

    padding: 8px 14px;

    cursor: pointer;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition: var(--transition);
}

.back-btn:hover {
    background: var(--accent-primary);
    color: #000;
}


/* =========================
   GENERIC BUTTON
========================= */

.arrow-btn {
    background: var(--background-tertiary);
    color: var(--text-primary);

    border: 1px solid var(--border-color);

    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 14px;

    transition: var(--transition);
}

.arrow-btn:hover,
.arrow-btn:focus {
    background: var(--accent-primary);
    color: #000;
    outline: none;
}


/* =========================
   BADGE
========================= */

.badge {
    font-size: 11px;
    font-weight: 700;

    padding: 4px 8px;

    border-radius: 4px;

    text-transform: uppercase;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #06080a;

    border-top: 1px solid var(--border-color);

    padding: 40px 20px 24px 20px;

    margin-top: 40px;

    text-align: center;
}

.footer-content {
    max-width: 650px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 48px;
    width: auto;

    object-fit: contain;
    display: inline-block;

    image-rendering: -webkit-optimize-contrast;
}

.footer-links {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px 24px;

    max-width: 320px;

    margin: 0 auto 24px auto;
}

.footer-link {
    color: var(--text-primary);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-divider {
    height: 1px;

    background: var(--accent-primary);

    width: 100%;

    margin: 20px 0;

    opacity: 0.6;
}

.footer-seo-text {
    color: var(--accent-primary);

    font-size: 12px;
    line-height: 1.6;

    margin-bottom: 20px;

    font-weight: 500;
}

.footer-disclaimer {
    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;

    margin-bottom: 8px;
}

.footer-copyright {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}


/* =========================
   MOBILE BOTTOM NAV
========================= */

.bottom-nav {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    height: 60px;

    background: var(--background-secondary);

    border-top: 1px solid var(--border-color);

    display: flex;

    justify-content: space-around;
    align-items: center;

    z-index: 100;

    max-width: 950px;

    margin: 0 auto;
}

.nav-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;

    padding: 6px 14px;

    border-radius: var(--radius-lg);

    transition: var(--transition);
}

.nav-item svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 1. Make the lines thicker and softer 
.bottom-nav svg {
  stroke-width: 2.5px; /* Default is 2px; try 2.5 or 3 for bolder icons 
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2. Style active/selected state with a filled background pill 
.nav-item.active {
  background-color: #f0f0f0;
  border-radius: 12px;
} */


/* =========================
   DESKTOP
========================= */

@media (min-width: 850px) {

    .logo-img {
        height: 60px;
    }

    .nav-menu {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
