:root {
    --bg: #050505;
    --panel: #0b0b0b;
    --panel-2: #111;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.28);
    --text: #fff;
    --muted: #a6a6a6;
    --soft: #d8d8d8;
    --shadow: 0 24px 70px rgba(0,0,0,.65);
    --sidebar: 210px;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 0%, rgba(255,255,255,.04), transparent 28%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { color: #fff; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 18px 14px;
    z-index: 60;
    background: rgba(4,4,4,.96);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
}
.brand { display:block; padding:2px 6px 14px; }
.brand img { width:125px; }
.side-nav{
    display:flex;
    flex-direction:column;
    gap:2px;
    margin-top:10px;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap:10px;
    height:38px;
    padding:0 12px;
    border: 1px solid transparent;
    border-radius:12px;
    color: var(--muted);
    transition: .2s ease;
    font-size:13px;
}
.side-nav a:hover, .side-nav a.is-active {
    color: #fff;
    border-color: var(--line-strong);
    background: #fff;
    color: #000;
}
.nav-icon{
    width:18px;
    min-width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.nav-icon svg{
    width:12px;
    height:12px;
    stroke-width:2;
}
.side-nav a:hover .nav-icon{
    transform:scale(1.05);
}
.side-nav a.is-active .nav-icon svg{
    stroke-width:2.3;
}
.sidebar-bottom { margin-top: auto; }
.member-mini { display: flex; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid var(--line); }
.member-mini small { color: var(--muted); display: block; text-transform: uppercase; font-size: 10px; margin-top: 2px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; color: #000; display: grid; place-items: center; font-weight: 800;
}
.sidebar-toggle {
    display: none; position: fixed; left: 16px; top: 16px; z-index: 80;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    background: #000;
}
.app-main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
    height: 74px; position: absolute; top: 0; right: 0; left: var(--sidebar);
    z-index: 40; display: flex; align-items: center; justify-content: flex-end; padding: 0 42px;
    background: linear-gradient(to bottom, rgba(0,0,0,.82), transparent);
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line-strong);
    cursor: pointer; transition: .2s ease; font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-light:hover { background: #dcdcdc; }
.btn-outline { background: rgba(0,0,0,.48); color: #fff; backdrop-filter: blur(10px); }
.btn-outline:hover { background: #fff; color: #000; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.icon { font-size: 12px; }

.hero { height: min(74vh, 760px); min-height: 570px; position: relative; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    background-image: var(--hero-cover);
    background-size: cover; background-position: center;
    transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, #050505 0%, rgba(5,5,5,.9) 28%, rgba(5,5,5,.25) 64%, rgba(5,5,5,.32) 100%),
        linear-gradient(to top, #050505 0%, transparent 35%);
}
.hero-content {
    position: absolute; left: 6%; top: 50%; transform: translateY(-46%);
    width: min(560px, 46vw); z-index: 2;
}
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .2em;
    font-size: 11px; font-weight: 800; color: #fff; margin-bottom: 13px;
}
.hero h1, .page-hero h1 {
    font-size: clamp(42px, 6vw, 88px); line-height: .92; letter-spacing: -.055em;
    margin: 0 0 20px; text-transform: uppercase;
}
.hero p { color: var(--soft); max-width: 540px; line-height: 1.65; font-size: 17px; }
.meta-line { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.meta-line span + span::before { content: "•"; margin-right: 18px; }
.hero-actions, .modal-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-dots {
    position: absolute; z-index: 3; left: 50%; bottom: 38px; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.42); }
.hero-dots button.is-active { width: 28px; background: #fff; }
.empty-hero { background: radial-gradient(circle at 70% 30%, #292929, #050505 55%); }

.content-section { padding: 0 4% 70px; margin-top: -55px; position: relative; z-index: 5; }
.shelf { margin-bottom: 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.text-link { color: var(--muted); font-size: 13px; }
.text-link:hover { color: #fff; }
.card-grid-five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.class-card {
    appearance: none; border: 0; padding: 0; background: transparent; text-align: left;
    cursor: pointer; min-width: 0;
}
.thumb-wrap {
    display: block; position: relative; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden;
    background: #151515; border: 1px solid var(--line); transition: .25s ease;
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent 55%); opacity: .55; }
.play-badge {
    position: absolute; inset: auto auto 12px 12px; width: 34px; height: 34px;
    display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000;
    opacity: 0; transform: translateY(6px); transition: .2s ease; font-size: 11px;
}
.class-card:hover .thumb-wrap { transform: scale(1.025); border-color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.class-card:hover .thumb-wrap img { transform: scale(1.05); }
.class-card:hover .play-badge { opacity: 1; transform: translateY(0); }
.card-copy { display: block; padding: 10px 3px 0; }
.card-copy strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-copy small { display: block; color: var(--muted); margin-top: 4px; }

.inner-page { padding-top: 74px; }
.inner-page .topbar { position: fixed; }
.page-hero { padding: 80px 5% 40px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #171717, #050505 55%); }
.page-hero h1 { font-size: clamp(42px, 5vw, 74px); }
.page-hero p { color: var(--muted); max-width: 650px; font-size: 16px; }
.catalog-section { padding: 34px 5% 70px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.select-control {
    background: #0d0d0d; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 36px 10px 12px;
}
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px 13px; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.community-card { min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d0d0d; }
.empty-state { padding: 70px 30px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

.modal {
    position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 22px;
}
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(9px); }
.modal-dialog {
    position: relative; z-index: 2; width: min(920px, 96vw); max-height: 92vh; overflow: auto;
    background: #0c0c0c; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow);
}
.modal-wide { overflow: hidden; }
.modal-small { width: min(480px, 94vw); padding: 42px; text-align: center; }
.modal-video { width: min(1100px, 96vw); background: #000; overflow: hidden; }
.modal-close{
    position:absolute;
    top:13px;
    right:14px;
    z-index:5;

    width:38px;
    height:38px;
    padding:0;

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

    appearance:none;
    border:1px solid rgba(255,255,255,.28);
    border-radius:50%;
    background:rgba(0,0,0,.66);

    color:#fff;
    font-size:18px;
    line-height:1;

    cursor:pointer;
}

.modal-media{
    position:relative;
    height:430px;
    overflow:hidden;
    background:none !important;
}

.video-background{
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
}

.video-background iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:120vw;
    height:67.5vw;
    min-width:100%;
    min-height:100%;
    transform:translate(-50%,-50%);
    border:0;
    opacity:1;
}

.media-gradient{
    position:absolute;
    inset:0;
    background:
        linear-gradient(to top,#0c0c0c 0%,rgba(12,12,12,.2) 45%,rgba(12,12,12,.15) 100%);
}

.round-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 64px; height: 64px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.55);
}
.modal-body { padding: 0 34px 34px; margin-top: -40px; position: relative; z-index: 2; }
.modal-body h2 { font-size: 36px; margin: 0 0 10px; }
.modal-body p { color: var(--soft); line-height: 1.7; max-width: 720px; }
.access-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; font-size: 24px; }
.centered { justify-content: center; }
.responsive-video { aspect-ratio: 16/9; }
.responsive-video iframe { width: 100%; height: 100%; border: 0; }
.modal-open { overflow: hidden; }

.auth-page { min-height: 100vh; overflow-x: hidden; background: #000; }
.auth-backdrop {
    position: fixed; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.35), rgba(0,0,0,.9)),
        radial-gradient(circle at 50% 40%, #333, #050505 60%);
}
.auth-shell {
    min-height: 100vh; position: relative; z-index: 1; display: grid;
    grid-template-columns: 1.15fr .85fr; max-width: 1180px; margin: 0 auto; align-items: center; padding: 0px;
}
.auth-brand-panel { padding: 10px; }
.auth-brand-panel img { width: 280px; margin-bottom: -50px; }
.auth-brand-panel h1 { font-size: clamp(45px, 5vw, 83px); line-height: .92; letter-spacing: -.055em; text-transform: uppercase; max-width: 650px; margin: 0 0 20px; }
.auth-brand-panel p { color: var(--muted); font-size: 18px; }
.auth-card {
    position: relative; padding: 50px; background: rgba(255,255,255,.97); color: #000;
    border-radius: 18px; box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 36px; margin: 0 0 6px; }
.auth-close { position: absolute; right: 22px; top: 14px; font-size: 30px; }
.muted { color: #666; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-form label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.auth-form input {
    width: 100%; min-height: 48px; border-radius: 8px; border: 1px solid #c8c8c8; padding: 0 13px; background: #fff; color: #000;
}
.auth-help { color: #666; font-size: 13px; text-align: center; margin-top: 22px; }
.alert { background: #111; color: #fff; padding: 12px 14px; border-radius: 8px; margin-top: 18px; }

@media (max-width: 1100px) {
    .card-grid-five, .catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .hero-content { width: 60vw; }
}
@media (max-width: 820px) {
    :root { --sidebar: 0px; }
    .sidebar { transform: translateX(-100%); width: 250px; transition: .25s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .app-main { margin-left: 0; }
    .topbar { left: 0; padding: 0 18px 0 70px; }
    .hero { min-height: 620px; }
    .hero-content { left: 7%; width: 86vw; top: 54%; }
    .hero h1 { font-size: 54px; }
    .content-section { padding-inline: 18px; }
    .card-grid-five, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .auth-shell { grid-template-columns: 1fr; padding: 20px; }
    .auth-brand-panel { padding: 90px 10px 30px; }
    .auth-brand-panel img { margin-bottom: 40px; }
}
@media (max-width: 520px) {
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 15px; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 20px; }
    .card-grid-five, .catalog-grid { grid-template-columns: 1fr; }
    .modal { padding: 10px; }
    .modal-media { height: 260px; }
    .modal-body { padding: 0 20px 24px; }
    .modal-body h2 { font-size: 28px; }
    .auth-card { padding: 38px 24px; }
    .auth-brand-panel h1 { font-size: 48px; }
}


.side-nav .nav-icon{
    width:15px !important;
    min-width:15px !important;
    height:15px !important;
}

.side-nav .nav-icon svg,
.side-nav .nav-icon svg.lucide{
    width:14px !important;
    height:14px !important;
    min-width:14px !important;
    min-height:14px !important;
    max-width:14px !important;
    max-height:14px !important;
}