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

:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --black-card: #1a1a1a;
    --black-hover: #222222;
    --yellow: #f5c518;
    --yellow-dim: #c9a30a;
    --yellow-glow: rgba(245, 197, 24, 0.15);
    --gray: #888888;
    --gray-light: #aaaaaa;
    --gray-dark: #333333;
    --white: #f0f0f0;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: var(--black-light);
    border-bottom: 1px solid var(--gray-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    text-decoration: none;
}

.navbar-logo span {
    color: var(--white);
}

/* ── Hero / Search Section ── */
.hero {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    padding: 48px 48px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.hero h1 .accent {
    color: var(--yellow);
}

.hero p {
    color: var(--gray-light);
    font-size: 1rem;
    margin-bottom: 28px;
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--black-card);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    padding: 4px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px var(--yellow-glow);
}

.search-bar input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 1rem;
    padding: 12px 16px;
}

.search-bar input[type="text"]::placeholder {
    color: var(--gray);
}

.search-bar button {
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: var(--yellow-dim);
}

/* ── Filter Pills ── */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-right: 4px;
}

.filter-pill {
    background: var(--black-card);
    border: 1px solid var(--gray-dark);
    color: var(--gray-light);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--gray-dark);
    margin: 0 8px;
}

/* ── Content Rows ── */
.content {
    padding: 16px 0 48px;
}

.row-section {
    padding: 24px 0 8px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin-bottom: 16px;
}

.row-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.row-title .highlight {
    color: var(--yellow);
}

.see-all {
    color: var(--yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--yellow-dim);
}

/* ── Horizontal Scroll Row ── */
.video-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 48px 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-dark) transparent;
}

.video-row::-webkit-scrollbar {
    height: 6px;
}

.video-row::-webkit-scrollbar-track {
    background: transparent;
}

.video-row::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 3px;
}

.video-row::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* ── Video Card ── */
.video-card {
    flex: 0 0 320px;
    background: var(--black-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--yellow);
}

.video-card .thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--black-light);
}

.video-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--black);
    margin-left: 3px;
}

.video-card .info {
    padding: 12px 14px;
}

.video-card .info .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.video-card .info .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.runner-name {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.video-card .info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--yellow-glow);
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-light);
}

/* ── Featured Banner ── */
.featured {
    margin: 8px 48px 0;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--black-card) 0%, rgba(245, 197, 24, 0.08) 100%);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.featured .featured-text {
    flex: 1;
}

.featured-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 8px;
}

.featured h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.featured .watch-btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.featured .watch-btn:hover {
    background: var(--yellow-dim);
}

.featured .featured-thumb {
    flex: 0 0 400px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

.featured .featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Runner Profile Header ── */
.runner-header {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    padding: 48px 48px 40px;
}

.runner-profile {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.runner-avatar {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow);
    box-shadow: 0 0 24px var(--yellow-glow);
}

.runner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--black-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
}

.runner-info {
    flex: 1;
}

.runner-display-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}

.runner-alias {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 16px;
}

.runner-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

.runner-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--black-card);
    border: 1px solid var(--gray-dark);
    color: var(--gray-light);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.social-link svg {
    flex-shrink: 0;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 32px 48px;
    border-top: 1px solid var(--gray-dark);
    color: var(--gray);
    font-size: 0.85rem;
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: var(--black-card);
    border: 1px solid var(--gray-dark);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 200;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-text {
    flex: 1;
    color: var(--gray-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid var(--gray-dark);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-decline {
    background: transparent;
    color: var(--gray-light);
}

.cookie-decline:hover {
    border-color: var(--gray);
    color: var(--white);
}

.cookie-accept {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.cookie-accept:hover {
    background: var(--yellow-dim);
    border-color: var(--yellow-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .hero {
        padding: 32px 20px;
    }

    .row-header {
        padding: 0 20px;
    }

    .video-row {
        padding: 0 20px 16px;
    }

    .video-card {
        flex: 0 0 260px;
    }

    .featured {
        margin: 8px 20px 0;
        flex-direction: column;
        padding: 24px;
    }

    .featured .featured-thumb {
        flex: 0 0 auto;
        width: 100%;
    }

    .filters {
        padding: 0 12px;
    }

    .runner-header {
        padding: 32px 20px;
    }

    .runner-profile {
        flex-direction: column;
        text-align: center;
    }

    .runner-avatar {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .runner-stats {
        justify-content: center;
    }

    .runner-socials {
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }
}
