:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --border: #475569;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 5px;
}

.instance-badge {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.search {
    flex: 1;
}

.search input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: white;
}

/* HAMBURGER */
.hamburger {
    cursor: pointer;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: white;
}

/* MENU */
.menu {
    position: absolute;
    right: 1rem;
    top: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 180px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu button {
    background: none;
    border: none;
    color: white;
    padding: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.menu button:hover {
    background: var(--surface-hover);
}

.hidden { display: none; }

/* GRID */
main { padding: 1rem; }

.notice-card {

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 20px;

    border-radius: 10px;

    background: #080d17;

    border-left: 6px solid #36D80D;
    outline: 4px solid #233662;
}

.notice-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    background: #36D80D;
}

.notice-text {
    font-size: 16px;
    color: #aaa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    text-decoration: none;
    color: inherit;
}

.thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: #000;
}

.title {
    margin-top: 0.7rem;
    font-weight: 600;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    width: min(500px, 90vw);
}

.modal-content input {
    width: 100%;
    margin-bottom: 0.7rem;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: white;
}

.modal-content input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.7rem;
}

.status {
    color: var(--muted);
    margin: 0.5rem 0;
}
