@font-face {
    font-family: 'RuffWire';
    /* Ensure the file name is EXACTLY RuffWire.ttf on your Mac/Docker disk */
    src: url('/static/fonts/RuffWire.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

:root {
    --container: 1100px;
    --gutter: 12px;
    --radius: 14px;
    /* Custom Font Variable */
    --main-font: 'RuffWire', system-ui, -apple-system, sans-serif;
    /* Brand Colors */
    --bg-dark: #000000;
    --nav-bg: rgba(20, 20, 20, 0.8);
    --accent-blue: #023c7a;
}

* { box-sizing: border-box; }

html, body { 
    width: 100%; 
    overflow-x: hidden; 
    background-color: var(--bg-dark);
}

body {
    margin: 0;
    font-family: var(--main-font);
    line-height: 1.5;
    color: #ffffff;
    -webkit-text-size-adjust: 100%;
}

/* Ensure images and Firefox videos don't overflow */
img, video, canvas, svg { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin: 0 auto;
}

/* Typography using your fluid sizing (clamp) */
h1, h2, h3, button, input { 
    font-family: var(--main-font); 
}

h1 { font-size: clamp(24px, 5vw, 44px); margin: 0.4em 0; }
h2 { font-size: clamp(20px, 4vw, 32px); margin: 0.4em 0; }
p, li { font-size: clamp(15px, 2.8vw, 18px); }

button, a, input, select, textarea {
    min-height: 44px;
    font-size: 16px;
}

/* Grid for Reels */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* --- Navigation Fix --- */
.nav-container {
    background-color: var(--nav-bg); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    margin-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-container a:hover {
    color: #ffffff;
}

.nav-container a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 4px;
}

/* --- Ad Slots --- */
.ad-slot-horizontal, .reel-ad-container {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reel-ad-container {
    aspect-ratio: 9/16;
    padding: 15px;
}

.ad-label {
    color: #555;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.sponsored-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Keeps it full screen like the videos */
    width: 100%;
}