/* ─── Imports ───────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap");
@import url("tooltip.css");
@import url("root.css");

/* ─── Reset / Base Styles ───────────────────────── */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    justify-content: center;

    min-height: 100vh;

    background-color: var(--white-primary);

    color: var(--text-100);
    font-family: "Poppins", sans-serif;
}

.fontawesome {
    font-family: "Poppins", "FontAwesome", sans-serif;
    user-select: none;
}

/* ─── Layout Primitives ─────────────────────────── */

.flex {
    flex-grow: 1;

    width: 100%;
}

.inlineForm {
    display: flex;
    align-items: center;
    gap: calc(var(--medium) / 2);
}

.container {
    position: relative;

    width: 70%;
    padding: 50px;

    background-color: var(--white-primary);

    overflow: visible;
    animation: slideIn 0.3s ease-out;
}

/* ─── Typography ────────────────────────────────── */

.container h1 {
    margin-bottom: 35px;

    color: var(--text-100);
    font-family: "Google Sans Flex", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;

    pointer-events: none;
    user-select: none;
}

.player-title {
    display: inline-block;

    padding: 0 4px;
    border-radius: 4px;

    background-color: var(--red);

    color: white;
    font-size: var(--small);
    font-weight: 600;
    text-transform: uppercase;
}

/* ─── Component Styles ──────────────────────────── */

form {
    display: grid;
    gap: var(--medium);
}

input,
textarea,
select,
button {
    padding: 14px 18px;

    background-color: var(--white-primary);
    border: var(--border-thin) var(--white-d) solid;
    border-radius: var(--border);

    font-family: "Poppins", sans-serif;
    font-size: var(--small);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

textarea:focus::placeholder,
input:focus::placeholder {
    color: var(--white-d);
}

textarea {
    width: 100%;
    min-height: 60vh;

    resize: vertical;
}

button {
    background-color: var(--orange);

    color: var(--white-primary);
    font-weight: 600;

    border: none;
    cursor: pointer;
}

button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--medium);

    height: calc(1.25 * (var(--small) + var(--normal)));
}

button.outline {
    background-color: transparent;

    color: var(--text-100);
    font-weight: 600;

    border: var(--border-thick) var(--white-d) solid;
    cursor: pointer;
}

#searchURL {
    width: fit-content !important; /* specificity-override */

    border-radius: 100px;
}

.titleInput,
.ratingInput {
    text-align: center;
}

.titleInput {
    flex: 0 0 80px;

    width: 80px;
}

.ratingInput {
    flex: 0 0 115px;

    width: 115px;
}

#round,
#time {
    flex: 0 0 105px !important; /* specificity-override */

    width: 105px !important; /* specificity-override */
}

.loader {
    display: none;

    width: var(--normal);
    aspect-ratio: 1;

    border: 5px var(--white-e0-95) solid;
    border-right-color: transparent;
    border-radius: 50%;

    animation: l2 1s infinite linear;
}

a.redirect {
    position: fixed;
    bottom: var(--medium);
    left: var(--medium);
    z-index: 1000;

    padding: 14px 18px;

    background-color: transparent;

    color: var(--deep-blue);
    font-size: 24px;

    cursor: pointer;
}

.options {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: var(--small);

    font-size: var(--medium);

    cursor: pointer;
}

span.gap {
    display: inline-block;

    width: var(--gap);
}
.tilt {
    display: inline-block;

    transform: skewX(-10deg);
}

/* ─── Keyframes ─────────────────────────────────── */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInSmall {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutSmall {
    from {
        opacity: 1;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        transform: translateY(3px);
    }
}

@keyframes slideOutSmallAbsolute {
    from {
        transform: translate(-50%, calc(-50% - calc(var(--medium) * 2)));
    }
    to {
        transform: translate(-50%, calc(-50% + var(--medium)));
    }
}
