@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #cc0000;
    --primary-hover: #aa0000;
    --bg-body: #f9f9f9;
    --bg-surface: #ffffff;
    --bg-sidebar: #ffffff;
    --text-main: #0f0f0f;
    --text-muted: #606060;
    --border: #e5e5e5;
    --hover-bg: #f2f2f2;
    --search-bg: #f0f0f0;
    --header-height: 64px;
    --sidebar-width: 240px;
}

body.dark-mode {
    --bg-body: #0f0f0f;
    --bg-surface: #1e1e1e;
    --bg-sidebar: #1e1e1e;
    --text-main: #f1f1f1;
    --text-muted: #aaaaaa;
    --border: #333333;
    --hover-bg: #272727;
    --search-bg: #121212;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* --- DESKTOP LAYOUT (Fixed Sidebar) --- */
.main-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width); /* Fixed 240px */
    padding: 24px;
    flex: 1;
    width: calc(100% - var(--sidebar-width));
}

.main-footer {
    margin-left: var(--sidebar-width);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 40px;
}

/* --- MOBILE LAYOUT (Full Width) --- */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px;
    }
    .main-footer {
        margin-left: 0 !important;
        padding: 20px;
        text-align: center;
    }
}

/* --- UTILITIES --- */
.channel-link-red {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.channel-link-red:hover { opacity: 0.8; text-decoration: underline; }

.btn-cta {
    background-color: var(--primary);
    color: white;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-cta:hover { background-color: var(--primary-hover); }