:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fafafa;
    background: #09090b;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 0;
}

button,
input {
    font: inherit;
}

.app {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.live-section {
    display: flex;
    flex-direction: column;
	width: 180px;
    flex-shrink: 0;
    gap: 4px;
	margin-left: 40px;
}

.live {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    font-size: 12px;
    font-weight: 650;
    color: #a1a1aa;
    letter-spacing: 0.04em;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px #14532d;
    animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 3px #14532d;
    }

    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 5px rgba(20, 83, 45, 0.25);
    }
}

#new-count {
    color: #4ade80;
    letter-spacing: 0;
}

.site-tagline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

.fav-a {
    position: relative;
}

.fav-a svg {
    position: absolute;
    left: 60%;
    bottom: 75%;
    width: 11px;
    height: 11px;
    transform: translateX(-50%);
    fill: currentColor;
    stroke: none;
}

.subtitle {
    font-size: 11px;
    color: #a1a1aa;
}

.toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
	position: relative;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52525b;
    cursor: pointer;
}

.home-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-button:hover {
    background: transparent;
    border-color: transparent;
    color: #fafafa;
}

.home-button:hover svg {
    transform: rotate(45deg) scale(1.08);
}

.search-box {
    position: relative;
    width: 420px;
}

.search-box svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #71717a;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 14px 0 38px;
    border: 1px solid #27272a;
    border-radius: 8px;
    outline: none;
    background: #18181b;
    color: #fafafa;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #71717a;
}

.search-box input:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 3px #18181b;
}

.search-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
	margin-left: -4px;
}

.search-hint {
    margin-top: 4px;
    padding-left: 2px;
    color: #52525b;
    font-size: 10px;
    line-height: 14px;
}

.search-hint span {
    color: #71717a;
}

.date-box {
    position: relative;
    width: 160px;
}

.date-box svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #71717a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.date-box input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 38px;
    border: 1px solid #27272a;
    border-radius: 8px;
    outline: none;
    background: #18181b;
    color: #fafafa;
    font-size: 12px;
    color-scheme: dark;
}

.date-box input:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 3px #18181b;
}

.settings-panel {
    position: absolute;
    top: calc(100%);
    right: 0;
    width: 170px;
    padding: 8px;
    z-index: 1000;
    background: var(--panel-background, #111);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color, #333);
    font-weight: 300;
	font-size: 12px;
}

.settings-header button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
}

.category-settings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;	
}

.category-setting {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.category-setting input {
    width: 12px;
    height: 12px;
    cursor: pointer;
}

.category-setting span {
    font-size: 12px;
}

.settings-footer {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #333);
}

.settings-footer button {
    flex: 1;
    border: 1px solid var(--border-color, #333);
    border-radius: 6px;
    padding: 6px 8px;
    background: transparent;
    color: inherit;
    font-size: 11px;
    cursor: pointer;
}

.settings-footer button:hover {
    background: rgba(128, 128, 128, 0.12);
}

.active-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

#filter-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

#clear-filters {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    padding: 0 10px;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    background: #27272a;
    color: #d4d4d8;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

#clear-filters:hover {
    background: #3f3f46;
    border-color: #52525b;
    color: #fafafa;
}

.active-filters:has(#filter-badges:empty) {
    display: none;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 24px;
    padding: 0 8px 0 10px;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    background: #27272a;
    color: #d4d4d8;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.filter-badge span {
    color: #71717a;
    font-size: 15px;
    line-height: 1;
    position: relative;
    top: -2px;
}

.filter-badge:hover {
    background: #3f3f46;
    border-color: #52525b;
    color: #fafafa;
}

.filter-badge:hover span {
    color: #d4d4d8;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52525b;
    cursor: pointer;
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: transparent;
    border-color: transparent;
    color: #fafafa;
}

.theme-toggle:hover svg {
    transform: rotate(45deg) scale(1.08);
}

.table-wrapper {
    overflow: hidden;
    border: 1px solid #27272a;
    border-radius: 10px;
    background: #09090b;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

thead {
    background: #18181b;
}

th {
    height: 34px;
    padding: 0 8px;
    border-bottom: 1px solid #27272a;
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

th:nth-child(2) {
    text-align: left;
}

td {
    height: 28px;
    padding: 0 8px;
    border-bottom: 1px solid #18181b;
    color: #a1a1aa;
    font-size: 12px;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}


th:nth-child(1),
td:nth-child(1) {
    width: 13%;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 58%;
    text-align: left;
}

th:nth-child(3),
td:nth-child(3) {
    width: 5%;
    text-align: center;
}

th:nth-child(4),
td:nth-child(4) {
    width: 7%;
    text-align: center;
}

th:nth-child(5),
td:nth-child(5) {
    width: 9%;
    text-align: center;
    vertical-align: middle;
}

th:nth-child(6),
td:nth-child(6) {
    width: 8%;
    text-align: center;
    vertical-align: middle;
}

.release-name-container {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    gap: 6px;
}

.release-name {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
    transition:
        color 0.45s linear,
        text-shadow 0.55s linear;
}

.release-name.copied {
    color: #ffffff;
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.35);
}

.release-name-container .badge {
    flex-shrink: 0;
}

.numeric {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pretime-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    font: inherit;
    cursor: pointer;
}

.pretime-toggle:hover {
    color: #d4d4d8;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 19px;
    min-width: 38px;
    padding: 0 6px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.badge-group {
    background: #27272a;
    border-color: #3f3f46;
    color: #d4d4d8;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
}

.badge-group span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: auto;
    min-width: 38px;
    height: 19px;
    margin: 0;
    padding: 0 6px;
    border: 1px solid #3f3f46;
    border-radius: 5px;
    background: #27272a;
    color: #d4d4d8;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.group-filter:hover {
    background: #3f3f46;
    border-color: #71717a;
    color: #fafafa;
}

.badge-nuked {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
	cursor: default;
	flex-shrink: 0;
}

.badge-unnuked {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
	cursor: default;
	flex-shrink: 0;
}

.badge-delpre {
    background: #3f3f46;
    border-color: #71717a;
    color: #d4d4d8;
	cursor: default;
	flex-shrink: 0;
}

.category-filter,
.category-link {
    cursor: pointer;
}

.category-filter {
    flex-shrink: 0;
}

.category-link {
    text-decoration: none;
}

.category-filter:hover,
.category-link:hover {
    filter: brightness(1.25);
}

.category-music {
    background: #172554;
    border-color: #1e3a8a;
    color: #93c5fd;
}

.category-musicvideo {
    background: #3b0764;
    border-color: #581c87;
    color: #d8b4fe;
}

.category-movie {
    background: #422006;
    border-color: #a16207;
    color: #fde68a;
}

.category-movie.category-link {
    cursor: pointer;
    text-decoration: none;
}

.category-movie.category-link:hover {
    background: #713f12;
    border-color: #ca8a04;
    color: #fef3c7;
}

.category-tv {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

.category-games {
    background: #431407;
    border-color: #9a3412;
    color: #fdba74;
}

.category-apps {
    background: #3f3f46;
    border-color: #52525b;
    color: #d4d4d8;
}

.category-books {
    background: #422006;
    border-color: #854d0e;
    color: #fde68a;
}

.category-other {
    background: #27272a;
    border-color: #3f3f46;
    color: #a1a1aa;
}

.loading,
.empty {
    height: 180px;
    color: #71717a;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    color: #71717a;
    font-size: 11px;
}

.pagination-buttons {
    display: flex;
    gap: 7px;
}

.pagination button {
    height: 24px;
    padding: 0 12px;
    border: 1px solid #27272a;
    border-radius: 6px;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
}

.pagination button:hover:not(:disabled) {
    background: #27272a;
    border-color: #3f3f46;
    color: #fafafa;
}

.pagination button:disabled {
    cursor: default;
    opacity: 0.35;
}

#page-info {
    display: none;
}

#page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid #27272a;
    border-radius: 6px;
    background: transparent;
    color: #a1a1aa;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.page-number:hover {
    background: #27272a;
    border-color: #3f3f46;
    color: #fafafa;
}

.page-number.active {
    background: #27272a;
    border-color: #52525b;
    color: #fafafa;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    color: #52525b;
    font-size: 11px;
    user-select: none;
}

.footer {
    margin-top: 2px;
    padding: 14px 10px 4px;
    color: #52525b;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
}

.footer strong {
    font-weight: 700;
}

.loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #3f3f46;
    border-top-color: #a1a1aa;
    border-radius: 50%;
    vertical-align: -3px;
    animation: spinner-rotate 0.7s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.release-row-new {
    animation: release-row-in 0.4s ease-out;
}

.release-row-updated {
    animation: release-row-update 0.7s ease-out;
}

@keyframes release-row-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes release-row-update {
    0% {
        background-color: #27272a;
    }

    100% {
        background-color: transparent;
    }
}

.new-count-update {
    animation: new-count-update 0.35s ease-out;
}

@keyframes new-count-update {
    0% {
        opacity: 0;
        transform: translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.light {
    background: #d8d8dc;
    color: #27272a;
	font-weight: 500;
}

body.light .home-button {
    border-color: transparent;
    background: transparent;
    color: #71717a;
}

body.light .home-button:hover {
    background: transparent;
    border-color: transparent;
    color: #18181b;
}

body.light .table-wrapper {
    border-color: #b5b5ba;
    background: #e9e9ec;
}

body.light thead {
    background: #ceced3;
}

body.light th {
    border-bottom-color: #b5b5ba;
    color: #4a4a50;
}

body.light td {
    border-bottom-color: #d2d2d6;
    color: #4f4f55;
}

body.light .release-name {
    color: #18181b;
}

body.light .release-name.copied {
    color: #555555;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.35),
        0 0 8px rgba(0, 0, 0, 0.18);
}

body.light .subtitle,
body.light .live {
    color: #4f4f55;
}

body.light #new-count {
    color: #15803d;
}

body.light .site-tagline {
    color: #4f4f55;
}

body.light .search-box input,
body.light .date-box input {
    border-color: #b5b5ba;
    background: #e5e5e8;
    color: #18181b;
}

body.light .search-box input::placeholder {
    color: #85858c;
}

body.light .search-box input:focus,
body.light .date-box input:focus {
    border-color: #71717a;
    box-shadow: 0 0 0 3px #c7c7cc;
}

body.light .search-hint {
    color: #85858c;
}

body.light .search-hint span {
    color: #626269;
}

body.light .clear-button,
body.light .pagination button {
    border-color: #b5b5ba;
    background: #dcdce0;
    color: #4f4f55;
}

body.light .clear-button:hover,
body.light .pagination button:hover:not(:disabled) {
    background: #cfcfd4;
    border-color: #99999f;
    color: #18181b;
}

body.light .filter-badge {
    border-color: #c4c4c9;
    background: #eeeeF0;
    color: #3f3f46;
}

body.light .filter-badge:hover {
    background: #c7c7cc;
    border-color: #99999f;
    color: #18181b;
}

body.light .filter-badge span {
    color: #626269;
}

body.light .badge-group,
body.light .group-filter {
    background: #eeeeF0;
    border-color: #c4c4c9;
    color: #3f3f46;
}

body.light .group-filter:hover {
    background: #c4c4c9;
    border-color: #99999f;
    color: #18181b;
}

body.light .category-music,
body.light .category-musicvideo,
body.light .category-movie,
body.light .category-tv,
body.light .category-games,
body.light .category-apps,
body.light .category-books,
body.light .category-other {
	color: #d4d4d8;
    filter: brightness(1.35);
    opacity: 0.8;
}

body.light .category-music:hover,
body.light .category-musicvideo:hover,
body.light .category-movie:hover,
body.light .category-tv:hover,
body.light .category-games:hover,
body.light .category-apps:hover,
body.light .category-books:hover,
body.light .category-other:hover {
    filter: brightness(0.85);
	opacity: 1;
}

body.light .pretime-toggle {
    color: #4f4f55;
}

body.light .pretime-toggle:hover,
body.light .pretime-toggle.active {
    color: #18181b;
}

body.light .pagination button {
    border-color: #b5b5ba;
    background: transparent;
    color: #4f4f55;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
}

body.light .pagination button:hover:not(:disabled) {
    background: #cfcfd4;
    border-color: #99999f;
    color: #18181b;
}

body.light .page-number {
    border-color: #b5b5ba;
    background: transparent;
    color: #4f4f55;
    font-weight: 600;
}

body.light .page-number:hover {
    background: #cfcfd4;
    border-color: #99999f;
    color: #18181b;
}

body.light .page-number.active {
    background: #d0d0d5;
    border-color: #99999f;
    color: #18181b;
}

body.light .page-ellipsis {
    color: #85858c;
}

body.light .loading,
body.light .empty {
    color: #626269;
}

body.light .theme-toggle {
    border-color: transparent;
    background: transparent;
    color: #71717a;
}

body.light .theme-toggle:hover {
    background: transparent;
    border-color: transparent;
    color: #18181b;
}

body.light .settings-panel {
    background: #eeeeF0;
    border-color: #b5b5ba;
    color: #3f3f46;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body.light .settings-header {
    border-bottom-color: #c4c4c9;
    color: #3f3f46;
}

body.light .settings-header button {
    color: #71717a;
}

body.light .settings-header button:hover {
    color: #18181b;
}

body.light .category-setting {
    color: #4f4f55;
}

body.light .category-setting:hover {
    color: #18181b;
}

body.light .category-setting input {
    accent-color: #52525b;
}

body.light .category-setting span {
    color: inherit;
}

body.light .settings-footer {
    border-top-color: #c4c4c9;
}

body.light .settings-footer button {
    border-color: #b5b5ba;
    background: #dcdce0;
    color: #4f4f55;
}

body.light .settings-footer button:hover {
    background: #cfcfd4;
    border-color: #99999f;
    color: #18181b;
}

body.light .footer {
    color: #85858c;
}

@media (max-width: 1200px) {
    body {
        zoom: 0.90;
    }

    th:nth-child(1),
    td:nth-child(1) {
        width: 14%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 57%;
    }
}

@media (max-width: 1100px) {
    body {
        zoom: 0.85;
    }

    th:nth-child(1),
    td:nth-child(1) {
        width: 16%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 55%;
    }
}

@media (max-width: 1000px) {
    body {
        zoom: 0.77;
    }

    th:nth-child(1),
    td:nth-child(1) {
        width: 18%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 53%;
    }
}

@media (max-width: 900px) {
    body {
        zoom: 0.70;
    }

    th:nth-child(1),
    td:nth-child(1) {
        width: 18%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 50%;
    }

    th:nth-child(3),
    td:nth-child(3) {
        width: 5%;
    }

    th:nth-child(4),
    td:nth-child(4) {
        width: 7%;
    }

    th:nth-child(5),
    td:nth-child(5) {
        width: 10%;
    }

    th:nth-child(6),
    td:nth-child(6) {
        width: 10%;
    }
}

@media (max-width: 800px) {
    body {
        zoom: 0.65;
    }
}

@media (max-width: 700px) {
    body {
        zoom: 0.60;
    }
}

@media (max-width: 600px) {
    body {
        zoom: 0.55;
    }
}

@media (max-width: 550px) {
    body {
        zoom: 0.50;
    }
}

@media (max-width: 500px) {
    body {
        zoom: 0.45;
    }
}

@media (max-width: 450px) {
    body {
        zoom: 0.40;
    }
}