/* --- Variables --- */
:root {
    --bg: #000;
    --panel: #1a242f;
    --text: #e6e6e6;
    --muted: #9fb3c8;
    --accent: #00a8e1;
    --success: #2ecc71;
    --error: #e74c3c;
    --orange: #e44225;
    --fontFamily: Public Sans, Inter, system-ui, Arial, sans-serif;
}

/* --- Base & Utilities --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Public Sans, Inter, system-ui, Arial, sans-serif;
}

body.dark {
    background: var(--bg);
    color: var(--text);
}

.container {
    padding: 1rem 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar styling */
/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--panel);
    color: white;
    position: relative;
    /* so mobile menu anchors correctly */
    z-index: 1001;
}

.navbar .brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* Links - hidden by default (mobile-first) */
.navlinks {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    width: 220px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}

.navlinks a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.navlinks a:hover {
    color: #f39c12;
}

/* Show menu when active */
.navlinks.active {
    display: flex;
}

/* Hamburger */
.menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* --- Desktop --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
        /* hide burger */
    }

    .navlinks {
        display: flex !important;
        /* always show on desktop */
        flex-direction: row;
        position: static;
        background: none;
        width: auto;
        padding: 0;
        border-radius: 0;
    }
}

/* Slider Styles */
.slider-container {
    width: 100%;
    height: 85vh;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}


.slider {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
    transition: transform 0.6s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
}

.slide-content p {
    font-family: var(--fontFamily);
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.5%;
}

.slide-content h2 {
    font-family: var(--fontFamily);
    font-weight: 700;
    font-style: Bold;
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -2%;
}

.btn-live-slider,
.btn-vod-slider {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-live-slider {
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: white;
}

.btn-live-slider:hover {
    background: linear-gradient(135deg, #ff8a65, #ff7043);
    transform: translateY(-2px);
}

.btn-vod-slider {
    background: linear-gradient(135deg, #3a8dff, #2071f4);
    color: white;
}

.btn-vod-slider:hover {
    background: linear-gradient(135deg, #5aa4ff, #3a8dff);
    transform: translateY(-2px);
}

/* --- Cards & Grids --- */
.event-section {
    margin: 2rem 0;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    padding:2px;
    position: relative;
    border-radius: 4px;
    border: 1px solid #222;
    margin:5px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.event-card:hover img {
    filter: brightness(0.4);
}

.event-info {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    background: transparent;
    position: static;
    opacity: 1;
}

.event-card:hover .event-info {
    opacity: 1;
}

.event-info h3 {
    font-family: var(--fontFamily);
    font-style: Bold;
    line-height: 24px;
    letter-spacing: -2%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #eee;
}

.event-info p {
    font-family: var(--fontFamily);
    font-style: Regular;
    line-height: 24px;
    letter-spacing: -0.5%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    font-size: 0.65rem;
    font-weight: 400;
    color: #eee;
}


.event-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- Detail View --- */
.detail {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.detail-media {
    flex: none;
    max-width: 100%;
}

.detail-info {
    flex: none;
    max-width: 100%;
}

.detail-info h1 {
    margin: 0.8rem 0 0;
}

.muted {
    color: var(--muted);
}


/* Newsletter */

.newsletter {
    position: relative;
    background: url('/static/nenastream/stream/images/newsletter-bg.png') center/cover no-repeat;
    padding: 60px 20px;
    color: white;
    text-align: center;
    align-content: center;
    border-radius: 4px;
    height: 80vh;
    gap: 48px;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

.newsletter-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.newsletter h2 {
    font-family: var(--fontFamily);
    font-weight: 700;
    font-style: Bold;
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -2%;
    text-align: center;
}

.newsletter p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.newsletter-form input[type="email"] {
    width: 445px;
    height: 48px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    gap: 8px;
    opacity: 1;
    border-radius: 4px;
    border-width: 1.5px;
}

.newsletter-form button {
    width: 143;
    height: 48;
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
    background: #2E64A5;
    color: #fff;
    opacity: 1;
    border-radius: 4px;
}

.newsletter-form button:hover {
    background: #0056b3;
}

/* Responsive: stack form nicely on bigger screens */
@media (min-width: 600px) {
    .newsletter-form {
        flex-direction: row;
        justify-content: center;
    }

    .newsletter-form input[type="email"] {
        flex: 1;
        margin-right: 10px;
    }
}

.newsletter-messages {
    margin-top: 15px;
}

.newsletter-messages p {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.newsletter-messages .success {
    background: rgba(0, 200, 0, 0.2);
    color: #00c800;
}

.newsletter-messages .error {
    background: rgba(200, 0, 0, 0.2);
    color: #ff4d4d;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: var(--fontFamily);
}

.footer-divs {
    flex: 1;
    min-width: 150px;
}

.footer-divs a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin: 0.3rem 0;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-divs a:hover {
    color: #f39c12;
}

.footer-divs:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
            padding: 0rem;
        }
    .slide{
        margin: 5px;
    }
    .slide img {
        object-fit: contain;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-divs {
        margin-bottom: 1rem;
    }

    .footer-divs a {
        margin: 0.5rem 0;
    }
    .detail-info h1 {
    margin: 0.8rem 0 0;
        font-size:20px;
    }
    
    .muted {
        color: var(--muted);
        font-size:15px;
    }
}

/* Access Form,Confirm Override and Logout form */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-content {
    background: #141416;
    padding: 2rem;
    border-radius: 4px;
    gap: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.overlay input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 4px;
    border: none;
}

#access-code {
    font-family: monospace;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-div {
    display: flex;
}

.error-text {
    color: var(--error);
}

.modal-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-around;
}

@keyframes logoutFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Event details Layout */
.player-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-media {
    flex: 1 1 70%;
    max-width: 70%;
}

/*

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    padding: 16px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    margin: 0.5rem;
    font-size: 16px;
    flex: 1 1 45%;
    cursor: pointer;
    text-align: center;
}

.btn.outline {
    background-color: #000;
    color: white;
    border: 1px solid #fff;

}

.btn.primary {
    background-color: #007bff;
    color: white;
    font-family: var(--fontFamily) !important;
}

.btn.secondary {
    background-color: #ccc;
    color: #333;
}

/* --- Slider Responsive --- */
@media (max-width: 768px) {
     .event-card {
         padding-top:2px;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    .event-card img {
        width: 150px;
        height: 150px;
        object-fit:contain;
    }
    .slider-container {
        height: 60vh;
        /* smaller height on tablets/phones */
    }

    .slide-content h2 {
        font-size: 28px;
        line-height: 32px;
    }

    .slide-content p {
        font-size: 14px;
        line-height: 18px;
    }

    .btn-live-slider,
    .btn-vod-slider {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .slide-content h2 {
        font-size: 20px;
        line-height: 26px;
    }

    .slide-content p {
        font-size: 12px;
        line-height: 16px;
    }
}

/* --- Event Cards Responsive --- */
@media (max-width: 600px) {
     .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    .event-card img {
        width: 150px;
        height: 150px;
        object-fit:contain;
    }

    .event-info h3 {
        font-size: 0.75rem;
    }

    .event-info p {
        font-size: 0.6rem;
    }
}

/* --- Newsletter Responsive --- */
@media (max-width: 768px) {
    .newsletter {
        height: auto;
        padding: 40px 15px;
    }

    .newsletter h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .newsletter p {
        font-size: 0.9rem;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        margin-right: 0;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* --- Detail / Player Layout Responsive --- */
@media (max-width: 992px) {
    .player-layout {
        flex-direction: column;
    }

    .detail-media,
    .detail-info {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --- Buttons Responsive --- */
@media (max-width: 480px) {
    .btn {
        padding: 12px;
        font-size: 0.9rem;
        width: 100%;
        /* easier to tap */
    }
}


    /* Ensure custom components behave predictably */
live-player-component {
  display: block;
  width: 100%;
  min-height: auto;  /* or whatever fits your design */
  background: black;  /* fallback so area doesn't collapse */
}

/* Ensure player + sidebar use grid from the start */
.player-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* player + sidebar */
  gap: 1rem;
  align-items: start;
}

.detail-media {
  width: 100%;
}

.sidebar-related {
  width: 100%;
}
