:root {
    --bg: #07080b;
    --bg-soft: #0d1017;
    --panel: rgba(17, 20, 29, 0.92);
    --panel-solid: #11141d;
    --panel-soft: #181d29;
    --text: #fff8e8;
    --muted: #a9adbb;
    --gold: #d9aa45;
    --gold-strong: #f5ca63;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(245, 202, 99, 0.28);
    --danger: #ff6b7a;
    --ok: #57d691;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 10%, rgba(217, 170, 69, 0.18), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(82, 103, 160, 0.15), transparent 34%),
        linear-gradient(180deg, #090b10 0%, var(--bg) 62%, #050609 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    color: var(--gold-strong);
}

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga";
    vertical-align: -0.18em;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-strong), #b67922);
    color: #160f05;
    box-shadow: 0 12px 30px rgba(217, 170, 69, 0.22);
}

.mark .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.nav {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.nav a,
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(18, 22, 32, 0.86);
    color: var(--text);
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav a .material-symbols-outlined,
button .material-symbols-outlined {
    font-size: 19px;
}

.nav a:hover,
.button:hover,
button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: #1b2130;
}

.button.primary,
button.primary {
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
    color: #181006;
    border-color: transparent;
    font-weight: 800;
}

.login-wrap {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(260px, 1fr);
    align-items: stretch;
    gap: 18px;
    min-height: calc(100vh - 170px);
}

.login-card {
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 24, 35, 0.96), rgba(12, 15, 22, 0.96));
    box-shadow: var(--shadow);
    padding: 34px;
}

.login-card h1 {
    max-width: 9ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 202, 99, 0.28);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20;
}

.google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: #202124;
    padding: 8px 18px 8px 11px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.google-login:hover {
    background: #f8fafd;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.22);
    transform: translateY(-1px);
}

.google-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #edf0f2;
}

.google-mark svg {
    width: 18px;
    height: 18px;
    display: block;
}

.login-visual {
    position: relative;
    align-self: center;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(245, 202, 99, 0.18), transparent 46%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 40%),
        #10141d;
    box-shadow: var(--shadow);
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18% 18.5%, transparent 18.5% 50%, rgba(255, 255, 255, 0.08) 50% 50.5%, transparent 50.5% 82%, rgba(255, 255, 255, 0.08) 82% 82.5%, transparent 82.5%),
        linear-gradient(0deg, transparent 0 24%, rgba(255, 255, 255, 0.08) 24% 24.5%, transparent 24.5% 76%, rgba(255, 255, 255, 0.08) 76% 76.5%, transparent 76.5%);
}

.visual-copy {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 32px;
}

.visual-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(28px, 5vw, 58px);
    line-height: 0.92;
}

.visual-copy span {
    color: var(--muted);
}

.play-chip {
    position: absolute;
    top: 36px;
    right: 36px;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--gold-strong);
    color: #151006;
    font-weight: 900;
    box-shadow: 0 16px 45px rgba(245, 202, 99, 0.24);
}

.play-chip .material-symbols-outlined {
    font-size: 44px;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

.hero {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.muted {
    color: var(--muted);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 10px;
    margin: 18px 0 24px;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(7, 9, 13, 0.82);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--line-strong);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.video-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.thumb {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(245, 202, 99, 0.4), rgba(255, 255, 255, 0.04) 42%, transparent 70%),
        linear-gradient(135deg, #171d29, #0b0e15);
    color: var(--gold-strong);
}

.thumb .material-symbols-outlined {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(245, 202, 99, 0.16);
    border: 1px solid rgba(245, 202, 99, 0.24);
    color: var(--gold-strong);
    font-size: 38px;
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

.card-body {
    padding: 14px;
}

.pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--gold-strong);
    font-size: 12px;
    margin-bottom: 8px;
}

.title {
    font-weight: 760;
    line-height: 1.25;
}

.player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.player iframe,
.player video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.blocked-player {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 340px;
    padding: 28px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(245, 202, 99, 0.16), transparent 32%),
        linear-gradient(135deg, #131824, #090b10);
}

.blocked-player > .material-symbols-outlined {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(245, 202, 99, 0.14);
    border: 1px solid rgba(245, 202, 99, 0.24);
    color: var(--gold-strong);
    font-size: 38px;
}

.blocked-player strong {
    max-width: 520px;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.blocked-player p {
    margin: 0 0 4px;
    color: var(--muted);
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.24);
    padding: 22px;
}

.panel h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heading-icon {
    color: var(--gold-strong);
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 40;
}

.stack {
    display: grid;
    gap: 14px;
}

.notice {
    border: 1px solid rgba(245, 202, 99, 0.22);
    border-radius: 12px;
    padding: 13px 14px;
    background: rgba(217, 170, 69, 0.09);
}

.notice.error {
    border-color: rgba(255, 107, 122, 0.28);
    background: rgba(255, 107, 122, 0.1);
    color: #ffd6dc;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat {
    position: relative;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.stat-icon {
    color: var(--gold-strong);
    font-size: 26px;
    margin-bottom: 8px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 32;
}

.stat strong {
    display: block;
    font-size: 30px;
    color: var(--gold-strong);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .login-wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 250px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 1160px);
        padding-top: 18px;
    }

    .topbar,
    .filters {
        grid-template-columns: 1fr;
        display: grid;
    }

    .login-card {
        padding: 24px;
    }

    .nav {
        flex-wrap: wrap;
    }
}
