/* Resets and Base */
:root {
    --bg-main: #0d1117;
    --bg-card: #161b22;
    --bg-element: #1c2128;
    --bg-hover: #30363d;

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    --border-light: #30363d;
    --border-dark: #21262d;

    --primary-gradient-start: #ec4899;
    /* Pink 500 */
    --primary-gradient-end: #8b5cf6;
    /* Violet 500 */

    --primary-pink: #db2777;
    /* Pink 600 */
    --primary-pink-hover: #be185d;
    /* Pink 700 */

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-hard: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Custom Utilities */
.location-tag {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.70rem;
    padding: 4px 10px;
    margin: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.025em;
    /* Removed heavy shadow/border */
}

.glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
}

/* Layout Utilities (mimicking minimal Tailwind) */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

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

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

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

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

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

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

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

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

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.hidden {
    display: none;
}

.block {
    display: block;
}

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

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

.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-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

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

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

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

/* Toggle Switch Implementation */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-label {
    position: relative;
    display: block;
    width: 2.25rem;
    /* w-9 */
    height: 1.25rem;
    /* h-5 */
    background-color: #475569;
    /* bg-slate-600 */
    border-radius: 9999px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.toggle-label:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    /* h-4 */
    height: 1rem;
    /* w-4 */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: var(--primary-pink);
    /* bg-pink-600 */
}

.toggle-checkbox:checked+.toggle-label:after {
    transform: translateX(100%);
}

.toggle-checkbox:focus+.toggle-label {
    box-shadow: 0 0 0 2px var(--primary-pink);
}

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

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

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

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

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

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

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

.ml-auto {
    margin-left: auto;
}

/* Size */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.h-screen {
    height: 100vh;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

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

.max-w-xl {
    max-width: 36rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

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

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

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

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

.text-2xl {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

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

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

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

.uppercase {
    text-transform: uppercase;
}

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

.leading-snug {
    line-height: 1.375;
}

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

.whitespace-nowrap {
    white-space: nowrap;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.max-w-xs {
    max-width: 20rem;
}

/* Colors & Backgrounds */
.bg-slate-900 {
    background-color: var(--bg-main);
}

.bg-slate-800 {
    background-color: var(--bg-card);
}

.bg-slate-700 {
    background-color: var(--bg-element);
}

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

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

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

.text-slate-300 {
    color: #cbd5e1;
}

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

.text-slate-500 {
    color: var(--text-muted);
}

.text-pink-500 {
    color: #ec4899;
}

.text-red-400 {
    color: #f87171;
}

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

.hover\:text-pink-400:hover {
    color: #f472b6;
}

.hover\:text-pink-500:hover {
    color: #ec4899;
}

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

/* Borders & Radius */
.border {
    border-width: 1px;
}

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

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

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

.border-slate-700 {
    border-color: var(--border-light);
}

.border-slate-800 {
    border-color: var(--border-dark);
}

.rounded {
    border-radius: 0.375rem;
}

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

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

/* Effects */
.shadow-lg {
    box-shadow: var(--shadow-hard);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition-colors {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.transition-transform {
    transition: transform 0.2s;
}

.transition-opacity {
    transition: opacity 0.2s;
}

.transition-all {
    transition: all 0.2s;
}

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

/* Components */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #be185d 100%);
    color: white;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    /* Removed shadow */
}

.input-dark {
    background-color: var(--bg-element);
    border: 1px solid var(--border-light);
    color: white;
    transition: all 0.2s;
}

.input-dark:focus {
    border-color: var(--primary-pink);
    outline: none;
    /* Removed shadow */
}

/* Specific Card Style Overrides */
.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hard);
    border-color: #64748b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Positioning helper additions */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

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

.top-0 {
    top: 0;
}

.top-2 {
    top: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.bottom-2 {
    bottom: 0.5rem;
}

.left-0 {
    left: 0;
}

.bottom-full {
    bottom: 100%;
}

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

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

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

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

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

.overflow-hidden {
    overflow: hidden;
}

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

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

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, #ec4899, #8b5cf6);
}

/* Missing from original file but needed */
.shrink-0 {
    flex-shrink: 0;
}

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

.aspect-video {
    aspect-ratio: 16 / 9;
}

.cursor-pointer {
    cursor: pointer;
}

.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;
}

.bg-purple-900 {
    background-color: #581c87;
}

.text-purple-300 {
    color: #d8b4fe;
}

.border-purple-800 {
    border-color: #6b21a8;
}

.bg-green-900 {
    background-color: #14532d;
}

.text-green-300 {
    color: #86efac;
}

.border-green-800 {
    border-color: #166534;
}

.bg-yellow-900 {
    background-color: #713f12;
}

.text-yellow-300 {
    color: #fde047;
}

.border-yellow-800 {
    border-color: #854d0e;
}