/* Rezoan Dark News Feed (Consolidated v1.3 - Horizontal Slider) */

:root {
    /* Importing Core Rezoan Colors */
    --bg-black: #050505;
    --bg-dark-gray: #0f0f0f;
    --text-white: #ffffff;
    --text-muted: #888888;

    --primary: #ccfd33;
    /* Neon Lime */
    --accent: #00f0ff;
    /* Neon Cyan */
    --danger: #ff0000;
    /* Live/Breaking */

    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 15, 20, 0.85);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Outfit', 'Baloo Da 2', sans-serif;
    /* Core Theme Fonts */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.news-feed-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-black);
    min-height: 100vh;
    padding-bottom: 90px;
    width: 100%;
    overflow-x: hidden;
}

/* 1. Hero / Main Slider (Horizontal) */
.hero-slider-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    width: 100%;
    white-space: nowrap;
    /* Fallback insurance */
}

.hero-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    display: inline-block;
    /* Fallback */
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    /* Explicit flex sizing */
    scroll-snap-align: center;
    position: relative;
    white-space: normal;
    /* Reset text wrapping inside slide */
}

.feed-hero {
    width: 100%;
    cursor: pointer;
    position: relative;
}

.hero-media {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #222;
}

.hero-content {
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg-black) 100%);
    margin-top: -60px;
    position: relative;
    z-index: 2;
    padding-bottom: 24px;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* 2. List Item */
.feed-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    background: var(--bg-black);
    transition: background 0.2s;
}

.list-item:active {
    background: #111;
}

.list-thumb {
    width: 110px;
    height: 75px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #222;
    border: 1px solid var(--border-subtle);
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.list-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #eee;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* 3. Ad Spot */
.feed-ad-spot {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* 4. Section Headers */
.feed-section-header {
    padding: 16px 16px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.section-icon-box {
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--primary);
}

.section-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.section-link {
    margin-left: auto;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 5. Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 16px 24px;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    background-color: #222;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-card:active .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 20px;
    color: #000;
    background: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary);
}

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #ddd;
}

/* Detail View */
.feed-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 6000;
    /* Above nav */
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-detail-view.active {
    transform: translateX(0);
}

.detail-nav {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.back-arrow {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.detail-content-area {
    padding-bottom: 60px;
}

.detail-media {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.detail-text {
    padding: 24px 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.detail-h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}