:root {
    --text-color: #0f0f1b;
    --table-bg: linear-gradient(145deg, #f6ebeb, #ece1e1);
    --bg-color: rgba(112, 117, 150, 0.701);
    --vip-bg: linear-gradient(145deg, #efdeaa, #eee1bc);
    --background-image: url(/images/adorable.png);
}

:root.dark {
    --text-color: #fafbf6;
    --vip-bg: linear-gradient(145deg, #1a0c00, #222200);
    --table-bg: linear-gradient(145deg, #0a0a0a, #111111);
    --bg-color: #030303;
    --background-image: url(/images/abomination.png);
}

#theme-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
}

#theme-toggle::before,
#theme-toggle::after {
    display: none !important;
}

#theme-toggle span {
    display: none !important;
}

#theme-toggle-dark-icon,
#theme-toggle-light-icon {
    display: block;
    width: 32px;
    height: 32px;
}

#theme-toggle-dark-icon {
    fill: #595e67;
}

#theme-toggle-light-icon {
    fill: #debdc8;
}

.hidden {
    display: none !important;
}

.dark-theme-h1 {
    display: none;
}

.dark .dark-theme-h1 {
    display: inline;
}

.dark .light-theme-h1 {
    display: none;
}

html {
    background-color: white;
    color: rgb(214, 76, 76);
    font-family: Impact, "Arial Narrow Bold", sans-serif;
    user-select: none;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: var(--background-image) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
    margin: 0;
    padding: 0;
}

h1 {
    color: rgb(225, 87, 181);
    --color1: pink;
    --color2: rgb(68, 0, 255);
    --color3: rgb(255, 0, 195);
    --color4: rgb(255, 0, 170);
    font-family: Gruppo;
    text-align: center;
    --interval: 1s;
    display: block;
    text-shadow:
        0 0 10px var(--color1),
        0 0 20px var(--color2),
        0 0 40px var(--color3),
        0 0 80px var(--color4);
    will-change: filter, color;
    filter: saturate(60%);
    animation: flicker-light steps(100) var(--interval) 1s infinite;
}

@keyframes flicker-light {
    50% {
        color: rgb(255, 145, 196);
        filter: saturate(200%) hue-rotate(20deg);
    }
}

.dark h1 {
    color: yellow;
    --color1: goldenrod;
    --color2: orangered;
    --color3: mediumblue;
    --color4: purple;
    font-family: Gruppo;
    text-align: center;
    --interval: 1s;
    display: block;
    text-shadow:
        0 0 10px var(--color1),
        0 0 20px var(--color2),
        0 0 40px var(--color3),
        0 0 80px var(--color4);
    will-change: filter, color;
    filter: saturate(60%);
    animation: flicker steps(100) var(--interval) 1s infinite;
}

@keyframes flicker {
    50% {
        color: white;
        filter: saturate(200%) hue-rotate(20deg);
    }
}

#playlistTable_wrapper {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#playlistTable.dataTable {
    display: inline-table !important;
    margin: 0 auto !important;
    width: 90vw;
    max-width: 0vw !important;
    border-collapse: collapse !important;
    text-align: left !important;
    overflow-x: hidden !important;
}

@media (min-width: 1200px) {
    #playlistTable.dataTable {
        max-width: 0vw !important;
    }
}

#playlistTable.dataTable tbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    justify-content: center !important;
}

#playlistTable.dataTable tbody tr {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: var(--table-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.5),
        0 2px 4px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
    width: 800px !important;
    max-width: 90vw !important;
    margin: 0 !important;
    min-height: 70px;
    height: auto;
    flex-wrap: nowrap;
}

#playlistTable.dataTable tbody tr:hover {
    border-color: #ada0a6;
    box-shadow:
        0 0 20px #99838d,
        0 0 40px#9d889276,
        inset 0 0 20px #c6b7be21;
    transform: translateY(-2px);
}

.dark #playlistTable.dataTable tbody tr:hover {
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow:
        0 0 20px rgba(255, 0, 85, 0.2),
        0 0 40px rgba(255, 0, 85, 0.1),
        inset 0 0 20px rgba(255, 0, 85, 0.05);
    transform: translateY(-2px);
}

#playlistTable.dataTable tbody td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-indicator {
    color: gold;
    font-weight: 900;
    font-size: 1.2em;
    text-shadow:
        0 0 5px rgba(255, 215, 0, 0.7),
        0 0 10px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 0.6rem rgba(255, 215, 0, 0.4));
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

#playlistTable.dataTable tbody tr.vip-row {
    background: var(--vip-bg) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-left: 4px solid gold !important;
}

#playlistTable.dataTable tbody tr.vip-row:hover {
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.15),
        inset 0 0 20px rgba(255, 215, 0, 0.1) !important;
}

#playlistTable.dataTable tbody tr.vip-row .song-title {
    color: rgb(162, 100, 13) !important;
}

.dark #playlistTable.dataTable tbody tr.vip-row .song-title {
    color: gold !important;
}

#playlistTable.dataTable tbody td:nth-child(2) {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 700;
    font-size: 1.2em;
    color: #fb3f7a;
    line-height: 1.4;
    font-family: Gruppo;
    font-size: 1.5rem;
    font-weight: bolder;
    margin-top: -22px;
    word-break: break-word;
    margin-bottom: 5px;
    display: block;
}

.dark .song-title {
    color: #dc143c;
}

.user-name {
    color: var(--text-color);
    font-size: 0.95em;
    font-weight: 500;
    font-family: comfortaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}

.song-date {
    color: var(--text-color);
    font-size: 0.8em;
    font-family: comfortaa;
    font-weight: 500;
    background: #f5f5f56e;
    padding: 6px 14px;
    border-radius: 16px;
    white-space: nowrap;
    position: absolute;
    bottom: 10px;
    right: 15px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .song-title {
        font-size: 1.1rem;
    }

    .song-date {
        font-size: 0.75em;
        padding: 4px 10px;
    }
}

#playlistTable.dataTable thead {
    display: none;
}

#playlistTable.dataTable,
#playlistTable.dataTable tbody,
#playlistTable.dataTable tr,
#playlistTable.dataTable td {
    border: none;
    background: none;
}

#playlistTable_wrapper * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.dt-paging {
    display: none;
}

.container {
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    display: flex;
    font-family: comfortaa;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-image: var(--table-bg);
    cursor: pointer;
    color: var(--text-color);
    transition: border-color 0.25s;
    margin: 0;
    flex-shrink: 1;
    min-width: min-content;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .container {
        justify-content: space-around;
        gap: 8px;
    }

    .button {
        padding: 0.4em 0.8em;
        font-size: 0.85em;
        flex: 1 1 auto;
        min-width: 120px;
    }
}

.button-link-inner {
    text-decoration: none;
    color: var(--text-color);
}

.button:hover {
    border-color: #7e6e75;
    box-shadow:
        0 0 20px #99838d,
        0 0 40px#9d889276,
        inset 0 0 20px #c6b7be21;
}

.dark .button:hover {
    border-color: red;
    box-shadow:
        0 0 20px rgba(255, 0, 85, 0.2),
        0 0 40px rgba(255, 0, 85, 0.1),
        inset 0 0 20px rgba(255, 0, 85, 0.05);
}

.button:focus,
.button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
}

a.btn-text-reveal {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    background-color: #8e44ad !important;
    color: #fff !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: none !important;
}

a.btn-text-reveal::before,
a.btn-text-reveal::after {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
}

a.btn-text-reveal:hover {
    background-color: #7a3399 !important;
    transform: none !important;
}

a.btn-text-reveal span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

a.btn-text-reveal:hover span {
    color: transparent;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 4vw, 50px);
    background-color: var(--bg-color);
    position: relative;
}

nav a {
    font-family:
        "Inter", "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    padding: 0.4rem 0;
    transition:
        color 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
}

nav a:hover {
    color: #365798;
}

.dark nav a:hover {
    color: #ff7a18;
}

nav:has(a:hover) a:not(:hover) {
    opacity: 0.3;
}
footer {
    flex-shrink: 0;
    margin-top: auto;
    user-select: none;
    width: 100%;
    font-family:
        "Inter", "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    color: var(--text-color);
    text-align: center;
    background-color: var(--bg-color);
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-right {
    position: absolute;
    display: flex;
    height: 100%;
    right: 10px;
}

.pin-right svg {
    height: 18px;
    width: auto;
    transition: fill 0.3s ease;
    fill: currentColor;
}

.pin-right a {
    color: white;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px;
}

.dark .pin-right a {
    color: inherit;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px;
}

.pin-right a:hover {
    color: #ffbcdc;
}

.dark .pin-right a:hover {
    color: rgb(186, 55, 55);
}

.pin-right > a {
    text-decoration: none;
}

.pin-right > a {
    text-decoration: none;
}

@media (max-width: 480px) {
    .pin-right {
        display: none;
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.modal-content {
    background-image: var(--table-bg);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 900px;
    border-radius: 12px;
    font-family: "Courier New", Courier, monospace;
    color: var(--text-color);
    text-align: center;
}

@media (max-width: 900px) {
    .modal-content {
        width: 80%;
    }
}

.modal-content a {
    text-decoration: none;
    color: rgb(152, 137, 197);
}

.dark .modal-content a {
    text-decoration: none;
    color: rgb(156, 129, 146);
}

.dark .modal-content {
    border: 1px solid #421111;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(173, 52, 52);
    text-decoration: none;
    cursor: pointer;
}
