:root {
	--hb-bg: #0b0e14;
	--hb-bg-soft: #0d1117;
	--hb-panel: rgba(22, 27, 34, 0.66);
	--hb-panel-strong: rgba(22, 27, 34, 0.95);
	--hb-panel-soft: rgba(22, 27, 34, 0.26);
	--hb-panel-glass: rgba(22, 27, 34, 0.72);
	--hb-header-glass: rgba(11, 14, 20, 0.78);
	--hb-border: #30363d;
	--hb-border-soft: rgba(148, 163, 184, 0.14);
	--hb-border-blue: rgba(59, 130, 246, 0.55);
	--hb-text: #e2e8f0;
	--hb-text-strong: #f8fafc;
	--hb-muted: #94a3b8;
	--hb-faint: #64748b;
	--hb-blue-dark: #215075;
	--hb-blue: #3b82f6;
	--hb-cyan: #0ea5e9;
	--hb-green: #38d16a;
	--hb-red: #ff5c73;
	--hb-orange: #fdba74;
	--hb-yellow: #facc15;
	--hb-purple: #a78bfa;
	--hb-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	--hb-shadow-strong: 0 18px 50px rgba(0, 0, 0, 0.35);
	--hb-radius-lg: 1rem;
	--hb-radius-xl: 1.35rem;
	--hb-sidebar-width: 17.5rem;
}

html[data-app-theme="light"] {
	--hb-bg: #f6f8fb;
	--hb-bg-soft: #ffffff;
	--hb-panel: rgba(255, 255, 255, 0.78);
	--hb-panel-strong: rgba(255, 255, 255, 0.95);
	--hb-panel-soft: rgba(255, 255, 255, 0.52);
	--hb-panel-glass: rgba(255, 255, 255, 0.76);
	--hb-header-glass: rgba(255, 255, 255, 0.78);
	--hb-border: rgba(15, 23, 42, 0.12);
	--hb-border-soft: rgba(15, 23, 42, 0.1);
	--hb-text: #0f172a;
	--hb-text-strong: #020617;
	--hb-muted: #475569;
	--hb-faint: #64748b;
	--hb-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
	--hb-shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.12);
}

html,
body,
button,
input,
select,
textarea {
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-body {
	min-height: 100vh;
	color: var(--bs-body-color);
	background:
		radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 34rem),
		radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 32rem),
		var(--hb-bg);
}

html[data-app-theme="light"] .app-body {
	background:
		radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34rem),
		radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 32rem),
		var(--hb-bg);
}

.app-top-glow {
	position: fixed;
	inset: 0 0 auto 0;
	height: 18rem;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), transparent 55%);
	pointer-events: none;
	z-index: -1;
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(15, 23, 42, 0.7);
	z-index: 3000;
}

.scroll-progress-bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, var(--hb-blue-dark), var(--hb-cyan));
	box-shadow: 0 0 14px rgba(14, 165, 233, 0.65);
	transition: width 0.08s linear;
}

.app-shell {
	display: block;
	padding-top: 1rem;
	padding-bottom: 2rem;
}

.app-shell.has-sidebar {
	display: grid;
	grid-template-columns: var(--hb-sidebar-width) minmax(0, 1fr);
	align-items: start;
	gap: 1rem;
}

.app-main {
	min-width: 0;
	display: grid;
	gap: 1rem;
}

.app-topbar {
	position: sticky;
	top: 1rem;
	z-index: 1040;
	border: 1px solid var(--hb-border-soft);
	border-radius: var(--hb-radius-xl);
	background: var(--hb-header-glass);
	box-shadow: var(--hb-shadow);
	overflow: visible;
}

.app-topbar::before {
	content: "";
	position: absolute;
	inset: 0 1.25rem auto 1.25rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.48), transparent);
	pointer-events: none;
}

.app-topbar-inner {
	display: grid;
	grid-template-columns: auto minmax(18rem, 32rem) auto;
	align-items: center;
	gap: 1rem;
	min-height: 4.15rem;
	padding: 0.78rem 0.85rem;
}

.topbar-left {
	display: flex;
	align-items: center;
	min-width: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	min-width: 0;
}

.header-icon-btn {
	width: 2.45rem;
	height: 2.45rem;
	display: grid;
	place-items: center;
	position: relative;
	border: 1px solid var(--hb-border);
	border-radius: 999px;
	background: var(--hb-panel-strong);
	color: #cbd5e1;
	text-decoration: none;
	transition: 0.18s ease;
}

.header-icon-btn:hover {
	transform: translateY(-1px);
	background: rgba(59, 130, 246, 0.14);
	border-color: var(--hb-border-blue);
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(59, 130, 246, 0.14);
}

.theme-toggle-btn {
	color: var(--hb-yellow);
}

.header-dot-badge {
	position: absolute;
	top: -0.35rem;
	right: -0.35rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #ef4444;
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 900;
	border: 2px solid var(--hb-bg);
}

.header-search {
	position: relative;
	width: 100%;
	justify-self: center;
}

.header-search-form {
	height: 2.55rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0 0.85rem;
	background: rgba(13, 17, 23, 0.92);
	border: 1px solid var(--hb-border);
	border-radius: 999px;
	transition: 0.18s ease;
}

.header-search-form:focus-within {
	border-color: var(--hb-border-blue);
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.header-search-form i {
	color: var(--hb-faint);
}

.header-search-form input {
	width: 100%;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: 0;
	color: var(--hb-text);
	font-size: 0.9rem;
	font-weight: 650;
}

.header-search-form input::placeholder {
	color: var(--hb-faint);
}

.header-search-shortcut {
	flex: 0 0 auto;
	padding: 0.16rem 0.42rem;
	border: 1px solid var(--hb-border);
	border-radius: 0.5rem;
	color: var(--hb-muted);
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.64rem;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.topbar-user {
	height: 2.45rem;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 14rem;
	padding: 0.25rem 0.65rem 0.25rem 0.25rem;
	border: 1px solid var(--hb-border);
	border-radius: 999px;
	background: var(--hb-panel-strong);
	color: var(--hb-text);
	font-weight: 800;
	transition: 0.18s ease;
}

.topbar-user:hover,
.topbar-user.show {
	transform: translateY(-1px);
	border-color: var(--hb-border-blue);
	background: rgba(59, 130, 246, 0.12);
}

.topbar-avatar {
	width: 1.9rem;
	height: 1.9rem;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 999px;
	background-color: #54a9fe50;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 900;
	overflow: hidden;
}

.topbar-avatar.large {
	width: 2.35rem;
	height: 2.35rem;
}

.topbar-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.topbar-user-text {
	display: grid;
	min-width: 0;
	line-height: 1.06;
	text-align: left;
}

.topbar-user-text span {
	max-width: 7.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--hb-text);
	font-size: 0.86rem;
	font-weight: 900;
}

.topbar-user-text small {
	margin-top: 0.16rem;
	max-width: 7.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--hb-muted);
	font-size: 0.64rem;
	font-weight: 800;
}

.user-menu {
	min-width: 14rem;
	padding: 0.5rem;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: rgba(18, 22, 30, 0.98);
	box-shadow: var(--hb-shadow-strong);
}

html[data-app-theme="light"] .user-menu {
	background: rgba(255, 255, 255, 0.98);
}

.user-menu-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.45rem;
}

.user-menu-head strong {
	display: block;
	color: var(--hb-text-strong);
	font-size: 0.92rem;
	font-weight: 900;
}

.user-menu-head small {
	display: block;
	margin-top: 0.16rem;
	color: var(--hb-muted);
	font-size: 0.74rem;
	font-weight: 750;
}

.user-menu .dropdown-item {
	border-radius: 0.72rem;
	padding: 0.55rem 0.7rem;
	font-size: 0.86rem;
	font-weight: 750;
}

.user-menu .dropdown-item.active,
.user-menu .dropdown-item:active {
	background: rgba(59, 130, 246, 0.18);
	color: var(--hb-text);
}

.dropdown-menu {
	z-index: 1080;
}

.dropdown-menu.show {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.app-sidebar {
	position: sticky;
	top: 1rem;
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 0.85rem;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-xl);
	background: var(--hb-panel);
	box-shadow: var(--hb-shadow);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(96, 165, 250, 0.45) transparent;
}

.app-sidebar::-webkit-scrollbar {
	width: 6px;
}

.app-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
	background: rgba(96, 165, 250, 0.38);
	border-radius: 999px;
}

.sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: var(--hb-text-strong);
	text-decoration: none;
}

.brand-mark:hover {
	color: #ffffff;
}

.brand-icon {
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border: 2px solid var(--hb-blue-dark);
	border-radius: 1rem;
	background: transparent;
	box-shadow: 0 10px 30px rgba(59, 130, 246, 0.22);
	animation: brandBorderPulse 4s ease-in-out infinite;
	overflow: hidden;
}

.brand-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@keyframes brandBorderPulse {
	0%, 100% {
		border-color: var(--hb-blue-dark);
	}

	50% {
		border-color: var(--hb-cyan);
	}
}

.brand-text {
	display: grid;
	min-width: 0;
	line-height: 1.1;
}

.brand-title {
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--hb-text-strong);
}

.brand-subtitle {
	margin-top: 0.25rem;
	color: var(--hb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sidebar-close-btn {
	width: 2.3rem;
	height: 2.3rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--hb-border);
	border-radius: 999px;
	background: var(--hb-panel-strong);
	color: var(--hb-text);
}

.sidebar-search {
	margin-top: -0.2rem;
}

.sidebar-nav {
	display: grid;
	gap: 0.22rem;
}

.sidebar-section-title {
	margin: 0.65rem 0 0.25rem;
	padding: 0 0.55rem;
	color: var(--hb-faint);
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.sidebar-section-title:first-child {
	margin-top: 0;
}

.sidebar-link {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: 1.3rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.52rem;
	min-height: 2.35rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid transparent;
	border-radius: 0.82rem;
	background: transparent;
	color: var(--hb-muted);
	text-align: left;
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 850;
	transition: 0.18s ease;
}

.sidebar-link i {
	width: 1.3rem;
	color: var(--hb-faint);
	text-align: center;
	font-size: 0.88rem;
	transition: 0.18s ease;
}

.sidebar-link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-link em {
	min-width: 1.2rem;
	padding: 0.08rem 0.36rem;
	border-radius: 999px;
	background: var(--hb-blue-dark);
	color: #ffffff;
	font-size: 0.62rem;
	font-style: normal;
	font-weight: 900;
	text-align: center;
}

.sidebar-link:hover {
	color: var(--hb-text-strong);
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.22);
}

.sidebar-link:hover i {
	color: #93c5fd;
}

.sidebar-link.active {
	color: #ffffff;
	background: rgba(59, 130, 246, 0.13);
	border-color: var(--hb-border-blue);
	box-shadow: 0 10px 26px rgba(59, 130, 246, 0.12);
}

.sidebar-link.active::before {
	content: "";
	position: absolute;
	left: -0.85rem;
	top: 0.55rem;
	bottom: 0.55rem;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--hb-blue-dark), var(--hb-cyan));
	box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.sidebar-link.active i {
	color: #bfdbfe;
}

.sidebar-link.staff {
	color: #7dd3fc;
}

.sidebar-link.staff.active,
.sidebar-link.staff:hover {
	color: #e0f2fe;
	background: rgba(14, 165, 233, 0.14);
	border-color: rgba(14, 165, 233, 0.32);
}

.sidebar-link-button {
	cursor: pointer;
}

.sidebar-subnav {
	display: grid;
	gap: 0.15rem;
	padding: 0.25rem 0 0.3rem 2.15rem;
}

.sidebar-subnav a {
	display: block;
	padding: 0.42rem 0.6rem;
	border-radius: 0.7rem;
	color: var(--hb-muted);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 800;
	transition: 0.18s ease;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
	color: var(--hb-text-strong);
	background: rgba(59, 130, 246, 0.1);
}

.sidebar-subnav a.event {
	color: #fbbf24;
}

.sidebar-support-card {
	display: grid;
	gap: 0.65rem;
	margin-top: auto;
	padding: 0.75rem;
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius-lg);
	background: rgba(22, 27, 34, 0.26);
}

.sidebar-support-card strong {
	display: block;
	color: var(--hb-text-strong);
	font-size: 0.88rem;
	font-weight: 900;
}

.sidebar-support-card span {
	display: block;
	margin-top: 0.18rem;
	color: var(--hb-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.support-progress {
	height: 0.42rem;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.16);
}

.support-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--hb-blue-dark), var(--hb-cyan));
	box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

.sidebar-support-card a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.35rem;
	border-radius: 0.75rem;
	background: rgba(59, 130, 246, 0.13);
	border: 1px solid var(--hb-border-blue);
	color: #ffffff;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 900;
}

.hero-dashboard {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.hero-stat-card {
	position: relative;
	min-height: 6.35rem;
	display: grid;
	align-content: center;
	gap: 0.22rem;
	overflow: hidden;
	padding: 1rem 4.2rem 1rem 1rem;
	border: 1px solid var(--hb-border);
	border-radius: 1.18rem;
	background: var(--hb-panel);
	box-shadow: var(--hb-shadow);
	color: var(--hb-text);
	text-decoration: none;
	transition: 0.18s ease;
}

.hero-stat-card::before {
	content: "";
	position: absolute;
	inset: auto -2rem -2.4rem auto;
	width: 6.2rem;
	height: 6.2rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.08);
}

.hero-stat-card:hover {
	transform: translateY(-2px);
	border-color: var(--hb-border-blue);
	color: var(--hb-text);
	background: rgba(22, 27, 34, 0.78);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.hero-stat-card span {
	color: var(--hb-muted);
	font-size: 0.78rem;
	font-weight: 850;
}

.hero-stat-card strong {
	color: var(--hb-text-strong);
	font-size: 1.38rem;
	font-weight: 950;
	letter-spacing: -0.04em;
	line-height: 1.05;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hero-stat-card small {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--hb-green);
	font-size: 0.74rem;
	font-weight: 850;
	white-space: nowrap;
}

.hero-stat-card small.danger {
	color: var(--hb-red);
}

.hero-stat-card small.warning {
	color: var(--hb-orange);
}

.hero-stat-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	width: 3.15rem;
	height: 3.15rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(96, 165, 250, 0.16);
	border-radius: 999px;
	transform: translateY(-50%);
	background: rgba(22, 27, 34, 0.26);
	color: #93c5fd;
	font-size: 1.15rem;
}

.hero-stat-icon.purple {
	color: var(--hb-purple);
}

.hero-stat-icon.cyan {
	color: #7dd3fc;
}

.hero-stat-icon.violet {
	color: #c4b5fd;
}

.hero-stat-icon.orange {
	color: var(--hb-orange);
}

.hero-stat-icon.yellow {
	color: #fde68a;
}

.notice-stack {
	display: grid;
	gap: 0.65rem;
}

.notice-card,
.staff-strip,
.event-card,
.content-card {
	background: var(--hb-panel);
	border: 1px solid var(--hb-border);
	box-shadow: var(--hb-shadow);
	border-radius: var(--hb-radius-xl);
}

.notice-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	color: var(--hb-text);
	text-decoration: none;
	transition: 0.18s ease;
}

.notice-card:hover {
	transform: translateY(-1px);
	border-color: var(--hb-border-blue);
	color: var(--hb-text);
}

.notice-card i {
	width: 2.2rem;
	height: 2.2rem;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.06);
}

.notice-card strong {
	display: block;
	color: #ffffff;
}

.notice-card span {
	display: block;
	color: var(--hb-muted);
	font-size: 0.9rem;
}

.notice-card.primary {
	border-left: 4px solid var(--hb-blue);
}

.notice-card.success {
	border-left: 4px solid #10b981;
}

.notice-card.warning {
	border-left: 4px solid #f59e0b;
}

.notice-card.danger {
	border-left: 4px solid #ef4444;
}

.notice-card.info {
	border-left: 4px solid var(--hb-cyan);
}

.staff-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.65rem;
}

.staff-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.7rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 900;
	color: #ffffff;
	text-decoration: none;
	transition: 0.18s ease;
}

.staff-item:hover {
	transform: translateY(-1px);
	color: #ffffff;
}

.staff-item.danger {
	background: rgba(239, 68, 68, 0.16);
	color: #fecaca;
}

.staff-item.warning {
	background: rgba(245, 158, 11, 0.16);
	color: #fed7aa;
}

.staff-item.info {
	background: rgba(14, 165, 233, 0.16);
	color: #bae6fd;
}

.event-card {
	overflow: hidden;
}

.event-card a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
	text-align: center;
	text-decoration: none;
	color: var(--hb-text);
}

.event-card img {
	height: 3.8rem;
}

.event-card strong {
	display: block;
	color: #fecaca;
	font-size: 1.1rem;
}

.event-card span {
	color: var(--hb-muted);
}

.content-shell {
	margin-top: 0;
}

.content-card {
	padding: 1.25rem;
	min-height: 50vh;
}

.header-search .torrent-search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 1050;
	background: rgba(18, 22, 30, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: var(--hb-shadow-strong);
	overflow: hidden;
}

.torrent-search-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.82);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.torrent-search-head small {
	color: rgba(255, 255, 255, 0.45);
	font-weight: 500;
}

.torrent-search-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: 0.15s ease;
}

.torrent-search-item:hover,
.torrent-search-item.active {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.torrent-search-cover {
	width: 42px;
	height: 58px;
	flex: 0 0 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.35);
}

.torrent-search-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.torrent-search-main {
	min-width: 0;
	flex: 1;
}

.torrent-search-title {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 430px;
}

.torrent-search-original {
	margin-top: 2px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 410px;
}

.torrent-search-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.48);
}

.torrent-search-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.torrent-search-desc {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.42);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.torrent-search-stats {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 3px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.torrent-search-seed {
	color: var(--hb-green);
}

.torrent-search-leech {
	color: var(--hb-red);
}

.torrent-search-state {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.76);
}

.torrent-search-state.muted {
	color: rgba(255, 255, 255, 0.45);
}

.torrent-search-state.danger {
	color: #ff6b7a;
}

.torrent-search-more {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 14px;
	border: 0;
	color: rgba(255, 255, 255, 0.78);
	background: rgba(255, 255, 255, 0.04);
	font-size: 13px;
	font-weight: 700;
	transition: 0.15s ease;
}

.torrent-search-more:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.torrent-search-skeleton {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.torrent-search-skeleton-cover {
	width: 42px;
	height: 58px;
	flex: 0 0 42px;
	border-radius: 10px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.12),
		rgba(255, 255, 255, 0.06)
	);
	background-size: 220% 100%;
	animation: torrentSearchSkeleton 1.2s infinite;
}

.torrent-search-skeleton-body {
	flex: 1;
	padding-top: 3px;
}

.torrent-search-skeleton-line {
	height: 10px;
	border-radius: 999px;
	margin-bottom: 9px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.12),
		rgba(255, 255, 255, 0.06)
	);
	background-size: 220% 100%;
	animation: torrentSearchSkeleton 1.2s infinite;
}

.torrent-search-skeleton-line.wide {
	width: 86%;
}

.torrent-search-skeleton-line.medium {
	width: 58%;
}

.torrent-search-skeleton-line.small {
	width: 36%;
}

.torrent-search-skeleton-stats {
	display: flex;
	gap: 8px;
	padding-top: 3px;
}

.torrent-search-skeleton-pill {
	width: 34px;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.12),
		rgba(255, 255, 255, 0.06)
	);
	background-size: 220% 100%;
	animation: torrentSearchSkeleton 1.2s infinite;
}

@keyframes torrentSearchSkeleton {
	0% {
		background-position: 220% 0;
	}

	100% {
		background-position: -220% 0;
	}
}

@media (max-width: 1499.98px) {
	.hero-dashboard {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1199.98px) {
	.app-topbar-inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.hero-dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.app-shell.has-sidebar {
		display: block;
	}

	.app-main {
		display: grid;
		gap: 1rem;
	}

	.app-topbar {
		top: 0.75rem;
		border-radius: 1.15rem;
	}

	.app-topbar-inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 0.65rem;
		min-height: 3.9rem;
	}

	.app-sidebar {
		position: fixed;
		top: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		width: min(19rem, calc(100vw - 1.5rem));
		max-height: none;
		z-index: 1090;
		transform: translateX(calc(-100% - 1rem));
		transition: transform 0.22s ease;
	}

	body.sidebar-open .app-sidebar {
		transform: translateX(0);
	}

	.sidebar-overlay {
		position: fixed;
		inset: 0;
		z-index: 1085;
		background: rgba(2, 6, 23, 0.62);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	body.sidebar-open .sidebar-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	body.sidebar-open {
		overflow: hidden;
	}

	.dropdown-menu.show {
		max-height: calc(100vh - 5.5rem);
	}

	.user-menu.dropdown-menu-end {
		right: 0;
		left: auto;
	}
}

/* Mobil stat kártyák */
@media (max-width: 767.98px) {
	.hero-dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.hero-stat-card {
		min-height: 5.25rem;
		padding: 0.75rem 2.75rem 0.75rem 0.75rem;
		border-radius: 1rem;
	}

	.hero-stat-card span {
		font-size: 0.68rem;
	}

	.hero-stat-card strong {
		font-size: 1.05rem;
		line-height: 1.1;
	}

	.hero-stat-card small {
		max-width: 100%;
		font-size: 0.62rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hero-stat-icon {
		right: 0.65rem;
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 420px) {
	.hero-dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.hero-stat-card {
		min-height: 4.95rem;
		padding: 0.68rem 2.35rem 0.68rem 0.68rem;
	}

	.hero-stat-card span {
		font-size: 0.62rem;
	}

	.hero-stat-card strong {
		font-size: 0.95rem;
	}

	.hero-stat-card small {
		font-size: 0.58rem;
	}

	.hero-stat-icon {
		right: 0.55rem;
		width: 2rem;
		height: 2rem;
		font-size: 0.82rem;
	}
}

@media (max-width: 575.98px) {
	.app-shell {
		padding-top: 0.75rem;
	}

	.app-topbar-inner {
		gap: 0.5rem;
		padding: 0.62rem;
	}

	.header-actions {
		gap: 0.42rem;
	}

	.header-icon-btn,
	.topbar-user {
		width: 2.38rem;
		height: 2.38rem;
	}

	.topbar-user {
		padding: 0.22rem;
	}

	.topbar-user::after {
		display: none;
	}

	.topbar-avatar {
		width: 1.86rem;
		height: 1.86rem;
	}

	.user-menu.dropdown-menu.show {
		position: fixed !important;
		top: 4.25rem !important;
		right: 0.75rem !important;
		left: 0.75rem !important;
		width: auto;
		max-height: calc(100vh - 5rem);
		overflow-y: auto;
		overflow-x: hidden;
		transform: none !important;
		border-radius: 1rem;
	}

	.hero-stat-card {
		padding: 0.9rem 3.9rem 0.9rem 0.9rem;
	}

	.hero-stat-card strong {
		font-size: 1.22rem;
	}

	.hero-stat-icon {
		right: 0.85rem;
		width: 2.8rem;
		height: 2.8rem;
	}

	.notice-card {
		align-items: flex-start;
	}

	.content-card {
		padding: 0.9rem;
	}
}