/* Base Reset */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    /* vertical-align: middle; - Removed as it has no effect on block elements */
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    line-height: inherit;
    color: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

button:focus {
    outline: 1px dotted;
    outline: 5px auto -webkit-focus-ring-color;
}

/* Utilities */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0px;
}

.left-0 {
    left: 0px;
}

.right-4 {
    right: 1rem;
}

.bottom-0 {
    bottom: 0px;
}

.bottom-2 {
    bottom: 0.5rem;
}

.bottom-4 {
    bottom: 1rem;
}

.bottom-8 {
    bottom: 2rem;
}

.top-1\/2 {
    top: 50%;
}

.top-1 {
    top: 0.25rem;
}

.top-2 {
    top: 0.5rem;
}

.left-4 {
    left: 1rem;
}

.left-2 {
    left: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

.space-x-2> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-1> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-4> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-8> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-32 {
    width: 8rem;
}

.w-36 {
    width: 9rem;
}

.w-40 {
    width: 10rem;
}

.w-48 {
    width: 12rem;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.h-24 {
    height: 6rem;
}

.h-64 {
    height: 16rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.m-0 {
    margin: 0px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-1\.5 {
    margin-bottom: 0.375rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-1\.5 {
    margin-right: 0.375rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-10 {
    padding-top: 2.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-\[8px\] {
    font-size: 8px;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-sans {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-sky-500 {
    background-color: #0ea5e9;
}

.bg-pink-600 {
    background-color: #db2777;
}

.bg-green-600 {
    background-color: #16a34a;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-sky-600:hover {
    background-color: #0284c7;
}

.hover\:bg-pink-700:hover {
    background-color: #be185d;
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black {
    --tw-gradient-from: #000;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/50 {
    --tw-gradient-to: rgba(0, 0, 0, 0);
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.5), var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.from-accent\/10 {
    --tw-gradient-from: rgba(var(--accent-color-rgb, 217, 119, 6), 0.1);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(217, 119, 6, 0));
}

.border-accent\/30 {
    border-color: rgba(var(--accent-color-rgb, 217, 119, 6), 0.3);
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

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

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.transform {
    transform: var(--tw-transform);
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translateY(-50%);
}

.translate-y-20 {
    --tw-translate-y: 5rem;
    transform: translateY(5rem);
}

.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
}

.transition-transform {
    transition-property: transform;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-accent {
    color: var(--accent-color);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-accent:focus {
    border-color: var(--accent-color);
}

.focus\:ring-1:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-accent:focus {
    --tw-ring-color: var(--accent-color);
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:text-primary:hover {
    color: var(--text-primary);
}

.hover\:bg-tertiary:hover {
    background-color: var(--tertiary-bg);
}

.hover\:bg-secondary:hover {
    background-color: var(--secondary-bg);
}

.hover\:bg-primary:hover {
    background-color: var(--primary-bg);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.aspect-\[2\/3\] {
    aspect-ratio: 2/3;
}

/* Custom Scrollbar for dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

/* Media Queries */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .md\:w-1\/3 {
        width: 33.333333%;
    }

    .md\:w-1\/4 {
        width: 25%;
    }

    .md\:h-96 {
        height: 24rem;
    }

    .md\:p-8 {
        padding: 2rem;
    }

    .md\:p-3 {
        padding: 0.75rem;
    }

    .md\:p-5 {
        padding: 1.25rem;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .md\:w-36 {
        width: 9rem;
    }

    .md\:w-48 {
        width: 12rem;
    }

    .md\:gap-4 {
        gap: 1rem;
    }

    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .md\:py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .md\:inline {
        display: inline;
    }

    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:w-3\/4 {
        width: 75%;
    }

    .lg\:w-1\/4 {
        width: 25%;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:block {
        display: block;
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f3f4f6;
    /* Gray-100 */
    --secondary-bg-rgb: 243, 244, 246;
    --tertiary-bg: #e5e7eb;
    /* Gray-200 */
    --accent-color: #d97706;
    /* Amber-600 (Darker Gold for Light Mode contrast) */
    --accent-color-rgb: 217, 119, 6;
    /* RGB values for accent color */
    --accent-hover: #b45309;
    /* Amber-700 */
    --text-primary: #111827;
    /* Gray-900 */
    --text-secondary: #374151;
    /* Gray-700 */
    --text-tertiary: #6b7280;
    /* Gray-500 */
    --border-color: #d1d5db;
    /* Gray-300 */
    --border-hover: #9ca3af;
    /* Gray-400 */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: #d1d5db;
    --scrollbar-thumb-hover: #9ca3af;
    --secondary-accent-color: #000000;
    --deep-dark-bg: rgb(17, 19, 25);
    --success-color-direct: #059669;
}

html.dark {
    --primary-bg: #141414;
    /* Deep Dark Background */
    --secondary-bg: #1f1f1f;
    /* Slightly Lighter for cards */
    --secondary-bg-rgb: 31, 31, 31;
    --tertiary-bg: #2b2b2b;
    /* Borders/Separators */
    --accent-color: #ffcc00;
    /* LK21 Gold */
    --accent-color-rgb: 255, 204, 0;
    /* RGB values for accent color in dark mode */
    --accent-hover: #e6b800;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    /* Lighter gray for readability */
    --text-tertiary: #808080;
    --border-color: #333333;
    --border-hover: #444444;
    --card-shadow: rgba(0, 0, 0, 0.7);
    --scrollbar-track: #141414;
    --scrollbar-thumb: #333333;
    --scrollbar-thumb-hover: #ffcc00;
    /* Gold Scrollbar */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Classes */
.bg-primary {
    background-color: var(--primary-bg);
}

.bg-secondary {
    background-color: var(--secondary-bg);
}

.bg-tertiary {
    background-color: var(--tertiary-bg);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-accent {
    color: var(--accent-color);
}

.border-primary {
    border-color: var(--border-color);
}

.border-secondary {
    border-color: var(--border-hover);
}

.border-accent {
    border-color: var(--accent-color);
}

.hover-bg-accent:hover {
    background-color: var(--accent-hover);
}

.hover-text-accent:hover {
    color: var(--accent-hover);
}

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--tertiary-bg);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.movie-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.2rem;
    color: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-quality {
    background-color: #00acc1;
    /* Cyan for Quality like LK21 */
    color: #fff;
}

.badge-rating {
    background-color: var(--accent-color);
    /* Gold for Rating */
    color: #000;
}

.badge-year {
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark transparent for Year */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-duration {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-button-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* --- Added Utilities for Inner Pages --- */

/* Text Sizes */
.text-9xl {
    font-size: 8rem;
    line-height: 1;
}

@media (min-width: 1024px) {
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* Animations */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Layout & Spacing */
.min-h-\[60vh\] {
    min-height: 60vh;
}

.min-w-\[70px\] {
    min-width: 70px;
}

.select-none {
    user-select: none;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

/* Colors - Gray Scale (Mapping to variables or fixed) */
.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.border-gray-700 {
    border-color: #374151;
}

.border-gray-800 {
    border-color: #1f2937;
}

.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

/* Specific Colors & Opacities */
.bg-yellow-500 {
    background-color: #eab308;
}

.hover\:bg-yellow-500:hover {
    background-color: #eab308;
}

.bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}

.border-red-500 {
    border-color: #ef4444;
}

.text-red-500 {
    color: #ef4444;
}

.bg-blue-500\/20 {
    background-color: rgba(59, 130, 246, 0.2);
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.shadow-blue-500\/50 {
    --tw-shadow-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Overlays */
.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-black\/70 {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Additional Media Queries if needed */
@media (min-width: 1024px) {
    .lg\:w-3\/4 {
        width: 75%;
    }

    .lg\:w-1\/4 {
        width: 25%;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:block {
        display: block;
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* --- Missing Utility Classes added during refactor --- */

:root {
    --tertiary-bg-rgb: 233, 236, 239;
}

html.dark {
    --tertiary-bg-rgb: 42, 42, 42;
}

/* --- Eye Catching & Premium Styles --- */

/* Announcement Bar Animation */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Gradients Helper */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-accent {
    --tw-gradient-from: var(--accent-color);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-yellow-600 {
    --tw-gradient-to: #d97706;
}

/* Premium Flowing Gradient Effect for Announcement */
.bg-gradient-to-r.from-accent.to-yellow-600 {
    background: linear-gradient(270deg, var(--accent-color), #d97706, #fbbf24, var(--accent-color));
    background-size: 300% 300%;
    animation: shimmer 6s ease infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Link Badge Style */
.announcement-link-badge {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.announcement-link-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

/* Text Glow Effect */
.text-glow {
    text-shadow: 0 0 10px rgba(var(--accent-color-rgb, 255, 215, 0), 0.5);
}

.bg-accent {
    background-color: var(--accent-color);
}

.hover\:bg-accent:hover {
    background-color: var(--accent-hover);
}

.hover\:bg-accent\/90:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
}

.bg-secondary\/50 {
    background-color: rgba(var(--secondary-bg-rgb), 0.5);
}

.bg-tertiary\/50 {
    background-color: rgba(var(--tertiary-bg-rgb), 0.5);
}

.bg-white\/50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.font-normal {
    font-weight: 400;
}

.object-cover {
    object-fit: cover;
}

.movie-card img {
    image-rendering: -webkit-optimize-contrast;
    /* Webkit (Chrome, Safari) */
    image-rendering: crisp-edges;
    /* Firefox */
}


.movie-card img {
    image-rendering: -webkit-optimize-contrast;
    /* Webkit (Chrome, Safari) */
    image-rendering: crisp-edges;
    /* Firefox */
    transition: transform 0.3s ease;
}

.movie-card:hover img {
    transform: scale(1.1);
}

.overflow-hidden {
    overflow: hidden;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.h-96 {
    height: 24rem;
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

/* --- Server Loading Overlay (from movie.php) --- */
.server-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-bg);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.server-loading-overlay.show {
    display: flex !important;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    animation: spinner-spin 1s linear infinite;
}

.spinner-ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--secondary-accent-color);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 1rem;
}

@keyframes spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--tertiary-bg);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform-origin: left;
    animation: progress-indeterminate 1.5s infinite linear;
}

@keyframes progress-indeterminate {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(0.5);
    }

    100% {
        transform: scaleX(1);
        transform-origin: right;
    }
}

.min-h-\[80vh\] {
    min-height: 80vh;
}

.h-\[60px\] {
    height: 60px;
}

/* Positioning Utilities */
.fixed {
    position: fixed;
}

.bottom-8 {
    bottom: 2rem;
}

.right-8 {
    right: 2rem;
}

.z-50 {
    z-index: 50;
}

/* --- Video Player & Sizing Utilities --- */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

/* Mega Menu Utilities */
.w-\[600px\] {
    width: 600px;
}

.w-\[300px\] {
    width: 300px;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.max-h-96 {
    max-height: 24rem;
}

/* Carousel Utilities */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

.snap-start {
    scroll-snap-align: start;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.flex-none {
    flex: none;
}

.w-\[85\%\] {
    width: 85%;
}

.w-\[60\%\] {
    width: 60%;
}

.w-\[45\%\] {
    width: 45%;
}

.w-\[31\%\] {
    width: 31%;
}

.w-\[23\%\] {
    width: 23%;
}

.w-\[15\.6\%\] {
    width: 15.6%;
}

.w-\[47\%\] {
    width: 47%;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Video Player Controls Styling
   ======================================== */

/* Controls Bar Container */
.player-controls-bar {
    background-color: var(--tertiary-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1rem;
}

/* Controls Container */
.player-controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* Control Button Base */
.player-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}


.player-control-btn:hover {
    background-color: var(--primary-bg);
    border-color: var(--accent-color);
    box-shadow: 0 2px 4px 0 rgba(var(--accent-color-rgb), 0.2);
    transform: translateY(-1px);
}

.player-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Report Button - Special Styling */
.player-control-btn-report {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border-color: #991b1b;
}

.player-control-btn-report:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #7f1d1d;
    box-shadow: 0 2px 4px 0 rgba(220, 38, 38, 0.3);
}

html.dark .player-control-btn-report {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #b91c1c;
}

html.dark .player-control-btn-report:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #991b1b;
    box-shadow: 0 2px 4px 0 rgba(239, 68, 68, 0.4);
}

/* Icon Styling */
.player-control-btn i {
    font-size: 1rem;
    color: var(--accent-color);
    opacity: 0.9;
}

.player-control-btn:hover i {
    opacity: 1;
}

.player-control-btn-report i {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 640px) {
    .player-controls-bar {
        padding: 0.75rem 0.5rem;
    }

    .player-controls-container {
        gap: 0.5rem;
    }

    .player-control-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .player-control-btn i {
        font-size: 0.875rem;
    }

    .player-control-btn span {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .player-control-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Focus States for Accessibility */
.player-control-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.player-control-btn-report:focus {
    outline-color: #dc2626;
}

html.dark .player-control-btn-report:focus {
    outline-color: #ef4444;
}