/*
  Main CSS Entry Point
  Native imports - no build step required.
*/

/* Tokens */
:root {
    /* --- COLORS: PRIMARY (Emerald - Trust, Peace, Growth) --- */
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-300: #6ee7b7;
    --primary-400: #34d399;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    /* MAIN BRAND COLOR */
    --primary-900: #064e3b;

    /* --- COLORS: SECONDARY (Amber/Gold - Premium, Spiritual) --- */
    --secondary-50: #fffbeb;
    --secondary-100: #fef3c7;
    --secondary-200: #fde68a;
    --secondary-300: #fcd34d;
    --secondary-400: #fbbf24;
    --secondary-500: #f59e0b;
    --secondary-600: #d97706;
    /* ACCENT COLOR */
    --secondary-700: #b45309;
    --secondary-800: #92400e;
    --secondary-900: #78350f;

    /* --- COLORS: NEUTRAL (Slate - Modern, Clean) --- */
    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    /* BORDERS */
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    /* ICONS / SUBTEXT */
    --neutral-600: #475569;
    /* BODY TEXT LIGHT */
    --neutral-700: #334155;
    /* BODY TEXT MAIN */
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    /* HEADINGS */

    /* --- SEMANTIC ALIASES --- */
    --color-primary: var(--primary-600);
    --color-primary-hover: var(--primary-700);

    --color-text: var(--neutral-700);
    --color-text-light: var(--neutral-600);
    --color-text-heading: var(--neutral-900);

    --color-background: var(--neutral-50);
    --color-surface: var(--neutral-0);
    --color-border: var(--neutral-200);

    --color-success: var(--primary-600);
    --color-success-bg: var(--primary-50);
    --color-warning: var(--secondary-700);
    --color-error: #ef4444;
    --color-info: #2563eb;

    /* Header Specific (Royal-Islamic) */
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: var(--primary-200);
    /* Adjusted to match theme */
}
:root {
    /* Font Families */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-base: var(--font-body);
    /* Alias */
    --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
}
:root {
    --spacing-unit: 0.25rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Aliases for t-shirt sizing preference */
    --space-2xs: var(--space-1);
    --space-xs: var(--space-2);
    --space-sm: var(--space-3);
    --space-md: var(--space-4);
    --space-lg: var(--space-6);
    --space-xl: var(--space-8);
    --space-2xl: var(--space-12);
    --space-3xl: var(--space-16);

    --container-width: 1280px;
    --header-height: 4.5rem;
}
:root {
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-full: 9999px;
}
:root {
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base */
/* Modern CSS Reset */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: var(--leading-normal);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Global Base Styles */

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}
/* Base Typography */

h1,
h2,
h3,
h4 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-md);
    max-width: 65ch;
    /* Comfortable reading length */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

small {
    font-size: var(--text-sm);
}

@media (max-width: 640px) {
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }
}

/* Layout */
/* Container Primitive */
.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--space-md);
    max-width: 80rem;
    /* 1280px */
}
/* Grid Primitive */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}
/* Stack Primitive (Owl) */
.stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stack>*+* {
    margin-top: var(--space-md);
}

.stack-sm>*+* {
    margin-top: var(--space-sm);
}

.stack-lg>*+* {
    margin-top: var(--space-lg);
}

/* Components */
/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: var(--leading-tight);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    text-decoration: none;
    color: var(--color-surface);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-background);
    text-decoration: none;
    color: var(--color-text);
}
/* Card Component */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}
/* Tool Card Component (Simplified Link List) */
.tool-card {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    gap: var(--space-4);

    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);

    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.tool-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
    transform: translateY(calc(var(--space-1) * -1));
}

.tool-icon {
    width: var(--space-12);
    height: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
    /* Icon must never shrink */
    color: var(--neutral-800);
}

.tool-label {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: var(--text-base);
    line-height: 1.3;

    flex: 1;
    /* Take remaining space */
    min-width: 0;
    /* Allow flex child to shrink below content size if needed (forces wrap) */
    overflow-wrap: break-word;
    /* Prevent overflow of long words */
    word-break: break-word;
    /* Additional safety */
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .tool-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
        gap: var(--space-3);
        align-items: center;
        justify-content: center;
    }

    .tool-icon {
        width: var(--space-12);
        height: var(--space-12);
        font-size: 1.5rem;
        margin-bottom: var(--space-1);
    }

    .tool-label {
        width: 100%;
        /* Ensure text container takes full width */
    }
}
/* Form Component */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    /* outline: none removed for accessibility */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
/* Badge Component */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--neutral-0);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--neutral-0);
}

.badge-warning {
    background-color: var(--color-warning);
    color: var(--neutral-900);
}

.badge-error {
    background-color: var(--color-error);
    color: var(--neutral-0);
}
/* Hero Component */
.hero {
    padding: var(--space-12) var(--space-4);
    background: linear-gradient(to bottom, var(--primary-50), transparent);
    text-align: center;
}

.hero-content {
    max-width: 50rem;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
}

.hero-description {
    margin: 0 auto;
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    color: var(--neutral-500);
}

@media (max-width: 640px) {
    .hero {
        padding: var(--space-8) var(--space-4);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }
}
/* Header Component */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-800);
    font-weight: 700;
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    text-decoration: none;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* NAV */
.desktop-nav {
    display: flex;
    gap: var(--space-6);
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-700);
    border-bottom-color: var(--primary-500);
}

/* ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.lang-btn {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--neutral-700);
}

.lang-btn:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
}

/* DROPDOWNS */
.lang-selector {
    position: relative;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 10rem;
    padding: var(--space-2);
    z-index: 100;
    flex-direction: column;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.show {
    display: flex;
}

.lang-opt {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--neutral-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.lang-opt:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.lang-opt.active {
    background: var(--neutral-50);
    color: var(--primary-800);
    font-weight: 600;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--neutral-0);
    z-index: 49;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--neutral-200);
}

.mobile-nav.show {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-link {
    padding: var(--space-3);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    text-decoration: none;
    border-bottom: 1px solid var(--neutral-100);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions {
        gap: var(--space-2);
    }
}
/* Footer Component */
.app-footer {
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    padding: var(--space-8) 0;
    margin-top: auto;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }
}

.footer-brand p {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.footer-explore {
    display: flex;
    gap: var(--space-4);
    padding-right: var(--space-4);
    border-right: 1px solid var(--neutral-200);
    margin-right: var(--space-4);
}

@media (max-width: 768px) {
    .footer-explore {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid var(--neutral-200);
        padding-bottom: var(--space-4);
    }
}

.footer-nav a {
    color: var(--neutral-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}
/* Breadcrumb Component */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: var(--space-2) 0;
    margin-bottom: var(--space-4);
    list-style: none;
    background-color: transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: var(--space-2);
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: var(--space-2);
    color: var(--neutral-400);
    content: "/";
}

.breadcrumb-item a {
    color: var(--primary-600);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--primary-800);
}

.breadcrumb-item.active {
    color: var(--neutral-500);
}
/* Zone Card (Legacy Celestial) Component */
.celestial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.celestial-card {
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.celestial-card:hover {
    transform: translateY(calc(var(--space-1) * -1));
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

/* Top accent bar */
.celestial-aurora-bg {
    height: var(--space-1);
    background: linear-gradient(to right, var(--primary-500), var(--secondary-400));
    width: 100%;
}

.celestial-content {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.celestial-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.celestial-icon {
    width: var(--space-12);
    height: var(--space-12);
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.celestial-icon.sm {
    width: var(--space-10);
    height: var(--space-10);
    font-size: 1.25rem;
}

.celestial-title-group {
    flex: 1;
}

.celestial-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.celestial-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

@media (max-width: 640px) {
    .celestial-content {
        padding: var(--space-3);
    }

    .celestial-header {
        gap: var(--space-2);
    }
}

.celestial-title a:hover {
    color: var(--primary-700);
}

.celestial-area {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--primary-700);
    background: var(--primary-50);
    padding: 0.125rem var(--space-2);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.celestial-divider {
    height: 0.0625rem;
    background: var(--neutral-100);
    margin: var(--space-4) 0;
}

.celestial-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex-grow: 1;
}

.celestial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
}

.celestial-label {
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.celestial-value {
    color: var(--neutral-700);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    /* Prevent overflow */
}

.celestial-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.celestial-link:hover {
    text-decoration: underline;
}

/* Favorite Button */
.fav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--neutral-400);
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    padding: 0;
}

.fav-btn:hover {
    color: var(--primary-500);
    transform: scale(1.1);
}

.fav-btn.active {
    color: var(--primary-600);
}
/* Video Detail Page Styles */

/* Helper / Typography Override */
.font-playfair {
    font-family: 'Playfair Display', serif;
}


/* Layout */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Main Player */
.aspect-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
}

.video-frame {
    width: 100%;
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    overflow: hidden;
    position: relative;
    /* Ring effect simulation */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Left Column: Highlights */
.highlights-card {
    background-color: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-xl, 1rem);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .highlights-card {
        padding: 2rem;
    }
}

.highlights-title {
    color: var(--primary-900);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.highlight-dot {
    display: block;
    width: 0.375rem;
    height: 0.375rem;
    margin-top: 0.6rem;
    border-radius: 9999px;
    background-color: var(--primary-500);
    flex-shrink: 0;
}

.highlight-text {
    color: var(--neutral-700);
    line-height: 1.625;
    font-weight: 500;
}

/* Right Column: Timestamps */
.timestamps-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.timestamps-header {
    background-color: var(--neutral-50);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--neutral-100);
}

.timestamps-title {
    font-weight: 700;
    color: var(--neutral-800);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.timestamps-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Custom Scrollbar for list */
.timestamps-list::-webkit-scrollbar {
    width: 6px;
}

.timestamps-list::-webkit-scrollbar-track {
    background: transparent;
}

.timestamps-list::-webkit-scrollbar-thumb {
    background-color: var(--neutral-200);
    border-radius: 3px;
}

.timestamp-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: var(--radius-lg, 0.5rem);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.timestamp-btn:hover {
    background-color: var(--primary-50);
}

.timestamp-time {
    font-family: monospace;
    font-size: 0.75rem;
    background-color: var(--neutral-100);
    color: var(--neutral-600);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: colors 0.2s;
}

.timestamp-btn:hover .timestamp-time {
    background-color: var(--primary-100);
    color: var(--primary-700);
}

.timestamp-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
    line-height: 1.4;
    padding-top: 0.125rem;
    transition: color 0.2s;
}

.timestamp-btn:hover .timestamp-label {
    color: var(--primary-900);
}

/* Navigation Links */
.nav-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 1rem);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-card:hover {
    border-color: var(--secondary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.nav-top {
    font-size: 0.75rem;
    color: var(--neutral-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-card:hover .nav-top {
    color: var(--secondary-600);
}

.nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.4;
    /* line-clamp-2 equivalent */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card:hover .nav-title {
    color: var(--secondary-900);
}

/* Subscription Buttons */
.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    /* neutral-100 */
}

.btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff;
    transition: all 0.2s;
    width: fit-content;
    /* Strictly fit content */
    flex: none;
    /* Do not grow or shrink */
}

/* @media (min-width: 640px) removed, using auto width globally */

.btn-sub-youtube {
    background-color: #FF0000;
}

.btn-sub-youtube:hover {
    background-color: #CC0000;
}

.btn-sub-whatsapp {
    background-color: #25D366;
}

.btn-sub-whatsapp:hover {
    background-color: #128C7E;
}
.hgj-install-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    /* Show at bottom */
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hgj-install-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.hgj-install-modal {
    background: var(--surface-color, #fff);
    width: 100%;
    max-width: 500px;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    position: relative;
    font-family: inherit;
}

.hgj-install-modal-overlay.show .hgj-install-modal {
    transform: translateY(0);
}

.hgj-install-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color, #333);
    line-height: 1;
}

.hgj-install-modal h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--primary-color, #047857);
}

.hgj-install-modal ol {
    padding-left: 20px;
    margin: 0;
    line-height: 1.6;
}

.hgj-install-modal li {
    margin-bottom: 12px;
}

.hgj-install-modal li strong {
    font-weight: 600;
}
/* Utilities */
/* Visually Hidden Utility */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}
/* Text Alignment Utilities */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}
/* Spacing Utilities */

/* Margin Top */
.mt-xs {
    margin-top: var(--space-xs);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

/* Margin Bottom */
.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}
/* 
  Compatibility Utilities 
  Matches the specific utility classes used in existing PHP templates 
  (e.g., text-3xl, text-primary-700, border-l-4, etc.)
*/

/* Text Colors */
.text-primary-600 {
    color: var(--primary-600);
}

.text-primary-700 {
    color: var(--primary-700);
}

.text-neutral-800 {
    color: var(--neutral-800);
}

.text-sub {
    color: var(--neutral-500);
}

/* Font Sizes */
.text-sm {
    font-size: var(--text-sm);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-3xl {
    font-size: var(--text-3xl);
}

.text-4xl {
    font-size: var(--text-4xl);
}

/* Font Weights */
.font-bold {
    font-weight: 700;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

/* Grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\: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));
    }
}

/* Sizing */
.w-12 {
    width: var(--space-12);
}

.h-12 {
    height: var(--space-12);
}

.w-full {
    width: 100%;
}

/* Borders & Backgrounds */
.bg-primary-50 {
    background-color: var(--primary-50);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.hover\:shadow-md:hover {
    box-shadow: var(--shadow-md);
}

.transition-all {
    transition: all 0.2s ease;
}

.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-l-primary-200 {
    border-left-color: var(--primary-200);
}

/* Margins (ad-hoc) */
.m-0 {
    margin: 0;
}

/* Layout Sizing & Overflow (Admin Fixes) */
.h-screen {
    height: 100vh;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.flex-grow {
    flex-grow: 1;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.shrink-0 {
    flex-shrink: 0;
}


/* Admin / Status Utilities */
.bg-success-bg {
    background-color: var(--color-success-bg);
}

.text-success-text {
    color: var(--color-success);
}

.bg-error-bg {
    background-color: var(--error-bg, #fef2f2);
}

.text-error-text {
    color: var(--color-error);
}

.text-error-600 {
    color: var(--color-error);
}

.border-l-error-600 {
    border-left-color: var(--color-error);
}

.border-l-primary-600 {
    border-left-color: var(--primary-600);
}

/* Table Utilities */
.border-collapse {
    border-collapse: collapse;
}

.divide-y>*+* {
    border-top: 1px solid var(--neutral-100);
}

.hover\:bg-neutral-50:hover {
    background-color: var(--neutral-50);
}

.bg-neutral-50 {
    background-color: var(--neutral-50);
}

.border-neutral-200 {
    border-color: var(--neutral-200);
}

.text-right {
    text-align: right;
}

.p-2 {
    padding: var(--space-2);
}

.p-4 {
    padding: var(--space-4);
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-hidden {
    overflow: hidden;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-neutral-300 {
    border-color: var(--neutral-300);
}

/* Grid Responsive (Admin Index) */
.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}