:root {
    --body-background-color: radial-gradient(circle at top center, #4b0082 0%, #0d0d0d 60%, #000000 100%);
    --body-text-color:#f0f0f0;


    --button-background-primary-color:#9370db;
    --button-background-primary-color-hover:#8a2be2;
    --button-text-primary-color:#f0f0f0;
    --button-shadow-primary-color: 0 0 10px rgba(147, 112, 219, 0.5);

    --button-background-secondary-color: rgba(40, 30, 60, 0.8);
    --button-background-secondary-color-border: 1px solid rgba(170, 120, 255, 0.4);
    --button-text-secondary-color:#cbbaff;
    --button-shadow-secondary-color: 0 0 6px rgba(120, 90, 200, 0.3);
    --button-background-secondary-color-hover:rgba(60, 40, 80, 0.9);
    --button-text-secondary-color-hover:#e6d9ff;
    --button-shadow-secondary-color-hover: 0 0 12px rgba(170, 100, 255, 0.5);
    --button-shadow-secondary-color-active: 0 0 14px rgba(190, 130, 255, 0.7) inset;


    --logo-text-shadow-color:
            0 0 14px rgba(155, 48, 255, 0.85),
            0 0 28px rgba(122, 31, 255, 0.75),
            0 0 40px rgba(104, 43, 255, 0.65);
    --logo-text-fill-color:black;


    --soft-panel-shadow-color:
            7px 0 14px rgba(130, 60, 230, 0.3),
            -7px 0 14px rgba(130, 60, 230, 0.3),
            0 0 14px rgba(130, 60, 230, 0.15);
    --panel-section-fill:#c3a5ff;
    --panel-section-color: #c3a5ff;
    --panel-section-сolor-active: #ffffff;
    --panel-section-shadow-active:
            0 0 12px rgba(155, 48, 255, 0.4),
            0 0 18px rgba(155, 48, 255, 0.3);


    --loader-border-color:6px solid rgba(128, 0, 255, 0.1);
    --loader-border-top-color:6px solid #bf00ff;
    --loader-shadow-color:
            0 0 10px #bf00ff,
            0 0 20px #bf00ff,
            0 0 30px #bf00ff;


    --swal-background-color:#121212;
    --swal-border-color:2px solid #b16dff;
    --swal-box-shadow:0 0 20px #b16dff;
    --swal-text-color:#f5f5f5;


    --select2-text-color: #d2aaff;
    --select2-highlight-bg: #9933ff;
    --select2-border-top-color:#ced4da;
    --select2-highlight-text: #ffffff;
    --select2-bg: rgba(20, 20, 20, 0.9);
    --select2-border-color: #9933ff;
    --select2-shadow-1: 0 0 12px rgba(155, 48, 255, 0.3);
    --select2-shadow-2: 0 0 30px rgba(155, 48, 255, 0.2);
    --select2-dropdown-bg: rgba(15, 15, 20, 0.95);
    --select2-dropdown-shadow-1: 0 0 20px rgba(155, 48, 255, 0.25);
    --select2-dropdown-shadow-2: 0 0 40px rgba(155, 48, 255, 0.15);
    --select2-search-bg: #1a1a2a;
    --select2-search-border: #9933ff;
    --select2-search-shadow: 0 0 12px rgba(155, 48, 255, 0.25), inset 0 0 6px rgba(155, 48, 255, 0.15);
    --select2-clear-color: #f8f9fa;
    --select2-clear-bg: #c8c8c8;
    --select2-scrollbar-track: rgba(25, 25, 35, 0.85);
    --select2-scrollbar-thumb: linear-gradient(180deg, #9933ff, #cc66ff);
    --select2-scrollbar-thumb-border: 2px solid rgba(20, 20, 30, 1);
    --select2-scrollbar-thumb-shadow: 0 0 8px rgba(155, 48, 255, 0.6);
    --select2-scrollbar-thumb-hover: linear-gradient(180deg, #bb44ff, #dd77ff);
    --select2-scrollbar-thumb-hover-shadow: 0 0 12px rgba(180, 60, 255, 0.9);
    --select2-scrollbar-color-firefox: #9933ff rgba(25, 25, 35, 0.85);
    --select2-disabled-bg: #1b0032;
    --select2-disabled-border: #a64af0;
    --select2-disabled-text: #a64af0;
    --select2-disabled-shadow: 0 0 8px #a64af0;
    --select2-disabled-choice-bg: #320055;
    --select2-disabled-choice-border: #a64af0;
    --select2-disabled-choice-text: #e2b7ff;
    --select2-disabled-choice-shadow: 0 0 4px #a64af0;

    --swal-bg: #9c4dff;
    --swal-glow: #c281ff;
    --tgq-bg: rgba(255,255,255,0.06);
    --tgq-text: #e9ecf1;
    --tgq-author: #b7c5ff;
    --tgq-time: #9aa6b2;
    --tgq-radius: 12px;
    --tgq-pad: 10px 12px;
    --tgq-bar: #6aa9ff;
}

.tg-quote {
    position: relative;
    padding: var(--tgq-pad);
    border-radius: var(--tgq-radius);
    background: var(--tgq-bg);
    color: var(--tgq-text);
    line-height: 1.35;
    overflow: hidden;
    /* лёгкое разделение с окружением */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tg-quote::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(
            180deg,
            var(--tgq-bar, #6aa9ff),
            color-mix(in oklab, var(--tgq-bar, #6aa9ff) 65%, #ffffff)
    );
    border-top-left-radius: var(--tgq-radius);
    border-bottom-left-radius: var(--tgq-radius);
}

.tg-quote[data-accent]::before {
    background: linear-gradient(
            180deg,
            attr(data-accent color, var(--tgq-bar)),
            color-mix(in oklab, attr(data-accent color, var(--tgq-bar)) 65%, #ffffff)
    );
}
.card-frame{
  position:relative;
  width:100%;
  height:100%;
  border-radius:24px;
  overflow:hidden;
  background:#1b0f2d;
  box-shadow:
    0 0 0 2px rgba(212,153,255,.25) inset,
    0 0 28px rgba(152,64,255,.45);
}
.card-media{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
  user-select:none;
}
.card-shimmer{
  width:100%; height:100%;
  background: linear-gradient(90deg,#2a2144 25%,#3b2a66 37%,#2a2144 63%);
  background-size: 400% 100%;
  animation: cardShimmer 1.1s linear infinite;
}
@keyframes cardShimmer{
  0%{ background-position: 100% 0; }
  100%{ background-position: 0 0; }
}

/* Containers */
.containerAdaptive{
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;

    margin: 0 60px;
}
.listCardContainer{
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}
.selectCardContainer{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.filerRow{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}
/* Containers */

/* inputs */
.neon-input-group{
    width: calc(50% - 45px);
    padding: 6px 0 6px 24px;
    border-radius: 8px;
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid #9933ff;
    font-size: 1rem;
    color: #d2aaff;;
    box-shadow: 0 0 8px rgba(140, 60, 255, 0.5);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.neon-input-group::placeholder {
    color:#d2aaff;;
}
.neon-input-group:focus {
    outline: none;
    background-color: rgba(35, 25, 55, 0.95);
    box-shadow: 0 0 14px rgba(200, 100, 255, 0.7);
}
.neon-input-group.disabled {
    background-color: #1b0032; /* глубокий фиолетовый фон */
    border: 1px solid #a64af0; /* неоновая рамка */
    color: #a64af0; /* неоновый текст */
    cursor: not-allowed;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 8px #a64af0;
    opacity: 0.85;
    transition: all 0.3s ease;
}
.neon-input-group.disabled::placeholder{
    color: #a64af0;
    opacity: 1;
}
/* inputs */

/* cards */
.card-container {
    display: flex;
    flex-direction: row;
    max-width: 1440px;

    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}
.card, .cardModals, .cardCovers.preview, .preview {
    background-color: #1a1a1a;
    border: 2px solid #9370db;
    border-radius: 8%;
    width: auto;
    height: 260px;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    /*background-image: url('https://via.placeholder.com/180x260.png?text=Anime+Card');*/
    background-size: cover;
    background-position: center;

    cursor: pointer;
    min-width:200px;
}
.coversEvent{
    border: none!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
}
.card.EPIC{
    border-radius: 17px;
}
.card:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(147, 112, 219, 0.6);
}
.card {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}
.card.visible {
    opacity: 1;
    pointer-events: auto;
    filter: drop-shadow(0 0 8px #a05bff);
}

.pv-wait .card,
.pv-wait .preview {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
}
.pv-wait .card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.pv-wait .card.visible {
    filter: none !important;
}


/* cards borders*/
.border-LEGENDARY {
    border: 2px solid #ff8c00!important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.35)!important;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.72))!important;
}
.border-COMMON {
    border: 2px solid #87cefa!important;
    box-shadow:0 0 15px rgba(135, 206, 250, 0.35)!important;
    filter: drop-shadow(0 0 8px rgba(135, 206, 250, 0.72))!important;
}
.border-RARE {
    border: 2px solid #c71585!important;
    box-shadow: 0 0 15px rgba(199, 21, 133, 0.35)!important;
    filter: drop-shadow(0 0 8px rgba(199, 21, 133, 0.72))!important;
}
.border-EPIC {
    border: 2px solid #9932cc!important;
    box-shadow: 0 0 15px rgba(153, 50, 204, 0.35)!important;
    filter: drop-shadow(0 0 8px rgba(153, 50, 204, 0.72))!important;
}
.border-MYTHICAL {
    border: 2px solid #4169e1!important;
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.35)!important;
    filter:drop-shadow(0 0 8px rgba(65, 105, 225, 0.72))!important;
}
/* cards borders*/

/* cards */

.videoCovers{
    width: 100%;
    max-width: 260px;
    border: 2px solid #8a2be2;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    background-color: #111;
    outline: none;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}
.video-styled:hover {
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}

/* cards-modal */
.cardModals{
    width: -webkit-fill-available;
    max-height: 50vh;
    height: auto;
    cursor: auto;
}
.modalContainer{
    margin-top: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap:40px;
}
.infoContainer{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.infoContainer p{
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #d8cfff;
}

/* cards-modal */

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    font-family: 'Orbitron', sans-serif;

}
.pagination.visible{
    visibility: visible;
    opacity: 1;
}
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 24px!important;
    border-radius: 40px;
    background: rgba(30, 0, 50, 0.6);
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.4);
    backdrop-filter: blur(8px);
    list-style: none;
    margin: 0;
}
.pagination li {
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    border: none!important;
}
.pagination .paginationjs-pages li:first-child, .paginationjs .paginationjs-pages li:first-child>a{
    border-radius: 8px 0 0 8px!important;
}
.pagination .paginationjs-pages li:last-child,.pagination .paginationjs-pages li:last-child>a{
    border-radius: 0 8px 8px 0!important;
}
.pagination li > a {
    min-width: 0!important;
    display: block;
    padding: 5px 14px;
    color: #c88bff!important;
    font-size: 14px;
    text-decoration: none;

    border: 1px solid rgba(200, 120, 255, 0.3)!important;
    border-radius: 25px;
    transition: 0.3s;
    background: transparent!important;
}
.pagination li:hover > a {
    background: #c88bff22;
    color: #fff;
    box-shadow: 0 0 8px rgba(200, 120, 255, 0.6);
}
.pagination li.active > a {
    line-height: 28px!important;
    height: auto!important;
    background: #c88bff!important;
    color: #0a0015!important;
    font-weight: bold;
    box-shadow: 0 0 12px #d68aff!important;
}
@media (max-width: 480px) {
    .pagination ul {
        padding: 8px 12px!important;
        gap: 4px;
    }

    .pagination li > a {
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* pagination */

.button{
    width: calc(50% - 20px);
}
.select{
    width: calc(50% - 20px)!important;
}
/* adaptation */
@media (max-width: 1000px) {
    .containerAdaptive{
        margin: 0 30px;
    }
    .card, .preview{
        height: 235px;
        min-width:160px;
    }
    .neon-input-group{
        width: 50%;
    }
    .button{
        width: 50%;
    }
    .select{
        width: 50%!important;
    }
}

@media (max-width: 800px) {
    .card, .preview{
        height: 200px;
    }
}
@media (max-width: 800px) {
    .card, .preview{
        height: 200px;
        min-width:140px;
    }
}
@media (max-width: 500px) {
    .swal2-title{
        font-size: 1.4rem !important;
    }
    .card, .preview{
        pointer-events: auto;
        opacity: 1;
        height: 120px;
        min-width: 96px;
    }
    .containerAdaptive{
        margin: 0;
    }
    .card-container{
        gap: 15px;
        margin-top: 0px;
    }
    .soft-panel{
        bottom: 0;
        left: 0;
        width: calc(100% - 24px);
        max-width: unset;
        border-radius: 0;
        transform: unset;
        padding: 12px;
        justify-content:space-evenly;
    }
    .neon-input-group{
        width: calc(50% - 23px);
        padding: 5px 0 5px 12px;
    }
    .filerRow{
        gap: 10px;
    }
    .button{
        width: calc(50% - 10px);
        padding: 5px 30px;
        text-align: center;
        vertical-align: center;
        max-height: 40px;
    }

    .paginationjs .paginationjs-pages li>a{
        font-size: 8px!important;
        height: 14px!important;
    }
    .pagination li.active > a{
        line-height: 14px !important;
    }
    .pagination li > a{
        line-height: 14px !important;
    }
    .mainContainer {
        padding: 0 10px 80px 10px;
}
    .cardModals{
        max-height: 40vh;
    }
    .modalContainer{
        gap: 20px;
    }
}
/* adaptation */

.styled-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    color: var(--select2-highlight-text);
    cursor: pointer;
    user-select: none;
    margin-top: 8px;
}
.styled-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
}
.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--select2-border-color);
    background-color: var(--select2-disabled-bg);
    box-shadow: var(--select2-shadow-1);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}
.styled-checkbox:hover .checkmark {
    background-color: var(--select2-highlight-bg);
    box-shadow: var(--select2-shadow-2);
}
.styled-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid var(--select2-highlight-text);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.label-text {
    font-weight: 400;
    color: var(--select2-clear-color);
    line-height: 1;
}
