@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
--bg: #090914;
--bg2: #111120;
--surface: #171729;
--surface2: #202039;
--text: #f6f4ff;
--muted: #9695ad;
--purple: #a78bfa;
--purple2: #7954ed;
--pink: #f0abfc;
--line: rgba(255,255,255,.09);
--green: #55e6ad;
--red: #ff7777;
--shadow: 0 20px 70px rgba(0,0,0,.4);
}

- {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: 90px;
}

body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}

body.light {
--bg: #f5f3ff;
--bg2: #fff;
--surface: #fff;
--surface2: #ece8fa;
--text: #171326;
--muted: #77718d;
--line: rgba(0,0,0,.1);
--shadow: 0 20px 70px rgba(50,30,90,.12);
}

button,
input,
textarea,
select {
font: inherit;
}

button {
cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline: 2px solid var(--purple);
outline-offset: 3px;
}

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

button:disabled {
opacity: .5;
cursor: not-allowed;
}

.hidden {
display: none !important;
}

.wrap {
width: min(1160px, calc(100% - 48px));
margin: auto;
}

.ambient {
position: fixed;
width: 450px;
height: 450px;
border-radius: 50%;
filter: blur(120px);
opacity: .13;
pointer-events: none;
z-index: -1;
}

.ambient-a {
background: #8b5cf6;
top: -200px;
left: -150px;
}

.ambient-b {
background: #ec4899;
right: -200px;
top: 500px;
}

/* HEADER */

.topbar {
height: 76px;
padding: 0 5%;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
background: rgba(9,9,20,.85);
backdrop-filter: blur(20px);
position: sticky;
top: 0;
z-index: 100;
}

body.light .topbar {
background: rgba(245,243,255,.9);
}

.brand {
display: flex;
align-items: center;
gap: 11px;
font-family: 'Space Grotesk', sans-serif;
font-size: 19px;
font-weight: 700;
letter-spacing: -.7px;
}

.brand b {
color: var(--purple);
}

.brand-mark {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border-radius: 12px;
background: linear-gradient(135deg,#a78bfa,#7045dc);
color: white;
font-size: 23px;
box-shadow: 0 5px 20px rgba(139,92,246,.3);
}

.desktop-nav {
display: flex;
align-items: center;
gap: 32px;
}

.desktop-nav a {
color: var(--muted);
font-size: 13px;
font-weight: 600;
transition: .2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
color: var(--text);
}

.top-actions {
display: flex;
align-items: center;
gap: 12px;
}

.icon-btn,
.admin-open {
border: 1px solid var(--line);
color: var(--text);
background: var(--surface);
border-radius: 12px;
padding: 10px 14px;
font-weight: 700;
}

.icon-btn {
font-size: 19px;
}

.admin-open {
background: var(--purple2);
border-color: transparent;
color: white;
font-size: 12px;
}

.admin-open:hover {
background: var(--purple);
}

.lock {
margin-right: 5px;
}

/* HERO */

.hero {
min-height: 570px;
display: grid;
grid-template-columns: 1.1fr .9fr;
align-items: center;
gap: 40px;
padding-top: 55px;
padding-bottom: 70px;
}

.eyebrow {
color: var(--purple);
font-size: 10px;
letter-spacing: 2px;
font-weight: 800;
display: flex;
align-items: center;
gap: 9px;
}

.pulse,
.live-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 12px var(--green);
}

.hero h1 {
font-family: 'Space Grotesk', sans-serif;
font-size: clamp(45px,6vw,76px);
line-height: 1.02;
letter-spacing: -4px;
margin-top: 25px;
}

.hero h1 span,
.section-heading h2 span,
.popular-strip h2 span,
.admin-header h2 span,
.login-dialog h2 span {
background: linear-gradient(100deg,var(--purple),var(--pink));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.hero-text {
color: var(--muted);
line-height: 1.8;
max-width: 460px;
margin-top: 24px;
font-size: 14px;
}

.hero-actions {
display: flex;
gap: 13px;
margin-top: 32px;
flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.outline-btn {
border-radius: 12px;
padding: 14px 20px;
font-weight: 800;
font-size: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 14px;
transition: .2s;
}

.primary-btn {
border: 0;
background: linear-gradient(120deg,#8b5cf6,#a78bfa);
color: white;
box-shadow: 0 8px 25px rgba(139,92,246,.2);
}

.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px rgba(139,92,246,.3);
}

.ghost-btn,
.outline-btn {
color: var(--text);
background: var(--surface);
border: 1px solid var(--line);
}

.ghost-btn:hover,
.outline-btn:hover {
border-color: var(--purple);
}

.hero-stats {
display: flex;
align-items: center;
gap: 27px;
margin-top: 52px;
}

.hero-stats div {
display: flex;
flex-direction: column;
gap: 4px;
}

.hero-stats b {
font-family: 'Space Grotesk', sans-serif;
font-size: 23px;
}

.hero-stats span {
font-size: 9px;
letter-spacing: 1.4px;
color: var(--muted);
font-weight: 700;
}

.hero-stats i {
height: 30px;
width: 1px;
background: var(--line);
}

/* HERO ART */

.hero-art {
position: relative;
height: 430px;
display: grid;
place-items: center;
}

.orbit {
position: absolute;
border: 1px solid rgba(167,139,250,.22);
border-radius: 50%;
transform: rotate(-20deg);
}

.orbit-one {
width: 340px;
height: 340px;
}

.orbit-two {
width: 440px;
height: 230px;
transform: rotate(45deg);
}

.hero-core {
width: 230px;
height: 230px;
border-radius: 50%;
position: relative;
background: radial-gradient(circle at 35% 25%,#c4b5fd,#7954ed 45%,#21133f);
box-shadow: 0 0 80px rgba(139,92,246,.4), inset 0 0 50px rgba(255,255,255,.2);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2;
overflow: hidden;
}

.core-shine {
position: absolute;
width: 180px;
height: 70px;
top: 35px;
background: rgba(255,255,255,.18);
filter: blur(30px);
}

.hero-core > span {
font-family: 'Space Grotesk',sans-serif;
font-size: 48px;
font-weight: 800;
color: white;
}

.hero-core small {
letter-spacing: 4px;
color: rgba(255,255,255,.75);
font-size: 9px;
}

.core-play {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255,255,255,.2);
border: 1px solid rgba(255,255,255,.5);
display: grid;
place-items: center;
color: white;
margin-top: 18px;
}

.float-tag {
position: absolute;
z-index: 3;
padding: 11px 15px;
border-radius: 10px;
background: var(--surface);
border: 1px solid var(--line);
box-shadow: var(--shadow);
font-size: 9px;
letter-spacing: 1px;
font-weight: 800;
}

.tag-one {
top: 70px;
right: 0;
}

.tag-two {
bottom: 70px;
left: 0;
color: var(--green);
}

/* LIBRARY */

.toolbar-section {
padding-top: 45px;
padding-bottom: 85px;
}

.section-heading {
display: flex;
justify-content: space-between;
align-items: end;
margin-bottom: 30px;
}

.section-heading h2,
.popular-strip h2 {
font-family: 'Space Grotesk',sans-serif;
font-size: clamp(30px,4vw,43px);
letter-spacing: -1.5px;
margin-top: 9px;
}

.view-label {
display: flex;
align-items: center;
gap: 9px;
color: var(--muted);
font-size: 9px;
letter-spacing: 1.3px;
font-weight: 800;
}

.toolbar {
display: flex;
gap: 12px;
margin-bottom: 22px;
}

.searchbox {
height: 50px;
flex: 1;
display: flex;
align-items: center;
gap: 12px;
padding: 0 17px;
border: 1px solid var(--line);
background: var(--surface);
border-radius: 12px;
}

.searchbox span {
color: var(--purple);
font-size: 23px;
}

.searchbox input {
background: transparent;
border: 0;
outline: none;
color: var(--text);
width: 100%;
font-size: 12px;
}

.toolbar select,
.category-form input {
min-width: 165px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--text);
border-radius: 12px;
padding: 0 14px;
outline: none;
font-size: 12px;
}

.category-row {
display: flex;
flex-wrap: wrap;
gap: 9px;
margin-bottom: 24px;
}

.chip {
background: var(--surface);
border: 1px solid var(--line);
color: var(--muted);
border-radius: 50px;
padding: 9px 16px;
font-size: 11px;
font-weight: 700;
}

.chip.active,
.chip:hover {
color: white;
border-color: var(--purple);
background: var(--purple2);
}

.result-line {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
color: var(--muted);
font-size: 11px;
}

.text-btn {
border: 0;
background: transparent;
color: var(--purple);
font-size: 11px;
font-weight: 800;
cursor: pointer;
}

.video-grid {
display: grid;
grid-template-columns: repeat(3,minmax(0,1fr));
gap: 22px;
}

.video-card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 17px;
overflow: hidden;
cursor: pointer;
transition: .25s;
}

.video-card:hover {
transform: translateY(-5px);
border-color: rgba(167,139,250,.55);
box-shadow: var(--shadow);
}

.thumb-wrap {
height: 205px;
position: relative;
background: var(--surface2);
overflow: hidden;
}

.thumb-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
transition: .4s;
}

.video-card:hover .thumb-wrap img {
transform: scale(1.06);
}

.thumb-placeholder {
height: 100%;
display: grid;
place-items: center;
color: var(--purple);
font-family: 'Space Grotesk',sans-serif;
font-size: 32px;
background: linear-gradient(135deg,#21143d,#151528);
}

.card-category {
position: absolute;
top: 12px;
left: 12px;
padding: 7px 10px;
background: rgba(10,10,20,.75);
border-radius: 7px;
color: white;
font-size: 9px;
font-weight: 800;
}

.bookmark {
position: absolute;
top: 10px;
right: 10px;
width: 34px;
height: 34px;
border: 0;
border-radius: 50%;
background: rgba(10,10,20,.75);
color: white;
font-size: 21px;
}

.bookmark.saved {
color: #fb7185;
}

.play-overlay {
position: absolute;
inset: 0;
display: grid;
place-items: center;
opacity: 0;
transition: .2s;
background: rgba(0,0,0,.2);
}

.video-card:hover .play-overlay {
opacity: 1;
}

.play-overlay span {
width: 53px;
height: 53px;
display: grid;
place-items: center;
border-radius: 50%;
color: white;
background: rgba(139,92,246,.9);
}

.card-body {
padding: 17px;
}

.card-title {
font-size: 15px;
font-weight: 800;
line-height: 1.4;
}

.card-caption {
color: var(--muted);
font-size: 11px;
line-height: 1.6;
margin-top: 7px;
min-height: 35px;
}

.card-meta {
border-top: 1px solid var(--line);
padding-top: 13px;
margin-top: 14px;
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 9px;
}

/* EMPTY */

.empty-state {
padding: 65px 15px;
text-align: center;
}

.empty-icon {
font-size: 45px;
color: var(--purple);
}

.empty-state h3 {
margin: 12px 0 7px;
}

.empty-state p {
color: var(--muted);
font-size: 12px;
}

/* FAVORITES */

.popular-strip {
padding: 30px;
margin-bottom: 80px;
border: 1px solid var(--line);
background: linear-gradient(110deg,var(--surface),var(--bg2));
border-radius: 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}

.popular-strip p {
color: var(--muted);
font-size: 12px;
margin-top: 9px;
}

/* FOOTER */

.footer {
border-top: 1px solid var(--line);
padding: 27px 5%;
display: flex;
justify-content: space-between;
align-items: center;
color: var(--muted);
font-size: 10px;
}

.small-brand {
font-size: 15px;
}

.small-brand .brand-mark {
width: 30px;
height: 30px;
font-size: 17px;
}

.footer b {
color: var(--purple);
}

/* MODALS */

.modal-backdrop {
position: fixed;
inset: 0;
z-index: 500;
background: rgba(0,0,0,.78);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
overflow-y: auto;
}

.close-btn {
width: 38px;
height: 38px;
border-radius: 50%;
border: 1px solid var(--line);
background: var(--surface2);
color: var(--text);
font-size: 25px;
display: grid;
place-items: center;
z-index: 5;
}

.close-btn:hover {
border-color: var(--purple);
color: var(--purple);
}

/* VIDEO MODAL */

.video-dialog {
width: min(900px,100%);
max-height: 94vh;
overflow-y: auto;
position: relative;
background: var(--bg2);
border: 1px solid var(--line);
border-radius: 18px;
box-shadow: var(--shadow);
}

.video-dialog > .close-btn {
position: sticky;
float: right;
top: 12px;
margin: 12px 12px -50px 0;
}

.player-wrap {
background: #000;
width: 100%;
}

.player-wrap video {
display: block;
width: 100%;
max-height: 500px;
aspect-ratio: 16/9;
background: black;
}

.video-detail-body {
padding: 25px;
}

.detail-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}

.detail-top h2 {
font-family: 'Space Grotesk',sans-serif;
font-size: 25px;
margin-top: 8px;
}

.favorite-btn {
background: var(--surface);
border: 1px solid var(--line);
color: var(--text);
border-radius: 10px;
padding: 10px 14px;
white-space: nowrap;
font-size: 12px;
}

.favorite-btn.saved {
color: #fb7185;
}

.detail-caption {
color: var(--muted);
font-size: 13px;
margin-top: 13px;
}

.detail-description {
margin-top: 25px;
padding: 18px;
border-radius: 12px;
background: var(--surface);
}

.detail-description h3,
.comments-heading h3 {
font-size: 14px;
margin-bottom: 10px;
}

.detail-description p {
color: var(--muted);
font-size: 12px;
line-height: 1.8;
}

/* COMMENTS */

.comments-area {
margin-top: 25px;
}

.comments-heading {
display: flex;
align-items: center;
justify-content: space-between;
}

.comments-heading span {
color: var(--muted);
font-size: 10px;
}

.comment-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.comment-item {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 10px;
padding: 13px;
}

.comment-item b {
font-size: 11px;
color: var(--purple);
}

.comment-item p {
font-size: 12px;
margin: 7px 0;
line-height: 1.6;
}

.comment-item small {
color: var(--muted);
font-size: 9px;
}

.no-comments {
color: var(--muted);
font-size: 11px;
padding: 15px 0;
}

.admin-comment-entry {
display: flex;
gap: 10px;
margin-top: 15px;
}

.admin-comment-entry textarea {
flex: 1;
min-height: 45px;
}

/* LOGIN */

.login-dialog {
width: min(420px,100%);
padding: 35px;
background: var(--bg2);
border: 1px solid var(--line);
border-radius: 20px;
position: relative;
box-shadow: var(--shadow);
}

.login-dialog > .close-btn {
position: absolute;
top: 15px;
right: 15px;
}

.login-symbol {
width: 54px;
height: 54px;
border-radius: 16px;
background: linear-gradient(135deg,#a78bfa,#7045dc);
display: grid;
place-items: center;
font-size: 27px;
font-weight: 800;
margin-bottom: 25px;
color: white;
}

.login-symbol span {
font-size: 12px;
}

.login-dialog h2 {
font-family: 'Space Grotesk',sans-serif;
font-size: 34px;
margin-top: 10px;
}

.login-dialog > p {
color: var(--muted);
font-size: 12px;
line-height: 1.7;
margin: 10px 0 25px;
}

.login-dialog form {
display: flex;
flex-direction: column;
gap: 16px;
}

.login-dialog label,
.editor-panel label {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 11px;
font-weight: 700;
}

.login-dialog input,
.editor-panel input,
.editor-panel textarea,
.editor-panel select,
.admin-tools input,
.admin-tools select,
.category-form input,
.admin-comment-entry textarea {
width: 100%;
background: var(--surface);
color: var(--text);
border: 1px solid var(--line);
border-radius: 10px;
padding: 12px;
outline: none;
font-size: 12px;
}

.login-dialog input:focus,
.editor-panel input:focus,
.editor-panel textarea:focus,
.editor-panel select:focus {
border-color: var(--purple);
}

.full-btn {
width: 100%;
margin-top: 5px;
}

.form-message {
min-height: 20px;
margin-top: 10px;
color: var(--red);
font-size: 11px;
line-height: 1.6;
}

.form-message.success {
color: var(--green);
}

.secure-note {
border-top: 1px solid var(--line);
padding-top: 16px;
margin-top: 20px;
text-align: center;
font-size: 9px;
color: var(--muted);
}

/* ADMIN DASHBOARD */

.admin-dialog {
width: min(1120px,100%);
max-height: 94vh;
overflow-y: auto;
background: var(--bg2);
border: 1px solid var(--line);
border-radius: 19px;
padding: 27px;
box-shadow: var(--shadow);
}

.admin-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
border-bottom: 1px solid var(--line);
padding-bottom: 22px;
}

.admin-header h2 {
font-family: 'Space Grotesk',sans-serif;
font-size: 29px;
margin-top: 7px;
}

.admin-head-actions {
display: flex;
align-items: center;
gap: 14px;
}

.admin-status {
color: var(--green);
font-size: 9px;
letter-spacing: 1px;
font-weight: 800;
display: flex;
align-items: center;
gap: 8px;
}

.admin-status i {
height: 7px;
width: 7px;
border-radius: 50%;
background: var(--green);
}

.inline-close {
position: static;
}

.admin-tabs {
display: flex;
gap: 8px;
padding: 20px 0;
border-bottom: 1px solid var(--line);
overflow-x: auto;
}

.tab-btn {
border: 1px solid var(--line);
background: var(--surface);
color: var(--muted);
border-radius: 9px;
padding: 11px 16px;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}

.tab-btn.active {
background: var(--purple2);
border-color: var(--purple2);
color: white;
}

.admin-content {
padding-top: 23px;
}

.admin-columns {
display: grid;
grid-template-columns: .9fr 1.1fr;
gap: 22px;
}

.editor-panel,
.manager-panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 14px;
padding: 20px;
min-width: 0;
}

.panel-title {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 19px;
}

.panel-title h3 {
font-size: 14px;
}

.panel-title span {
font-size: 9px;
color: var(--muted);
}

.editor-panel {
display: flex;
flex-direction: column;
gap: 15px;
}

.editor-panel small {
font-size: 9px;
font-weight: 400;
color: var(--muted);
}

.editor-panel input[type="file"] {
padding: 9px;
}

.editor-panel textarea {
resize: vertical;
min-height: 80px;
}

.form-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.compact {
padding: 11px 15px;
}

.preview-box {
display: flex;
flex-direction: column;
gap: 10px;
background: var(--surface2);
padding: 10px;
border-radius: 10px;
}

.preview-box video,
.preview-box img {
max-width: 100%;
max-height: 230px;
object-fit: contain;
border-radius: 8px;
}

/* ADMIN VIDEO LIST */

.admin-tools {
display: flex;
gap: 9px;
margin-bottom: 16px;
}

.admin-tools input {
min-width: 0;
flex: 1;
}

.admin-tools select {
width: 125px;
}

.admin-video-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.admin-video-row {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 11px;
background: var(--bg2);
min-width: 0;
}

.admin-video-row > img {
width: 65px;
height: 48px;
object-fit: cover;
border-radius: 7px;
background: var(--surface2);
flex-shrink: 0;
}

.admin-video-row > div:nth-child(2) {
flex: 1;
min-width: 0;
}

.admin-video-row b {
display: block;
font-size: 11px;
overflow-wrap: anywhere;
}

.admin-video-row small {
display: block;
color: var(--muted);
font-size: 9px;
margin-top: 5px;
}

.row-actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}

.row-actions button,
.admin-category-row button {
border: 1px solid var(--line);
background: var(--surface);
color: var(--text);
padding: 7px 9px;
border-radius: 7px;
font-size: 9px;
font-weight: 700;
}

.row-actions button:hover,
.admin-category-row button:hover {
border-color: var(--purple);
}

.row-actions .delete-btn {
color: var(--red);
}

/* CATEGORIES */

.category-form {
display: flex;
gap: 12px;
max-width: 550px;
margin-bottom: 22px;
}

.category-form input {
flex: 1;
min-width: 0;
}

.admin-category-list {
display: grid;
grid-template-columns: repeat(2,minmax(0,1fr));
gap: 10px;
}

.admin-category-row {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 10px;
padding: 13px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
font-size: 12px;
}

/* STATISTICS */

.stats-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 15px;
}

.stat-card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 13px;
padding: 23px;
display: flex;
flex-direction: column;
gap: 12px;
}

.stat-card span {
color: var(--muted);
font-size: 11px;
}

.stat-card b {
font-family: 'Space Grotesk',sans-serif;
font-size: 30px;
color: var(--purple);
}

.stats-title {
font-size: 15px;
margin: 30px 0 15px;
}

.top-videos {
display: flex;
flex-direction: column;
gap: 9px;
}

.top-video-row {
display: flex;
justify-content: space-between;
gap: 15px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 9px;
padding: 14px;
font-size: 11px;
}

.top-video-row span {
color: var(--purple);
white-space: nowrap;
}

.muted {
color: var(--muted);
font-size: 11px;
padding: 15px 0;
}

/* TOAST */

.toast {
position: fixed;
z-index: 1000;
left: 50%;
bottom: 25px;
transform: translateX(-50%);
padding: 13px 20px;
background: var(--surface2);
border: 1px solid var(--line);
color: var(--text);
border-radius: 12px;
font-size: 12px;
box-shadow: var(--shadow);
max-width: calc(100% - 30px);
text-align: center;
}

/* LOADER */

.global-loader {
position: fixed;
inset: 0;
z-index: 1200;
background: rgba(0,0,0,.75);
backdrop-filter: blur(7px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 15px;
color: white;
font-size: 12px;
}

.loader {
width: 35px;
height: 35px;
border: 3px solid rgba(167,139,250,.2);
border-top-color: var(--purple);
border-radius: 50%;
animation: spin .8s linear infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {

.hero {
min-height: 500px;
gap: 15px;
}

.hero-art {
transform: scale(.8);
}

.video-grid {
grid-template-columns: repeat(2,minmax(0,1fr));
}

.admin-columns {
grid-template-columns: 1fr;
}

}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {

.wrap {
width: calc(100% - 30px);
}

.topbar {
height: 65px;
padding: 0 15px;
}

.brand {
font-size: 15px;
gap: 8px;
}

.brand-mark {
width: 32px;
height: 32px;
border-radius: 9px;
}

/* Navigasi hamburger tidak digunakan */
.desktop-nav {
display: none !important;
}

.top-actions {
gap: 7px;
}

.icon-btn {
padding: 8px 11px;
}

.admin-open {
padding: 9px 11px;
font-size: 10px;
}

.hero {
grid-template-columns: 1fr;
padding-top: 65px;
padding-bottom: 35px;
gap: 0;
}

.hero h1 {
font-size: 53px;
letter-spacing: -3px;
}

.hero-text {
font-size: 12px;
}

.hero-stats {
gap: 18px;
margin-top: 35px;
}

.hero-stats b {
font-size: 19px;
}

.hero-stats span {
font-size: 8px;
}

.hero-art {
height: 300px;
transform: scale(.76);
margin-top: -5px;
}

.toolbar-section {
padding-top: 35px;
padding-bottom: 55px;
}

.section-heading {
align-items: flex-start;
flex-direction: column;
gap: 13px;
}

.section-heading h2,
.popular-strip h2 {
font-size: 34px;
}

.toolbar {
flex-direction: column;
}

.searchbox {
min-height: 48px;
}

.toolbar select {
min-height: 45px;
width: 100%;
}

.category-row {
flex-wrap: nowrap;
overflow-x: auto;
padding-bottom: 7px;
}

.chip {
flex-shrink: 0;
}

.video-grid {
grid-template-columns: repeat(2,minmax(0,1fr));
gap: 11px;
}

.thumb-wrap {
height: 130px;
}

.card-body {
padding: 11px;
}

.card-title {
font-size: 12px;
}

.card-caption {
font-size: 10px;
min-height: 32px;
}

.card-meta {
font-size: 8px;
gap: 4px;
}

.popular-strip {
padding: 21px;
flex-direction: column;
align-items: flex-start;
}

.footer {
padding: 23px 15px;
gap: 13px;
flex-wrap: wrap;
}

/* MODALS MOBILE */

.modal-backdrop {
padding: 8px;
align-items: flex-end;
}

.video-dialog,
.admin-dialog,
.login-dialog {
width: 100%;
max-height: 95vh;
border-radius: 17px 17px 10px 10px;
}

.video-dialog {
max-height: 94vh;
}

.video-dialog > .close-btn {
margin: 9px 9px -45px 0;
}

.player-wrap video {
max-height: 280px;
}

.video-detail-body {
padding: 17px;
}

.detail-top {
flex-direction: column;
gap: 12px;
}

.detail-top h2 {
font-size: 21px;
}

.admin-comment-entry {
flex-direction: column;
}

.admin-comment-entry .primary-btn {
width: 100%;
}

.login-dialog {
padding: 25px;
}

/* ADMIN MOBILE */

.admin-dialog {
padding: 17px;
}

.admin-header {
align-items: flex-start;
}

.admin-header h2 {
font-size: 22px;
}

.admin-head-actions {
gap: 7px;
}

.admin-status {
font-size: 7px;
}

.admin-tabs {
gap: 6px;
padding: 14px 0;
}

.tab-btn {
padding: 10px 12px;
font-size: 9px;
}

.admin-content {
padding-top: 15px;
}

.editor-panel,
.manager-panel {
padding: 13px;
}

.admin-video-row {
flex-wrap: wrap;
}

.admin-video-row > div:nth-child(2) {
flex: 1;
}

.row-actions {
width: 100%;
padding-left: 0;
}

.row-actions button {
flex: 1;
}

.admin-tools {
flex-direction: column;
}

.admin-tools select {
width: 100%;
min-height: 42px;
}

.category-form {
flex-direction: column;
}

.category-form input {
min-height: 43px;
}

.admin-category-list {
grid-template-columns: 1fr;
}

.stats-grid {
grid-template-columns: 1fr;
}

.stat-card {
padding: 17px;
}

.stat-card b {
font-size: 25px;
}

.top-video-row {
font-size: 10px;
}

}

/* SMALL MOBILE */

@media (max-width: 370px) {

.video-grid {
grid-template-columns: 1fr;
}

.thumb-wrap {
height: 185px;
}

.hero h1 {
font-size: 45px;
}

.hero-stats {
gap: 12px;
}

.hero-stats b {
font-size: 17px;
}

}
