*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, Arial;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
}

h1 {
    text-align: center;
    padding: 20px;
}

.show-all-btn {
    display: block;
    margin: 10px auto;
}

.search-box {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.3);
}

.search-box input.has-value {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.clear-search:hover {
    color: #38bdf8;
}

.clear-search.visible {
    opacity: 1;
    pointer-events: auto;
}

#list {
    max-width: 1000px;
    margin: auto;
    padding: 10px;
}

h2 {
    margin-top: 30px;
    border-bottom: 1px solid #334155;
    padding-bottom: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    gap: 10px;
}

.card {
    background: #1e293b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    background: #334155;
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.25),
        0 0 0 1px rgba(56,189,248,0.15);
}

@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .modal img {
        max-width: 80%;
        max-height: 80%;
    }

    .modal-nav {
        font-size: 32px;
    }

    #prev {
        left: 8px;
    }

    #next {
        right: 8px;
    }
}

@-moz-document url-prefix() {
    .carousel {
        scrollbar-width: thin;
        scrollbar-color: #334155 #0f172a;
    }
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    margin: 10px auto;
    max-width: 1000px;
    scroll-snap-type: x mandatory;
    border-radius: 12px;
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
	scroll-behavior: smooth;
}

.carousel img {
    height: 140px;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.2s ease;
}

.carousel img:hover {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal.show img {
    transform: scale(1);
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #334155, #38bdf8);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

.video-card {
    display: block;
    max-width: 900px;
    margin: 15px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    text-decoration: none;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.video-card img {
    width: 100%;
    display: block;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.video-info p {
    margin: 0;
    font-size: 14px;
}

.play {
    font-size: 18px;
    color: #38bdf8;
}

.video-card:hover {
    transform: scale(1.02);
    background: #334155;
}

button:active,
.button:active {
    transform: scale(0.97);
}

#count {
    display: block;
    width: fit-content;
    margin: 10px auto;
    padding: 6px 14px;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 999px;
    font-size: 14px;
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.about-card {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;

    text-align: center;

    background: #1e293b;

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

    box-shadow:
        0 8px 20px rgba(0,0,0,0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.25),
        0 0 0 1px rgba(56,189,248,0.15);
}

.about-card h2 {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.about-card p {
    color: #cbd5e1;
    line-height: 1.6;
    text-align: left;
}

button,
.button {
    display: inline-block;

    margin-top: 12px;
    padding: 10px 16px;

    font-size: 15px;
    font-weight: 500;

    background: #1e293b;
    color: #e2e8f0;

    text-decoration: none;

    border: 1px solid #334155;
    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    transition: all 0.2s ease;
}

button:hover,
.button:hover {
    background: #334155;
    border-color: #38bdf8;

    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .under-construction p,
    .under-construction li {
        font-size: 1.1rem;
    }
}

.under-construction {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;

    text-align: center;
}

.under-construction img {
    width: 80%;
    max-width: 350px;
    height: auto;
}

.under-construction ul {
    text-align: left;
    display: inline-block;
    line-height: 1.8;
}

.under-construction p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.under-construction li {
    font-size: 1.05rem;
}

.under-construction h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.modal-nav {
    position: absolute;
    top: 50%;

    z-index: 1001;

    transform: translateY(-50%);

    font-size: 42px;
    color: white;

    cursor: pointer;
    user-select: none;

    padding: 10px;

    opacity: 0.8;

    transition: opacity 0.2s ease;
}

.modal-nav:hover {
    opacity: 1;
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}
