/* Reset and Base Styles */
body {
    background-color: hsl(260, 50%, 10%); /* Dark purple background */
    color: #d4c1ff; /* Light violet text */
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    scrollbar-color: #8a4af3;
}

* {
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

/* Block Elements */
footer,
header,
main,
section {
    display: block;
}

main {
    position: relative;
    z-index: 1;
    margin-top: 3.8rem;
    flex-grow: 1;
}

/* Typography */
h1,
h2,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #e8d9ff; /* Softer violet for headings */
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #8a4af3, #ff6bcb); /* Gradient for headings */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #c9b8ff; /* Muted violet for body text */
}

b {
    font-weight: 600;
}

/* Links */
a,
a:hover {
    text-decoration: none;
}

a {
    color: #b47dff; /* Bright violet for links */
    background-color: transparent;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff6bcb; /* Pinkish-violet on hover */
}

/* Images */
img {
    vertical-align: middle;
    border-style: none;
}

/* Buttons */
button {
    border-radius: 0;
    transition: all 0.3s ease-in-out;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

button,
input {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    overflow: visible;
}

button {
    text-transform: none;
}

[type=button],
button {
    -webkit-appearance: button;
    appearance: button;
}

.btn:not(:disabled):not(.disabled),
[type=button]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible {
    box-shadow: 0 0 8px rgba(138, 74, 243, 0.4); /* Glow effect */
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background: linear-gradient(45deg, #8a4af3, #ff6bcb); /* Gradient button */
    border: none;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .5rem;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background: linear-gradient(45deg, #a573ff, #ff8ad8); /* Lighter gradient on hover */
    color: #fff;
    box-shadow: 0 0 10px rgba(136, 74, 243, 0.5); /* Subtle glow */
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0 rgba(136, 74, 243, 0.25);
}

.btn:disabled {
    opacity: .65;
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 8px);
    padding: 1rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #d4c1ff;
    background-color: #2a1e47; /* Darker purple input background */
    background-clip: padding-box;
    border: 1px solid #3d2a6b; /* Subtle purple border */
    border-radius: .5rem;
    transition: all 0.3s ease-in-out;
}

.form-control:focus {
    color: #d4c1ff;
    background-color: #2a1e47;
    border-color: #8a4af3; /* Vibrant purple on focus */
    outline: 0;
    box-shadow: 0 0 8px rgba(138, 74, 243, 0.4); /* Glow effect */
}

.form-control::placeholder {
    color: #a094d6; /* Muted violet placeholder */
    opacity: 1;
}

.form-control:disabled {
    background-color: #3d2a6b;
    opacity: 1;
}

.form-control-lg {
    height: calc(1.5em + 1.4rem + 2px);
    padding: .7rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .5rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* Containers and Layout */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1456px;
}

@media (min-width: 960px) {
    .container {
        max-width: 540px;
    }
    #demo-player .wrapper .tab-content {
        max-width: 75% !important;
    }
    iframe {
        height: 550px !important;
    }
    .flex-sm-nowrap {
        flex-wrap: nowrap !important;
    }
    .justify-content-sm-between {
        justify-content: space-between !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col,
.col-12,
.col-lg-3,
.col-lg-6,
.col-sm-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.p-r {
    position: relative;
}

.col,
.col-12 {
    max-width: 100%;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
}

.col-12 {
    flex: 0 0 100%;
}

@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Header */
header {
    height: 4rem;
    background: hsl(260, 50%, 12%); /* Slightly lighter purple header */
    border-bottom: 1px solid #3d2a6b; /* Matching border */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

header .logo img {
    height: 2.8rem;
}

header .wrapper ul {
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}

header .wrapper ul li a {
    padding: .2rem 1rem;
}

/* Navigation */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: #d4c1ff;
    background-color: #2a1e47;
    border-radius: .3rem;
    transition: all 0.3s ease-in-out;
}

.nav-link:focus,
.nav-link:hover,
.nav-link.active {
    background-color: #8a4af3; /* Active/hover state */
    color: #fff;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #231b3b; /* Dark purple card background */
    background-clip: border-box;
    border: 1px solid #3d2a6b;
    border-radius: .5rem;
    box-shadow: 0 2px 10px rgba(61, 42, 107, 0.3); /* Subtle shadow */
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
    color: #c9b8ff;
    background-color: #231b3b;
}

.card-body p {
    margin-bottom: 4px !important;
}

.card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    color: #c9b8ff;
    background-color: hsl(260, 50%, 15%);
    border-bottom: 1px solid #3d2a6b;
}

.card-header:first-child {
    border-radius: calc(.5rem - 1px) calc(.5rem - 1px) 0 0;
}

/* Accordion */
.accordion {
    overflow-anchor: none;
}

.accordion > .card {
    overflow: hidden;
}

.accordion > .card:not(:last-of-type) {
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion > .card:not(:first-of-type) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion > .card > .card-header {
    border-radius: 0;
    margin-bottom: -1px;
}

/* Utility Classes */
#embed,
.rounded {
    border-radius: .5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.w-100 {
    width: 100% !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mr-2 {
    margin-right: .5rem !important;
}

.mb-2 {
    margin-bottom: .5rem !important;
}

.mt-3,
.my-3 {
    margin-top: 1rem !important;
}

.my-3 {
    margin-bottom: 1rem !important;
}

.mt-4,
.my-4 {
    margin-top: 1.5rem !important;
}

.my-4 {
    margin-bottom: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.p-2 {
    padding: .5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-danger {
    color: #ff6bcb !important; /* Adjusted to theme */
}

.text-warning {
    color: #b47dff !important; /* Adjusted to theme */
}

.text-muted {
    color: #a094d6 !important;
}

.text-o {
    color: #8a4af3 !important;
}

.text-small {
    font-size: 14px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1325; /* Dark purple track */
    border: 1px solid #3d2a6b;
}

::-webkit-scrollbar-thumb {
    background: #8a4af3; /* Vibrant purple thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #b47dff; /* Lighter violet on hover */
}

/* Hero Section */
.hero {
    padding: 6rem 0 0;
}

.hero h1 {
    font-size: 4.3rem;
    line-height: 4.3rem;
}

.sub-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #a094d6; /* Muted violet subtext */
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: auto;
}

.gardient-primary {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(34deg, #8a4af3, #ff6bcb);
}

/* Demo Player */
#demo-player .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#demo-player .wrapper .nav {
    background-color: #2a1e47;
    border-radius: .5rem;
    width: auto;
    display: flex;
    gap: .2rem;
    padding: .2rem;
    transition: box-shadow 0.3s;
}

#demo-player .wrapper .nav .nav-item,
main {
    flex-grow: 1;
}

#demo-player .wrapper .nav .nav-item .nav-link {
    background-color: transparent;
    color: #d4c1ff;
    border: 0;
    border-radius: .3rem;
    width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

#demo-player .wrapper .nav .nav-item .nav-link.active {
    background-color: #8a4af3;
    color: #fff;
}

#demo-player .wrapper .tab-content {
    max-width: 800px;
    width: 100%;
}

#demo-player .wrapper .tab-content input:first-child {
    border-radius: .5rem 0 0 .5rem;
}

#demo-player #inputs[type=movie] input:first-child {
    border-radius: .5rem !important;
}

#demo-player #inputs[type=tv] input:nth-child(n+4) {
    display: none !important;
}

#demo-player #inputs[type=tv] input:nth-child(3) {
    border-radius: 0 .5rem .5rem 0;
}

#demo-player #inputs[type=anime] input:nth-child(4) {
    border-radius: .5rem 0 0 .5rem;
}

#demo-player #inputs[type=anime] input:nth-child(5),
#demo-player .wrapper .tab-content input:nth-child(2) {
    border-radius: 0;
}

#demo-player #inputs[type=anime] input:nth-child(6) {
    border-radius: 0 .5rem .5rem 0;
}

#demo-player #inputs[type=anime] input:nth-child(-n+3) {
    display: none !important;
}

#demo-player #inputs[type=anime] input:nth-last-child(-n+2) {
    display: none !important;
}

#demo-player #inputs[type=manga] input:nth-child(-n+6) {
    display: none !important;
}

#demo-player #inputs[type=manga] input:nth-child(7) {
    border-radius: .5rem 0 0 .5rem;
}

#demo-player .wrapper .tab-content input:last-child {
    border-radius: 0 .5rem .5rem 0;
}

#demo-player .wrapper .player-main {
    transition: transform 0.3s;
    background-color: #1a1325;
    border-radius: .5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #3d2a6b;
}

/* Features */
#features .feature-ico {
    width: 5rem;
    height: 5rem;
}

/* Example Boxes */
.ex-box > div {
    border: 1px solid #3d2a6b;
    background: #2a1e47;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.ex-box > div:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: calc(100% + 2px);
    width: calc(100% + 2px);
    transform: translate(-1px, -1px);
    z-index: -1;
    border-radius: .6rem;
}

.ex-box > div h5 {
    font-size: 1.2rem;
    color: #e8d9ff;
}

.ex-box > div:hover {
    background: #3d2a6b;
    border-color: #8a4af3;
    box-shadow: 0 0 10px rgba(138, 74, 243, 0.3);
}

.ex-box.more-height > div {
    height: 18rem;
}

/* Sections */
.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 3rem;
    width: 100%;
    text-align: center;
    background: linear-gradient(45deg, #8a4af3, #ff6bcb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* API Section */
#api .copy-quote > div {
    position: relative;
    flex-grow: 1;
}

#api .copy-quote > div input {
    background-color: #2a1e47;
    color: #d4c1ff;
    border-radius: .5rem;
    padding: .4rem .7rem;
    border: 1px solid #3d2a6b;
    width: 100%;
    font-family: "Ubuntu Mono", monospace;
}

#api .copy-quote > div button {
    position: absolute;
    right: .7rem;
    top: 0;
    bottom: 0;
    margin: auto 0;
    padding: 0;
    color: #a094d6;
    font-size: 0;
    transition: font-size 0.3s;
}

#api .copy-quote > div button:hover {
    color: #ff6bcb;
}

#api .copy-quote > div:hover button {
    font-size: 1rem;
}

#api .card .card-header {
    background-color: hsl(260, 50%, 15%);
    transition: background-color 0.3s;
    border-bottom: 1px solid #3d2a6b;
}

#api .card .card-header button {
    pointer-events: none;
}

#api .card .card-header:hover {
    background-color: #2a1e47;
}

#api .card .card-body {
    background-color: #231b3b;
}

#api .card h6 {
    margin-top: 1.5rem;
    color: #a094d6;
}

#api .card p {
    margin-bottom: 0;
}

#api .card {
    border: 1px solid #3d2a6b;
}

/* Footer */
footer {
    color: #a094d6;
    border-top: 1px solid #3d2a6b;
    background-color: #1a1325;
    position: relative;
}

.logo {
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1399.98px) {
    .section-padding {
        padding: 8rem 0;
    }
}

@media (max-width: 960px) {
    iframe {
        height: 420px !important;
    }
}

@media (max-width: 800px) {
    .hero h1 {
        font-size: 3.6rem;
        line-height: 3.6rem;
    }
    .section-title {
        font-size: 2.3rem;
    }
    .ex-box.more-height > div {
        height: 15rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.1rem;
        line-height: 2.4rem;
    }
    #demo-player .wrapper .nav {
        width: unset;
    }
    header .wrapper ul li a {
        padding: .5rem !important;
    }
    .section-padding {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-title,
    .sub-text {
        text-align: center;
    }
    .ex-box.more-height > div {
        align-items: center;
        text-align: center;
        height: unset;
    }
    iframe {
        height: 220px !important;
    }
}

@media (max-width: 370.9px) {
    #demo-player .wrapper .nav .nav-item .nav-link {
        font-size: .8rem;
    }
}

/* Iframe */
iframe {
    border: 0;
    width: 100%;
}

#inputs[type=movie] input:not(:first-child) {
    display: none !important;
}

/* Body Wrapper */
.body-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Additional Classes */
.font-semibold {
    font-weight: 600;
}

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    background-clip: text;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, #8a4af3, #ff6bcb);
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Print Styles */
@media print {
    *,
    ::after,
    ::before {
        text-shadow: none !important;
        box-shadow: none !important;
    }
    a:not(.btn) {
        text-decoration: underline;
    }
    img {
        page-break-inside: avoid;
    }
    h2,
    p {
        orphans: 3;
        widows: 3;
    }
    h2 {
        page-break-after: avoid;
    }
    .container,
    body {
        min-width: 992px !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .btn {
        transition: none;
    }
}