:root {
    --color-primary: #19907c;
    --color-bg: #f8f9fc;
    --color-bg-2: #e3e5f0;
    --color-bg-3: #ffffff;
    --color-a: #2563eb;
    --color-b: #7c3aed;
    --color-c: #e11d48;
    --color-d: #19907c;
    --color-e: #0E1019;
    --color-f: #f1f2f8;
    --color-g: #707488;
}

[data-theme="dark"] {
    --color-primary: #19907c;
    --color-bg: #0E1019;
    --color-bg-2: #191D2D;
    --color-bg-3: #151825;
    --color-a: #60a5fa;
    --color-b: #c084fc;
    --color-c: #fb7185;
    --color-d: #19907c;
    --color-e: #BFC3D4;
    --color-f: #151825;
    --color-g: #707488;
}

body {
    background-color: var(--color-bg);
    color: var(--color-e);
    font-family: 'QleeArabicFont', sans-serif;
}

@font-face {
    font-family: 'QleeArabicFont';
    src: url('../assets/fonts/QleeArabicFont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

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

@keyframes winner-celebration {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }

    15% {
        transform: translateY(0) scale(1.1);
        opacity: 1;
    }

    25% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    75% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-150px) scale(0.8);
        opacity: 0;
    }
}

.animate-winner-celebration {
    animation: winner-celebration 4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes custom-confetti-cannon {
    0% {
        transform: translate(0, 0) scale(0.5) rotate(0deg);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot));
        opacity: 0;
    }
}

.animate-cannon {
    animation-name: custom-confetti-cannon;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    animation-fill-mode: forwards;
}

.pulse-live {
    animation: pulse-red 2s ease-in-out infinite;
}


@media (max-width: 1023px) {
    body {
        padding-bottom: 80px;
    }
}

/* Match Details Animations */
@keyframes slideInUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

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

@keyframes slideOutDownFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
}

.animate-match-enter {
    animation: slideInUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-match-exit {
    animation: slideOutDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* For swapping content (Fade) */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

.animate-fade-in-scale {
    animation: fadeInScale 0.3s ease-out forwards;
}

.animate-fade-out-scale {
    animation: fadeOutScale 0.2s ease-in forwards;
}

/* Custom Animations for Skeleton and Pin */
.animate-pulse {
    animation-duration: 1s !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes bounceSmall {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.animate-bounce-small {
    animation: bounceSmall 2s infinite ease-in-out;
}

div#matchTabContent {
    height: auto;
}

div#lineupView-away {
    margin-top: 0 !important;
}

/* Extracted from index.html */
.hide-dark {
    display: block;
}

.hide-light {
    display: none;
}

[data-theme="dark"] .hide-dark {
    display: none;
}

[data-theme="dark"] .hide-light {
    display: block;
}

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

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

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

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

/* Smooth transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search input enhanced */
.search-enhanced {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-enhanced:focus-within {
    border: 1px solid var(--color-bg-2);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-2);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-bg-3);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--color-primary);
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loader {
    border: 3px solid var(--color-bg-3);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Max width container */
.max-w-custom {
    max-width: 1280px;
}

/* Mobile menu animation */
.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced dropdown animation */
.dropdown-enhanced {
    animation: dropdownEnhanced 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownEnhanced {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Search pulse animation */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.search-pulse {
    animation: searchPulse 2s infinite;
}

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

[data-theme="dark"] .glass {
    background: rgba(21, 24, 37, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* Enter from Top Animation */
@keyframes enterFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-enter-from-top {
    animation: enterFromTop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scale From Origin Animation */
@keyframes scaleFromOrigin {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

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

.animate-scale-from-origin {
    animation: scaleFromOrigin 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: var(--origin-x, center) var(--origin-y, center);
}

/* Slide Left/Right Animations */
@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-left {
    animation: slideLeft 0.3s ease-out forwards;
}

.animate-slide-right {
    animation: slideRight 0.3s ease-out forwards;
}

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

.filter-dropdown-enter {
    animation: dropdownSlideDown 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}


@media (max-width: 1023px) {
    #filterDropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 0 30px 30px !important;
        z-index: 10000 !important;
        /* Above overlay */
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
        opacity: 0;
        pointer-events: none;
        display: block !important;
    }

    #filterDropdown.active-mobile {
        pointer-events: auto;
        transform: translateY(0);
        opacity: 1;
    }

    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 9999;
        /* Increased to cover bottom nav */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        display: block;
    }

    .filter-overlay.active {
        pointer-events: auto;
        opacity: 1;
    }
}

.filter-dropdown-leave {
    animation: dropdownSlideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

aside#matchesSection {
    margin-top: 8px;
}

/* Date Slider Styles */
.date-item {
    flex: 0 0 auto;
    width: 65px;
    height: 75px;
    display: flex;
    flex-col: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: var(--color-f);
    border: 1px solid var(--color-bg-2);
}

.date-item.active {
    background: var(--color-primary);
    transform: scale(1.05);
}

.date-item.active .date-day-name,
.date-item.active .date-day-num,
.date-item.active .date-month {
    color: white !important;
}

/* RTL Flip Utility */
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
    display: inline-block;
}

.date-item .date-day-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.date-item .date-day-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-e);
    line-height: 1.2;
}

.date-item .date-month {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-muted);
    opacity: 0.8;
}

.date-item:hover:not(.active) {
    background: var(--color-bg-2);
    transform: translateY(-2px);
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

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

@keyframes collapseUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 800px;
    }

    60% {
        opacity: 0.4;
        transform: translateY(-4px);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }
}

.animate-collapse-up {
    overflow: hidden;
    animation: collapseUp 0.35s ease-in-out forwards;
}

.tournament-group {
    position: relative;
}

.cup-drop-above::before,
.cup-drop-below::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-d));
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.cup-drop-above::before {
    top: -4px;
}

.cup-drop-below::after {
    bottom: -4px;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Hide Scrollbar but allow scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

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

/* Mobile search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.search-overlay.active {
    opacity: 1;
    display: block;
}

.search-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    background: transparent;
}

.search-overlay.active .search-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile settings overlay */
#mobileSettingsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    display: none;
    z-index: 999;
}

#mobileSettingsOverlay.active {
    display: block;
}

#mobileSettingsContent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    margin: 0 auto;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

#mobileSettingsOverlay.active #mobileSettingsContent {
    transform: translateY(0);
}

.search-overlay-content .bg-card {
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-bg-2);
}

/* Hidden elements */
.hidden-element {
    display: none !important;
}

/* Dropdown animations */
.dropdown-enter {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.dropdown-enter-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-exit {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.dropdown-exit-active {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}

/* Calendar Styles */
#calendarDaysGrid>.calendar-row-alt {
    background-color: var(--color-bg-2);
}

#calendarDaysGrid>button.selected {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* League Options Dropdown Menu Animations (Entrance & Exit) */
@keyframes tournamentMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tournamentMenuSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

.animate-tournament-dropdown-enter {
    animation: tournamentMenuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

[dir="rtl"] .animate-tournament-dropdown-enter {
    transform-origin: top left;
}

.animate-tournament-dropdown-leave {
    animation: tournamentMenuSlideUp 0.15s cubic-bezier(0.4, 0, 1, 1) forwards;
    transform-origin: top right;
}

[dir="rtl"] .animate-tournament-dropdown-leave {
    transform-origin: top left;
}

/* ==========================================================================
   NEW PREMIUM NEWS SLIDER & MOBILE APP STYLES
   ========================================================================== */

/* Premium News Slider */
.news-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: none;
    background: var(--color-bg-3);
    margin-bottom: 1.5rem;
}

.news-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
}

.news-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    position: relative;
    outline: none;
}

.news-slide-img-height {
    width: 100%;
    height: 26.5rem;
}

/* Interactive Navigation Arrows with Glassmorphism */
.slider-arrow {
    position: absolute;
    top: 13.25rem;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.news-slider:hover .slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(25, 144, 124, 0.4);
}

.slider-arrow-prev {
    left: 1.25rem;
}

.slider-arrow-next {
    right: 1.25rem;
}

/* RTL Arrows adjustment */
[dir="rtl"] .slider-arrow-prev {
    left: auto;
    right: 1.25rem;
}

[dir="rtl"] .slider-arrow-next {
    right: auto;
    left: 1.25rem;
}

/* Slider Dots Indicator - Modern Elastic Pill Style */
.slider-dots {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    margin: 0.85rem auto 1.5rem auto;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--color-bg-2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    width: 50px;
    background: var(--color-primary);
}

/* Modern Section Header styling with dynamic colored sidebar indicator */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-e);
    margin-top: 1.85rem;
    margin-bottom: 0.85rem;
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-d));
    border-radius: 99px;
}

[dir="rtl"] .section-title::before {
    margin-left: 0.6rem;
}

[dir="ltr"] .section-title::before {
    margin-right: 0.6rem;
}

/* Touch elastic press feedback for premium mobile feel */
.news-card-interactive:active {
    transform: scale(0.975);
    transition: transform 0.1s ease;
}

/* Base interactive news card styles */
.news-card-interactive {
    cursor: pointer;
    background: var(--color-bg-3);
    border: none;
    border-radius: 1.15rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.news-card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

/* Style 2: Two-Column Vertical Grid Cards */
.vertical-grid-container {
    display: grid;
    grid-template-cols: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.vertical-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vertical-grid-image-wrapper {
    position: relative;
    width: 100%;
    height: 9rem;
    overflow: hidden;
}

.vertical-grid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card-interactive:hover .vertical-grid-image-wrapper img {
    transform: scale(1.05);
}

/* Style 3: Swipeable Horizontal Scroll Tray */
.scroll-tray-wrapper {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
}

.scroll-tray-container {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scroll-tray-card {
    flex: 0 0 13.5rem;
    width: 13.5rem;
    display: flex;
    flex-direction: column;
    height: 6.85rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem !important;
    border: none !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.scroll-tray-card:hover {
    transform: none !important;
    background: var(--color-bg-3) !important;
    box-shadow: none !important;
}

.scroll-tray-quote {
    position: absolute;
    color: var(--color-primary) !important;
    opacity: 0.12;
    font-size: 2.15rem;
    z-index: 1;
    pointer-events: none;
}

.quote-open {
    top: -0.15rem;
    right: 0.15rem;
}

.quote-close {
    bottom: -0.15rem;
    left: 0.15rem;
}

/* RTL adjustment for quotes */
[dir="rtl"] .quote-open {
    right: auto;
    left: 0.15rem;
}

[dir="rtl"] .quote-close {
    left: auto;
    right: 0.15rem;
}

.scroll-tray-image-wrapper {
    position: relative;
    width: 100%;
    height: 7.5rem;
    overflow: hidden;
}

.scroll-tray-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card-interactive:hover .scroll-tray-image-wrapper img {
    transform: scale(1.05);
}

/* Style 4: High-Density Compact List Feed */
.compact-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compact-list-card {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: center;
}

.compact-list-card h4 {
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

@media (max-width: 767px) {
    .compact-list-card h4 {
        font-size: 14px !important;
    }
}

.compact-list-image-wrapper {
    position: relative;
    width: 5.5rem;
    height: 4.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.compact-list-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-interactive:hover .compact-list-image-wrapper img {
    transform: scale(1.05);
}

/* Responsive media overrides for Premium Design */
@media (max-width: 767px) {
    .news-slider {
        border-radius: 1.15rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.25rem;
        box-shadow: none;
    }

    .news-slide-img-height {
        height: 16.5rem;
    }

    .slider-arrow {
        top: 8.25rem;
    }

    .vertical-grid-image-wrapper {
        height: 7.25rem;
    }

    .vertical-grid-card h4 {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .vertical-grid-card {
        border-radius: 0.85rem !important;
    }

    .hidden-mobile-card {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .vertical-grid-container {
        grid-template-cols: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .vertical-grid-image-wrapper {
        height: 14.5rem;
    }

    .scroll-tray-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================================================
   PREMIUM SOCIAL SHARE BUTTON EXPANSION SYSTEM
   ========================================================================== */
.share-btn-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: white !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.share-btn-expand i {
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.share-btn-expand span {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    visibility: hidden;
}

/* Hover expansion */
.share-btn-expand:hover {
    width: 6.85rem;
    justify-content: flex-start;
    padding: 0 0.75rem;
}

[dir="rtl"] .share-btn-expand:hover {
    padding-right: 0.75rem;
    padding-left: 0.5rem;
}

.share-btn-expand:hover span {
    max-width: 100px;
    opacity: 1;
    visibility: visible;
}

[dir="rtl"] .share-btn-expand span {
    margin-right: 0.45rem;
}

[dir="ltr"] .share-btn-expand span {
    margin-left: 0.45rem;
}

.share-btn-expand:active {
    transform: scale(0.92);
}

/* Premium Vote Button Interaction Colors */
.active-like {
    background-color: transparent !important;
    color: var(--color-primary) !important;
}

.active-like #likeCount {
    background-color: transparent !important;
    color: var(--color-primary) !important;
}

.active-dislike {
    background-color: transparent !important;
    color: #e11d48 !important;
}

.active-dislike #dislikeCount {
    background-color: transparent !important;
    color: #e11d48 !important;
}

/* Inline Reactions Pill Row & Active States */
.reaction-btn-pill {
    height: 36px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, background-color 0.2s ease, padding 0.2s ease, margin 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    position: relative;
    padding: 0 10px;
}

@media (hover: hover) {
    .reaction-btn-pill:hover {
        transform: scale(1.15) translateY(-2px);
    }
}

.reaction-btn-pill.active {
    background-color: transparent !important;
    transform: scale(1.05);
    z-index: 10;
    margin-left: 14px !important;
    margin-right: 14px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.reaction-btn-pill.dimmed {
    opacity: 0.45;
    transform: scale(0.9);
}

/* Emoji animation inside active reaction */
.reaction-btn-pill span:first-child {
    display: inline-block;
    transition: transform 0.2s ease;
}

.reaction-btn-pill.active span:first-child {
    transform: scale(1.1);
}

/* Inline Dynamic Count - statically visible beside all emojis */
.reaction-pill-count {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-text-muted);
    display: inline-block;
    transition: color 0.25s ease;
    margin-right: 4px;
}

/* LTR layout */
[dir="ltr"] .reaction-pill-count {
    margin-left: 4px;
    margin-right: 0;
}

/* Specific text color for active reaction counts */
.reaction-btn-pill.active .reaction-pill-count {
    color: var(--color-e) !important;
}

.reaction-pill-tooltip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 6px;
    background: var(--color-e);
    color: var(--color-bg-3);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

@media (hover: hover) {
    .reaction-btn-pill:hover .reaction-pill-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Active status text color accents */
.text-react-active-like {
    color: var(--color-primary) !important;
}

.text-react-active-love {
    color: #ef4444 !important;
}

.text-react-active-sad {
    color: #eab308 !important;
}

.text-react-active-angry {
    color: #f97316 !important;
}

.text-react-active-dislike {
    color: #e11d48 !important;
}