:root {
    --white: #ffffff;
    --blue: #6e64c3;
    --primary-blue: #80aaff;
    --border-blue: #97deff;
    --accent-blue: #89CFF0;
    --glass-bg: rgba(128, 170, 255, 0.1);
    --glass-border: rgba(225, 246, 255, 0.208);
}

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

body {
    font-family: 'ZHFont', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    overflow-y: scroll;
}

body ::selection {
    background: #91ceff;
}


.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-panel {
    margin: 0 0 0 auto;
    padding-bottom: 0;
    animation: float 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blog-panel img {
    max-width: 60%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.133))
           drop-shadow(0 0 50px rgba(255, 255, 255, 0.118))
           drop-shadow(0 0 70px rgba(255, 255, 255, 0.111));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin: 20px 0 20px -20px;
}

.social-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icon:hover img {
    transform: translateY(-5px);
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.page-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    margin-right: 20px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 2px solid var(--border-blue);
    box-shadow: 4px 4px 0 var(--glass-border);
    align-self: flex-start;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.sidebar-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    text-shadow: 2px 2px 0 rgba(128, 170, 255, 0.5);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.filter-group label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--white);
    text-shadow: 2px 2px 0 rgba(128, 170, 255, 0.5);
    letter-spacing: 1px;
}

.filter-group::before {
    content: '▶';
    color: var(--border-blue);
    font-size: 12px;
    position: absolute;
    margin-left: -20px;
    margin-top: 25px;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-box {
    padding: 8px 12px;
    border: 2px solid var(--border-blue);
    border-radius: 4px;
    background: rgba(128, 170, 255, 0.07);
    color: var(--white);
    font-family: 'departure-mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 rgba(225, 246, 255, 0.3);
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.option-box:hover {
    border-color: var(--primary-blue);
    transform: translateX(2px);
}

.option-box.selected {
    background: rgba(128, 170, 255, 0.3);
    border-color: var(--primary-blue);
    box-shadow: 4px 4px 0 rgba(225, 246, 255, 0.5);
}

input {
    padding: 12px 16px;
    border: 2px solid var(--border-blue);
    border-radius: 4px;
    background: rgba(128, 170, 255, 0.07);
    color: var(--white);
    font-family: 'departure-mono', monospace;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 rgba(225, 246, 255, 0.3);
    width: 100%;
}

input:focus {
    border-color: var(--primary-blue);
    box-shadow: 4px 4px 0 rgba(225, 246, 255, 0.5);
    transform: translateY(-2px);
}

input:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

#search-filter {
    width: 200px;
}

.sort-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.sort-btn li {
    padding: 8px 12px;
    border: 2px solid var(--border-blue);
    border-radius: 4px;
    background: rgba(128, 170, 255, 0.07);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'departure-mono', monospace;
}

.sort-btn li:hover {
    border-color: var(--primary-blue);
    transform: translateX(2px);
}

.sort-btn li.active {
    background: rgba(128, 170, 255, 0.3);
    border-color: var(--primary-blue);
    box-shadow: 4px 4px 0 rgba(225, 246, 255, 0.5);
}

.grid {
    position: relative;
    width: 80%;
    margin: 1rem auto 5rem;
    transform-origin: center top;
}

.grid .item {
    position: absolute;
    margin: 1rem;
    z-index: 1;
}

.grid .item.muuri-item-hidden {
    z-index: 0;
}

.grid .item.muuri-item-releasing {
    z-index: 2;
}

.grid .item.muuri-item-dragging {
    z-index: 3;
}

.grid .item.small {
    width: clamp(15rem, 15cqw, 17rem);
}

.grid .item.medium {
    width: clamp(16rem, 16cqw, 20rem);
}

.grid .item.smallarge {
    width: clamp(22rem, 17cqw, 15rem);
}

.grid .item.large {
    width: clamp(42rem, 42cqw, 44rem);
}

@supports not (width: 1cqw) {
    .grid .item.small {
        width: clamp(15rem, calc(15 * var(--vw, 1vw)), 17rem);
    }
    
    .grid .item.medium {
        width: clamp(16rem, calc(16 * var(--vw, 1vw)), 20rem);
    }
    
    .grid .item.smallarge {
        width: clamp(22rem, calc(22 * var(--vw, 1vw)), 29rem);
    }
    
    .grid .item.large {
        width: clamp(42rem, calc(42 * var(--vw, 1vw)), 44rem);
    }
}

@supports not (width: 1cqw) and not (width: calc(1vw / 1)) {
    .grid .item.small {
        width: clamp(15rem, calc(15 * var(--vw, 1vw)), 17rem);
    }
    
    .grid .item.medium {
        width: clamp(16rem, calc(16 * var(--vw, 1vw)), 20rem);
    }
    
    .grid .item.smallarge {
        width: clamp(22rem, calc(20 * var(--vw, 1vw)), 29rem);
    }
    
    .grid .item.large {
        width: clamp(42rem, calc(42 * var(--vw, 1vw)), 44rem);
    }
}

.window-muuri {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-blue);
    border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(225, 246, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.window-muuri-header {
    background: var(--primary-blue);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-muuri-controls {
    display: flex;
    gap: 6px;
}

.window-muuri-content {
    padding: 20px;
    color: var(--white);
}

.material-icons {
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.drag-handle .material-icons {
    color: white;
    font-size: 20px;
}

.preview-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 10px;
}

.date {
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--white);
    font-family: 'ZHFont', sans-serif;
}

.description {
    font-size: 12px;
    line-height: 1.6;
    border-left: 2px solid var(--white);
    padding-left: 10px;
    font-family: 'ZHFont', sans-serif;
    font-weight: lighter;
    margin: 15px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-family: 'ZHFont', sans-serif;
    font-weight: bold;
    font-size: 12px;
}

.tag {
    color: var(--accent-blue);
}

.link {
    color: var(--accent-blue);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.notification-icon-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
}

.notification-open {
    width: 62px;
    height: auto;
    transition: all 0.3s ease;
}

.notification-open:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.notification-overlay.show {
    opacity: 1;
}

.notification-container {
    position: fixed;
    top: -800px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
}

.notification-container.show {
    top: 20px;
}

.notification-panel {
    background: rgba(128, 170, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--border-blue);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(151, 222, 255, 0.4),
                0 0 30px rgba(151, 222, 255, 0.2);
    padding: 30px;
    width: 95%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(151, 222, 255, 0.4),
                    0 0 30px rgba(151, 222, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(151, 222, 255, 0.6),
                    0 0 40px rgba(151, 222, 255, 0.3);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(151, 222, 255, 0.3);
    padding-bottom: 15px;
}

.notification-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--white);
    font-size: 18px;
    text-shadow: 2px 2px 0 rgba(128, 170, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    width: 42px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.notification-content {
    font-family: 'ZHFont', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 20px;
}

.notification-version {
    font-family: 'departure-mono', monospace;
    color: var(--accent-blue);
    font-size: 14px;
    margin-bottom: 15px;
}

.notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 22px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

.notification-stars {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--white), 0 0 10px var(--white);
    opacity: 0.7;
    z-index: -1;
}

.notification-button {
    background: rgba(128, 170, 255, 0.3);
    color: white;
    border: 1px solid var(--border-blue);
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'departure-mono', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.notification-button:hover {
    background: rgba(128, 170, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #7c7effcc;
       width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ebf6ffcc;
    border-radius: 10px;
    width: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e3f0ff;
}

@media (max-width: 1200px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        position: static;
    }

    .filter-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sort-btn {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }

    .item.small,
    .item.medium,
    .item.smallarge,
    .item.large {
        width: calc(80 * var(--vw, 1vw)) !important;
        margin: 1.2rem auto;
    }

    .window-muuri-header {
        padding: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .window-muuri-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .item {
        width: 100%;
    }

    .window-muuri {
        border-width: 1px;
    }

    .window-muuri-header {
        padding: 8px;
    }

    .material-icons {
        font-size: 18px;
    }

    .filter-group,
    .sort-btn {
        flex-direction: column;
    }
}
.star-mark {
  --star: #91ceff;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: baseline;
  background: var(--star);
  box-shadow: 0 0 8px color-mix(in oklab, var(--star) 60%, transparent);
}

.star-mark[data-domain="art"] {
  --star: #f2b07a;
}

.star-mark[data-stage="nebula"] {
  width: 11px;
  height: 11px;
  background: color-mix(in oklab, var(--star) 35%, transparent);
  box-shadow: none;
}

.star-mark[data-stage="protostar"] {
  width: 7px;
  height: 7px;
}

.star-mark[data-stage="giant"] {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 14px color-mix(in oklab, var(--star) 70%, transparent);
}

.star-mark[data-stage="remnant"] {
  --star: #7c8698;
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.network-box {
  width: 100%;
  border-color: rgba(145, 206, 255, 0.45) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.network-box:hover,
.network-box:focus-visible {
  transform: translateY(-1px);
  background: rgba(145, 206, 255, 0.12);
  box-shadow: 0 0 26px rgba(145, 206, 255, 0.3);
}

.network-box:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
