        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { background: #111827; font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: #e5e7eb; padding: 20px; }
        .container { max-width: 1600px; margin: 0 auto; }
        
        /* HEADER GRID - 3 columns */
        header { background: #0f172a; text-align: center; padding: 20px; border-radius: 16px 16px 0 0; margin-bottom: 20px; }
        .header-grid {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            align-items: center;
            gap: 20px;
            width: 100%;
        }
        .header-left {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .header-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }
        .header-right {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .sponsor-title { color: #facc15; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
        .sponsor-logo { max-width: 90px; height: auto; margin: 6px 0; }
        .social-links { display: flex; gap: 8px; }
        .social-links a {
            width: 38px; height: 38px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            background: #1e293b; border: 1px solid #334155; color: #fff; text-decoration: none;
        }
        .social-links a:hover { background: #2563eb; }
        
        /* EDITORIAL BUTTON - matches MSM/ALT style exactly */
        .header-editorial-btn {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 40px;
            background: #1e293b;
            border: 1px solid #334155;
            color: #e5e7eb;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            line-height: 1.3;
            text-align: center;
            transition: 0.2s;
            min-width: 120px;
        }
        .header-editorial-btn:hover {
            background: #2563eb;
            border-color: #60a5fa;
            transform: scale(1.02);
        }
        .editorial-sub {
            font-size: 0.7rem;
            font-weight: 400;
            opacity: 0.9;
            display: block;
            margin-top: 2px;
        }
        
        /* MOBILE: Stack button above logo */
        @media (max-width: 768px) {
            .header-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .header-left {
                order: 1;
            }
            .header-center {
                order: 2;
            }
            .header-right {
                order: 3;
                margin-top: 4px;
            }
            .sponsor-logo {
                max-width: 70px;
            }
            .social-links a {
                width: 34px;
                height: 34px;
                font-size: 0.85rem;
            }
            .header-editorial-btn {
                padding: 8px 16px;
                font-size: 0.85rem;
                min-width: 100px;
            }
            .editorial-sub {
                font-size: 0.65rem;
            }
        }
        
        .datetime { background: #1e293b; display: inline-block; padding: 6px 16px; border-radius: 30px; font-size: 0.9rem; margin-top: 12px; color: #facc15; font-weight: bold; font-family: monospace; }
        .mobile-horiz { background: #b91c1c; color: white; text-align: center; padding: 8px 12px; font-size: 0.85rem; font-weight: bold; border-radius: 30px; margin: 10px auto 0; display: inline-block; width: auto; }
        .nav { display: flex; justify-content: center; gap: 40px; margin: 20px 0 30px; flex-wrap: wrap; }
        .nav a { padding: 10px 28px; border-radius: 40px; background: #1e293b; border: 1px solid #334155; color: #e5e7eb; text-decoration: none; font-weight: 600; transition: 0.2s; }
        .nav a:hover { background: #2563eb; border-color: #60a5fa; }
        .featured-story {
            background: #0f172a;
            border-radius: 24px;
            margin: 20px 0 40px 0;
            padding: 24px;
            border: 1px solid #1e293b;
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }
        .featured-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 30px;
            align-items: start;
        }
        .featured-image a { display: block; }
        .featured-image img {
            width: 100%;
            height: auto;
            border-radius: 16px;
            border: 1px solid #334155;
            display: block;
            transition: opacity 0.2s;
        }
        .featured-image img:hover { opacity: 0.9; }
        .featured-text h2 {
            color: #facc15;
            font-size: 1.8rem;
            margin-bottom: 16px;
            line-height: 1.2;
        }
        .featured-text .editor-note {
            color: #e5e7eb;
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 0;
        }
        .featured-text .editor-note p { margin-bottom: 16px; }
        @media (max-width: 900px) {
            .featured-grid { grid-template-columns: 1fr; gap: 20px; }
            .featured-text h2 { font-size: 1.5rem; }
        }
        .row { display: flex; width: 100%; margin: 20px 0; gap: 20px; }
        .gutter { width: 20%; background: transparent; }
        .inner-col { width: 30%; background: #0f172a; border-radius: 20px; padding: 18px; border: 1px solid #1e293b; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
        .video-card { background: #1e293b; border-radius: 16px; padding: 12px; margin-bottom: 24px; }
        .video-card:hover { background: #243447; }
        .video-card img { width: 100%; max-width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 10px; background: #0f172a; }
        .video-card a { color: #f97316; text-decoration: none; font-weight: bold; display: block; margin-bottom: 6px; font-size: 1rem; }
        .video-card a:hover { text-decoration: underline; color: #fb923c; }
        .video-meta { font-size: 0.7rem; color: #94a3b8; margin-top: 6px; }
        .video-source { color: #facc15; font-weight: 500; }
        .gutter-box { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 14px; margin-bottom: 20px; }
        .gutter-box a { color: #facc15; text-decoration: none; font-weight: 500; font-size: 0.9rem; line-height: 1.4; display: block; }
        .gutter-box a:hover { text-decoration: underline; color: #ffd966; }
        .white-cell { background: white; border: 2px solid #1f2937; border-radius: 24px; padding: 28px; color: #111827; margin: 30px auto; width: 70%; box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
        .white-cell p { color: #1e293b; margin-bottom: 18px; line-height: 1.5; }
        .contact-btn { background: #b91c1c; color: white; border: none; padding: 8px 22px; border-radius: 40px; font-weight: bold; cursor: pointer; font-size: 0.9rem; margin-top: 6px; display: inline-block; }
        .contact-btn:hover { background: #dc2626; }

        /* Subtitles under the EMM Editorial and Contact Congress nav buttons */
        .header-left-sub {
            color: #facc15;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            text-align: center;
            margin-top: 10px;
        }
        .header-center-sub {
            color: #facc15;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            text-align: center;
            margin-top: -6px;
            margin-bottom: 6px;
        }
        @media (max-width: 480px) {
            .header-left-sub, .header-center-sub { font-size: 0.65rem; }
        }

        /* Video/article card with no available thumbnail (no custom upload
           and no auto thumbnail found) — plain text tile instead of a
           broken image */
        .video-card-noimg {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 110px;
            background: #0f172a;
            border: 1px dashed #334155;
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 10px;
            color: #cbd5e1 !important;
            font-weight: 600 !important;
            font-size: 0.95rem !important;
        }
        .video-card-noimg:hover { border-color: #facc15; text-decoration: none !important; }
        footer { background: #0f172a; border-radius: 0 0 20px 20px; text-align: center; padding: 20px; margin-top: 20px; font-size: 0.85rem; color: #9ca3af; }
        .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(4px); justify-content: center; align-items: center; }
        .modal-content { background: #0f172a; border: 1px solid #facc15; border-radius: 32px; width: 90%; max-width: 520px; padding: 28px 24px; color: #e5e7eb; position: relative; }
        .modal-content h3 { font-size: 1.8rem; margin-bottom: 8px; color: #facc15; }
        .modal-content label { display: block; margin: 16px 0 4px; font-weight: 600; }
        .modal-content input, .modal-content textarea { width: 100%; padding: 12px 14px; background: #1e293b; border: 1px solid #475569; border-radius: 14px; color: #f1f5f9; font-size: 1rem; }
        .modal-content input:focus, .modal-content textarea:focus { outline: none; border-color: #facc15; }
        .modal-buttons { display: flex; justify-content: flex-end; gap: 16px; margin-top: 28px; }
        .modal-buttons button { padding: 10px 24px; border-radius: 40px; font-weight: bold; cursor: pointer; border: none; }
        .send-btn { background: #b91c1c; color: white; }
        .send-btn:hover { background: #dc2626; }
        .cancel-btn { background: #334155; color: #e2e8f0; }
        .close-modal { position: absolute; top: 18px; right: 24px; font-size: 28px; font-weight: bold; cursor: pointer; color: #94a3b8; }
        .close-modal:hover { color: #facc15; }
        hr { border-color: #334155; margin: 12px 0; }
        .status-msg { background: #1e293b; padding: 10px; border-radius: 20px; margin-bottom: 15px; text-align: center; }
        .status-success { color: #4ade80; }
        .status-error { color: #f87171; }
        @media (max-width: 1000px) { .row { gap: 12px; } .inner-col { padding: 12px; } }

/* =====================================================================
   Mobile layout — the four columns stack into one, so phones no longer
   need to be rotated sideways to read the site.
   ===================================================================== */
@media (max-width: 860px) {
    body { padding: 12px; }
    .row { flex-direction: column; }
    .gutter, .inner-col { width: 100%; }
    .mobile-horiz { display: none; } /* no longer needed now that layout stacks */
    .featured-story { padding: 16px; }
    .white-cell { width: 100%; padding: 20px; }
    .header-grid { gap: 10px; }
}

@media (max-width: 480px) {
    .header-editorial-btn { min-width: 0; padding: 8px 14px; font-size: 0.82rem; }
    .datetime { font-size: 0.78rem; padding: 5px 12px; }
    .nav { gap: 16px; }
    .nav a { padding: 8px 18px; font-size: 0.9rem; }
    .video-card, .gutter-box { padding: 10px; }
}

/* =====================================================================
   Admin (link manager) additions — same dark theme as the public site
   ===================================================================== */
.admin-wrap { padding-top: 10px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: #0f172a; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; }
.admin-header h1 { font-size: 1.4rem; color: #facc15; }
.admin-header-links { display: flex; gap: 18px; }
.admin-header-links a { color: #e5e7eb; text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 30px; background: #1e293b; border: 1px solid #334155; }
.admin-header-links a:hover { background: #2563eb; border-color: #60a5fa; }

.admin-card { background: #0f172a; border-radius: 20px; padding: 22px; margin-bottom: 24px; border: 1px solid #1e293b; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.admin-card h2 { color: #facc15; font-size: 1.2rem; margin-bottom: 12px; }
.admin-card .hint { color: #94a3b8; font-size: 0.85rem; margin-bottom: 14px; line-height: 1.5; }
.admin-card code { background: #1e293b; padding: 1px 6px; border-radius: 6px; color: #fbbf24; font-size: 0.85em; }

.login-box { max-width: 420px; margin: 60px auto; background: #0f172a; border-radius: 20px; padding: 30px; border: 1px solid #1e293b; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.login-box h1 { color: #facc15; font-size: 1.4rem; margin-bottom: 10px; }
.login-box p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 18px; line-height: 1.5; }

label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="url"], input[type="password"], input[type="email"], select, textarea {
    width: 100%; padding: 10px 12px; background: #1e293b; border: 1px solid #475569; border-radius: 12px;
    color: #f1f5f9; font-size: 0.95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #facc15; }

.btn { display: inline-block; background: #2563eb; color: white; border: none; padding: 10px 22px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 0.9rem; margin-top: 14px; text-decoration: none; }
.btn:hover { background: #1d4ed8; }
.btn-secondary { background: #334155; }
.btn-secondary:hover { background: #475569; }
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #dc2626; }
.btn-small { padding: 6px 14px; font-size: 0.8rem; margin-top: 0; }

/* Quick paste box */
.quick-paste { background: #1e293b; border: 1px dashed #475569; border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.quick-paste-controls { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.quick-paste-controls select { width: auto; flex: 1 1 260px; }

/* Row builder */
.video-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    background: #1e293b;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #334155;
}
.row-field { display: flex; flex-direction: column; }
.row-field label { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; font-weight: 600; }
.row-field-url { flex: 2 1 220px; }
.row-field-title { flex: 3 1 260px; }
.row-field-column { flex: 1 1 170px; }
.row-field-source { flex: 1 1 110px; }
.row-field-date { flex: 1 1 90px; }
.row-field-thumb { flex: 1 1 170px; }
.row-field input, .row-field select { margin: 0; }
.row-thumb, .manage-thumb-file {
    padding: 6px; background: #0f172a; border: 1px dashed #475569; border-radius: 10px;
    color: #94a3b8; font-size: 0.78rem;
}
.video-row .row-remove { margin-top: 0; align-self: center; }

.position-choice { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; font-size: 0.9rem; color: #cbd5e1; }
.position-choice label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }

/* Manage / delete list */
.manage-group { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.manage-group summary { cursor: pointer; font-weight: 600; color: #facc15; padding: 4px 0; }
.manage-list { list-style: none; margin-top: 10px; }
.manage-row { padding: 10px 0; border-top: 1px solid #334155; }
.manage-row-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.manage-thumb-preview { width: 64px; height: 36px; object-fit: cover; border-radius: 8px; background: #0f172a; flex-shrink: 0; }
.manage-thumb-none { display: flex; align-items: center; justify-content: center; font-size: 0.62rem; color: #64748b; text-align: center; border: 1px dashed #334155; }
.manage-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.manage-item-text a { color: #f97316; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.manage-item-text a:hover { text-decoration: underline; }
.manage-item-meta { color: #94a3b8; font-size: 0.75rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-type-badge { display: inline-block; padding: 1px 8px; border-radius: 20px; background: #334155; color: #cbd5e1; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.link-type-youtube { background: #7f1d1d; color: #fecaca; }
.link-type-x { background: #1e3a5f; color: #bfdbfe; }
.link-type-rumble { background: #4a2f0a; color: #fde68a; }
.link-type-article { background: #1e293b; color: #94a3b8; border: 1px solid #475569; }
.manage-item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }
.manage-inline-form { display: inline-flex; }
.manage-inline-form .btn { margin-top: 0; }
.manage-move-form { display: inline-flex; align-items: center; gap: 6px; }
.manage-move-select { width: auto; padding: 5px 8px; font-size: 0.78rem; margin: 0; }
.manage-thumb-form { display: flex; align-items: center; gap: 6px; }
.manage-thumb-form .manage-thumb-file { width: 150px; }
.manage-delete-form { flex-shrink: 0; }

/* Inline edit panel */
.manage-edit-panel { margin-top: 10px; padding: 14px; background: #0f172a; border: 1px solid #334155; border-radius: 12px; }
.manage-edit-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.manage-edit-form .row-field { flex: 1 1 200px; }
.manage-edit-form .row-field label { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; font-weight: 600; }
.manage-edit-form .row-field input { margin: 0; }
.manage-edit-form .row-field-source, .manage-edit-form .row-field-date { flex: 1 1 110px; }
.manage-edit-buttons { display: flex; gap: 8px; }

@media (max-width: 640px) {
    .video-row { flex-direction: column; align-items: stretch; }
    .row-field { flex: 1 1 auto; width: 100%; }
    .video-row .row-remove { align-self: flex-end; }
    .manage-row-main { flex-direction: column; align-items: flex-start; }
    .manage-item-actions { margin-left: 0; width: 100%; }
    .manage-edit-form { flex-direction: column; align-items: stretch; }
    .manage-edit-form .row-field { flex: 1 1 auto; width: 100%; }
}
