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

body {
    background: #111827;
    color: white;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* =========================
   Container
========================= */

.container {

    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    z-index: 1;

}

.home-container {

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

/* =========================
   Top bar / Info button
========================= */

.info-button {

    position: fixed;
    top: 24px;
    right: 24px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 50%;

    color: #9ca3af;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;

    transition: .2s;

    z-index: 500;

}

.info-button:hover {

    border-color: #3b82f6;
    color: #3b82f6;

}

/* =========================
   Landing Page
========================= */

h1 {
    color: #5aa9ff;
    font-size: 46px;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    color: #9ca3af;
    font-size: 20px;
    text-align: center;
    line-height: 1.6;
    margin: 0 auto 45px;
    max-width: 650px;
}

.search {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 150px 18px 22px;

    background: #1f2937;

    border: 2px solid transparent;
    border-radius: 14px;

    color: white;
    font-size: 18px;

    transition: .25s;
}

.search::placeholder {
    color: #9ca3af;
}

.search:focus {
    outline: none;
    border-color: #3b82f6;
}

/* =========================
   Stats Cards
========================= */

.stats {

    margin-top: 45px;

    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;

}

.card {

    width: 230px;

    background: #1f2937;

    border-radius: 16px;

    padding: 28px;

    border: 1px solid #374151;

    transition: .25s;

}

.card:hover {

    transform: translateY(-4px);
    border-color: #3b82f6;

}

.card-clickable {

    cursor: pointer;

}

.card-title {

    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 18px;

}

.card-value {

    font-size: 36px;
    font-weight: bold;
    color: white;
    line-height: 1.15;

    overflow-wrap: break-word;
    word-break: break-word;

    display: block;
    max-width: 100%;

}

/* =========================
   Trends Box (Winners / Losers)
========================= */

.trends-card {

    width: 700px;
    max-width: 100%;

    margin: 30px auto 0;

    background: #1f2937;

    border-radius: 16px;
    border: 1px solid #374151;

    padding: 28px;

}

.trends-section-title {

    font-size: 16px;
    font-weight: bold;
    margin-bottom: 14px;

}

.trends-section-title.winners {

    color: #22c55e;

}

.trends-section-title.losers {

    color: #ef4444;

}

.trend-row {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 0;

    border-bottom: 1px solid #273447;

    font-size: 15px;

}

.trend-row:last-child {

    border-bottom: none;

}

.trend-item-name {

    color: #f3f4f6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;

}

.trend-change {

    font-weight: bold;
    white-space: nowrap;

}

.trend-change.positive {

    color: #22c55e;

}

.trend-change.negative {

    color: #ef4444;

}

.trends-divider {

    border: none;
    border-top: 1px solid #374151;
    margin: 22px 0;

}

.trends-empty {

    color: #9ca3af;
    font-size: 14px;

}

/* =========================
   Live Search
========================= */

.search-wrapper {

    width: 700px;
    max-width: 100%;
    position: relative;
    margin: 0 auto;

}

.search-row {

    position: relative;

}

.search-category-filter {

    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);

    width: 130px;
    height: 42px;

    padding: 0 12px;

    background: #273447;

    border: none;
    border-radius: 10px;

    color: #d1d5db;
    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition: .2s;

}

.search-category-filter:hover,
.search-category-filter:focus {

    outline: none;
    background: #2f3d52;
    color: white;

}

.results {

    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0,0,0,.35);

    z-index: 1000;

}

.result {

    padding: 14px 18px;

    cursor: pointer;

    color: #f3f4f6;

    font-size: 16px;

    transition: .2s;

    border-bottom: 1px solid #374151;

}

.result:last-child {

    border-bottom: none;

}

.result:hover {

    background: #2563eb;

}

/* =========================
   Items Modal
========================= */

.modal-overlay {

    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.6);

    z-index: 2000;

    align-items: center;
    justify-content: center;

    padding: 30px 16px;

}

.modal-overlay.open {

    display: flex;

}

.modal-box {

    width: 100%;
    max-width: 600px;
    max-height: 80vh;

    background: #1f2937;

    border: 1px solid #374151;
    border-radius: 18px;

    padding: 26px;

    display: flex;
    flex-direction: column;

}

.modal-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;

}

.modal-header h2 {

    font-size: 20px;

}

.modal-close {

    background: none;
    border: none;

    color: #9ca3af;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    padding: 4px 8px;

}

.modal-close:hover {

    color: white;

}

.modal-list {

    overflow-y: auto;

}

.modal-item-row {

    display: flex;
    justify-content: space-between;

    padding: 12px 10px;

    border-radius: 8px;

    text-decoration: none;
    color: #f3f4f6;

    font-size: 15px;

    transition: .15s;

}

.modal-item-row:hover {

    background: #273447;

}

.modal-item-price {

    color: #9ca3af;

}

/* =========================
   Item Page
========================= */

.back-button {

    display: inline-block;
    margin-bottom: 30px;

    color: #60a5fa;

    text-decoration: none;

    font-weight: bold;

}

.back-button:hover {

    text-decoration: underline;

}

.chart-card,
.table-card {

    width: 100%;

    background: #1f2937;

    border: 1px solid #374151;

    border-radius: 18px;

    padding: 30px;

    margin-top: 30px;

}

.chart-card h2,
.table-card h2 {

    margin-bottom: 25px;

}

/* ===== Chart ===== */

.chart-container {

    position: relative;

    width: 100%;

    height: 420px;

}

.chart-container canvas {

    width: 100% !important;

    height: 100% !important;

    display: block;

}

/* ===== Table ===== */

table {

    width: 100%;

    border-collapse: collapse;

}

th {

    text-align: left;

    color: #9ca3af;

    padding: 14px;

    border-bottom: 1px solid #374151;

}

td {

    padding: 14px;

    border-bottom: 1px solid #374151;

}

tr:hover {

    background: #273447;

}

/* =========================
   About Page
========================= */

.about-card {

    background: #1f2937;

    border: 1px solid #374151;

    border-radius: 18px;

    padding: 36px;

    margin-top: 20px;

    line-height: 1.7;

    color: #d1d5db;

}

.about-card h2 {

    color: #5aa9ff;
    margin: 24px 0 10px;

    font-size: 20px;
    text-align: center;

}

.about-card h2:first-child {

    margin-top: 0;

}

.about-card p {

    margin-bottom: 12px;

}

/* =========================
   Mobile
========================= */

/* =========================
   Wetter-Effekt (Sternenregen fuer Top-Winner, Regen fuer Top-Loser)
========================= */

.weather-container {

    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: 0;

}

.star-particle {

    position: absolute;
    top: -20px;

    width: 6px;
    height: 6px;

    background: #fbbf24;
    border-radius: 50%;

    box-shadow: 0 0 6px 2px rgba(251,191,36,.55);

    opacity: 0;

    animation-name: star-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

}

@keyframes star-fall {

    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: .85; }
    90%  { opacity: .85; }
    100% { transform: translateY(105vh) translateX(20px) rotate(180deg); opacity: 0; }

}

.rain-particle {

    position: absolute;
    top: -40px;

    width: 2px;
    height: 22px;

    background: linear-gradient(to bottom, rgba(96,165,250,0), rgba(96,165,250,.55));
    border-radius: 2px;

    opacity: 0;

    animation-name: rain-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

}

@keyframes rain-fall {

    0%   { transform: translateY(0); opacity: 0; }
    8%   { opacity: .6; }
    92%  { opacity: .6; }
    100% { transform: translateY(105vh); opacity: 0; }

}

/* =========================
   Like-Buttons
========================= */

/* ===== Site-weiter Like-Button (fixiert oben rechts, links vom i-Button) ===== */

.site-like-button {

    position: fixed;
    top: 24px;
    right: 78px;

    height: 42px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 16px;

    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 21px;

    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;

    z-index: 500;

}

.site-like-button:hover {

    border-color: #ef4444;

}

.site-like-button.liked {

    animation: like-pop .3s ease;

}

@keyframes like-pop {

    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); }
    100% { transform: scale(1); }

}

.like-heart {

    font-size: 16px;
    display: inline-block;

}

.like-count {

    color: #f3f4f6;

}

@media (max-width:768px) {

    .site-like-button {

        top: 16px;
        right: 68px;

        font-size: 13px;

    }

}

@media (max-width:768px) {

    h1 {

        font-size: 34px;

    }

    .subtitle {

        font-size: 17px;

    }

    .search,
    .search-wrapper,
    .trends-card {

        width: 100%;

    }

    .search {

        padding-right: 110px;

    }

    .search-category-filter {

        width: 92px;
        height: 36px;

        font-size: 11px;
        padding: 0 8px;

    }

    .card {

        width: 100%;
        max-width: 320px;

    }

    .chart-container {

        height: 300px;

    }

    .info-button {

        top: 16px;
        right: 16px;

    }

}

/* =========================
   Cosmic Background (Startseite) -- weisse Sterne, driftender Mond und
   eine ferne Sonne, dezent animiert fuer ein "durchs Universum fliegen"
   Gefuehl. Bewusst subtil gehalten (geringe Deckkraft, langsame
   Bewegungen), damit es nicht vom eigentlichen Inhalt ablenkt.
========================= */

.cosmic-background {

    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: 0;

    background: radial-gradient(ellipse at 50% -10%, rgba(59,130,246,.06), transparent 60%);

}

.cosmic-star {

    position: absolute;

    background: white;
    border-radius: 50%;

    opacity: 0;

    animation-name: cosmic-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;

}

@keyframes cosmic-twinkle {

    0%   { opacity: 0; }
    50%  { opacity: var(--star-peak, .8); }
    100% { opacity: 0; }

}

.cosmic-star.drifting {

    animation-name: cosmic-twinkle, cosmic-drift;
    animation-timing-function: ease-in-out, linear;

}

@keyframes cosmic-drift {

    0%   { transform: translate(0, 0); }
    100% { transform: translate(-40px, 25px); }

}

.cosmic-moon {

    position: absolute;

    top: 8%;
    left: 78%;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background: radial-gradient(circle at 35% 32%, #fdfdfb 0%, #e2e8f0 45%, #94a3b8 100%);

    box-shadow: 0 0 45px 12px rgba(226,232,240,.18);

    animation: moon-drift 70s ease-in-out infinite, moon-glow 6s ease-in-out infinite;

}

@keyframes moon-drift {

    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-60px, 40px); }
    100% { transform: translate(0, 0); }

}

@keyframes moon-glow {

    0%, 100% { box-shadow: 0 0 45px 12px rgba(226,232,240,.18); }
    50%      { box-shadow: 0 0 55px 16px rgba(226,232,240,.28); }

}

@media (max-width:768px) {

    .cosmic-moon {

        width: 56px;
        height: 56px;

    }

}
/* =========================
   Sternschnuppen -- ganz bewusst selten (nur 1 zur Zeit, in
   unregelmaessigen Abstaenden), damit es eine kleine Ueberraschung
   bleibt statt staendig abzulenken.
========================= */

.shooting-star {

    position: absolute;

    width: 3px;
    height: 3px;

    background: white;
    border-radius: 50%;

    box-shadow: 0 0 8px 2.5px rgba(255,255,255,.9);

    opacity: 0;

    /* --star-rot/--star-dx/--star-dy werden pro Sternschnuppe von JS
       zufaellig gesetzt, damit Winkel, Distanz und Tempo jedes Mal
       leicht anders sind */
    transform: rotate(var(--star-rot, -33deg));

    animation-name: shooting-star-fly;
    animation-duration: var(--star-duration, 2.5s);
    animation-timing-function: linear;
    animation-fill-mode: forwards;

}

.shooting-star::before {

    content: "";
    position: absolute;

    top: 50%;
    left: 0;

    width: 130px;
    height: 1.5px;

    background: linear-gradient(to right, rgba(255,255,255,.9), transparent);

    transform: translateY(-50%);

}

@keyframes shooting-star-fly {

    0% {
        opacity: 0;
        transform: rotate(var(--star-rot, -33deg)) translate(0, 0);
    }

    6% {
        opacity: 1;
        transform: rotate(var(--star-rot, -33deg))
                   translate(calc(var(--star-dx, -230px) * .06), calc(var(--star-dy, 150px) * .06));
    }

    /* bleibt lange hell (bis 55% der Flugzeit), Bewegung dazwischen
       interpoliert linear zwischen den Punkten -> keine Geschwindigkeits-
       spruenge mehr */
    55% {
        opacity: 1;
    }

    /* langsames Ausfaden ueber die letzten 45% der Flugzeit, statt
       abruptem Verschwinden am Ende */
    100% {
        opacity: 0;
        transform: rotate(var(--star-rot, -33deg)) translate(var(--star-dx, -230px), var(--star-dy, 150px));
    }

}

/* =========================
   Kategorie-Filter (Items-Modal)
========================= */

.modal-filter-row {

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;

}

.category-filter {

    flex: 1;

    background: #273447;
    border: 1px solid #374151;
    border-radius: 10px;

    padding: 10px 14px;

    color: white;
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    transition: .2s;

}

.category-filter:hover,
.category-filter:focus {

    border-color: #3b82f6;
    outline: none;

}

.modal-item-row.filtered-out {

    display: none;

}
/* =========================
   Guide-Button (Startseite) -- rechts oben, unterhalb von Like- und
   Info-Button
========================= */

.guide-button {

    position: fixed;
    top: 78px;
    right: 24px;

    height: 42px;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0 16px;

    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 21px;

    color: #facc15;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition: .2s;

    z-index: 500;

}

.guide-button:hover {

    border-color: #facc15;
    transform: translateY(-2px);

}

@media (max-width:768px) {

    .guide-button {

        top: 68px;
        right: 16px;

        font-size: 13px;
        padding: 0 12px;

    }

}

/* =========================
   Video Tutorials (Merching Guide Seite) -- gross, mittig, mit Rahmen,
   Platz fuer eine eigene Beschreibung unter jedem Video
========================= */

.video-list {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

    margin-top: 14px;

}

.video-card {

    width: 100%;
    max-width: 640px;

    background: #111827;

    border: 1px solid #374151;
    border-radius: 16px;

    overflow: hidden;

}

.video-thumbnail {

    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    display: block;

    cursor: pointer;

    transition: .2s;

}

.video-thumbnail:hover {

    opacity: .85;

}

.video-title {

    padding: 16px 18px 4px;

    font-size: 17px;

}

.video-title a {

    color: #f3f4f6;
    text-decoration: none;

}

.video-title a:hover {

    color: #5aa9ff;

}

.video-description {

    padding: 0 18px 18px;

    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;

}

/* =========================
   Creator-Gruppen (Video Tutorials Bereich) -- Vorstellungstext pro
   Person, danach deren Videos, dann die naechste Person usw.
========================= */

.creator-block {

    margin-top: 32px;

}

.creator-block:first-child {

    margin-top: 14px;

}

.creator-name {

    color: #5aa9ff;
    font-size: 18px;
    text-align: center;

    margin-bottom: 8px;

}

.creator-intro {

    color: #d1d5db;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;

    max-width: 560px;
    margin: 0 auto 20px;

}

/* =========================
   Guide-Bloecke (mehrere Absaetze pro Guide, statt ein Textblock)
========================= */

.guide-block {

    margin-top: 26px;

}

.guide-block:first-child {

    margin-top: 14px;

}

.guide-title {

    color: #f3f4f6;
    font-size: 16px;
    font-weight: 700;
    text-align: center;

    margin-bottom: 10px;

}

.guide-paragraph {

    text-align: center;

    max-width: 620px;
    margin: 0 auto 12px;

}

.guide-paragraph:last-child {

    margin-bottom: 0;

}
