: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 {
    margin: 0;
    min-width: 1100px;
    background: #09090b;
    color: #fafafa;
}

button,
input {
    font: inherit;
}

.app {
    width: min(1400px, calc(100% - 120px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

.live-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.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;
}

.subtitle {
    font-size: 13px;
    color: #a1a1aa;
}

.toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.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: 13px;
}

.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;
}

.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: 13px;
    color-scheme: dark;
}

.date-box input:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 3px #18181b;
}

.clear-button {
    height: 36px;
    padding: 0 13px;
    border: 1px solid #27272a;
    border-radius: 8px;
    background: #18181b;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 13px;
}

.clear-button:hover {
    background: #27272a;
    color: #fafafa;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 8px;
}

.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;
}

.filter-badge:hover {
    background: #3f3f46;
    border-color: #52525b;
    color: #fafafa;
}

.filter-badge:hover span {
    color: #d4d4d8;
}

.category-filter {
    cursor: pointer;
}

.category-filter:hover {
    filter: brightness(1.15);
}

.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: 35px;
    padding: 0 8px;
    border-bottom: 1px solid #18181b;
    color: #a1a1aa;
    font-size: 13px;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #18181b;
}

th:nth-child(1),
td:nth-child(1) {
    width: 8%;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 57%;
    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: 8%;
    text-align: center;
	vertical-align: middle;
}

th:nth-child(6),
td:nth-child(6) {
    width: 9%;
    text-align: center;
	vertical-align: middle;
}

th:nth-child(7),
td:nth-child(7) {
    width: 6%;
    text-align: center;
	vertical-align: middle;
}

.release-name {
    overflow: hidden;
    color: #f4f4f5;
    font-weight: 500;
    text-overflow: ellipsis;
}

.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;
}

.pretime-toggle.active {
    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;
}

.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;
}

.badge-unnuked {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

.badge-delpre {
    background: #3f3f46;
    border-color: #71717a;
    color: #d4d4d8;
}

.category-music {
    background: #172554;
    border-color: #1e3a8a;
    color: #93c5fd;
}

.category-link {
    cursor: pointer;
    text-decoration: none;
}

.category-link:hover {
    filter: brightness(1.15);
}

.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: space-between;
    padding-top: 12px;
    color: #71717a;
    font-size: 12px;
}

.pagination-buttons {
    display: flex;
    gap: 7px;
}

.pagination button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #27272a;
    border-radius: 7px;
    background: #18181b;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 12px;
}

.pagination button:hover:not(:disabled) {
    background: #27272a;
    color: #fafafa;
}

.pagination button:disabled {
    cursor: default;
    opacity: 0.35;
}

.loading {
    height: 180px;
    color: #71717a;
    text-align: center;
}

.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);
    }
}