:root {
    --primary-color: #f2d0d3;
    --secondary-color: #f2d0d0;
    --accent-color: #f4afb3;
    --highlight-color: #f8ca9d;
    --success-color: #80bf8a;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #f0f0f0 100%);
    position: relative;
    overflow-x: hidden;
}

/* Background Flower Decorations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(242, 208, 211, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 175, 179, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(248, 202, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(128, 191, 138, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 25s ease-in-out infinite;
}

/* Floating Flowers */
.floating-flower {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    width: 120px;
    height: 120px;
    background-image: url('/assets/images/hoadao.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    filter: drop-shadow(0 4px 8px rgba(244, 175, 179, 0.3));
    animation: flowerFloat 12s ease-in-out infinite;
}

.flower-1 {
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 15s;
    transform: rotate(15deg);
}

.flower-2 {
    top: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation-delay: 2s;
    animation-duration: 18s;
    transform: rotate(-20deg);
}

.flower-3 {
    bottom: 30%;
    left: 20%;
    width: 120px;
    height: 120px;
    animation-delay: 4s;
    animation-duration: 20s;
    transform: rotate(45deg);
}

.flower-4 {
    bottom: 20%;
    right: 25%;
    width: 180px;
    height: 180px;
    animation-delay: 1s;
    animation-duration: 16s;
    transform: rotate(-30deg);
}

.flower-5 {
    top: 60%;
    left: 5%;
    width: 90px;
    height: 90px;
    animation-delay: 3s;
    animation-duration: 17s;
    transform: rotate(60deg);
}

.flower-6 {
    top: 70%;
    right: 8%;
    width: 130px;
    height: 130px;
    animation-delay: 5s;
    animation-duration: 22s;
    transform: rotate(-15deg);
}

.flower-7 {
    top: 40%;
    left: 60%;
    width: 85px;
    height: 85px;
    animation-delay: 6s;
    animation-duration: 19s;
    transform: rotate(25deg);
}

.flower-8 {
    bottom: 40%;
    left: 40%;
    width: 95px;
    height: 95px;
    animation-delay: 7s;
    animation-duration: 21s;
    transform: rotate(-45deg);
}

/* Flower Petals */
.flower-petal {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    width: 40px;
    height: 40px;
    background-image: url('/assets/images/flower.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    filter: drop-shadow(0 2px 4px rgba(244, 175, 179, 0.2));
    animation: petalFloat 8s ease-in-out infinite;
}

.petal-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
    animation-duration: 10s;
    transform: rotate(0deg) scale(0.6);
}

.petal-2 {
    top: 50%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 12s;
    transform: rotate(90deg) scale(0.7);
}

.petal-3 {
    bottom: 25%;
    left: 35%;
    animation-delay: 4s;
    animation-duration: 11s;
    transform: rotate(180deg) scale(0.5);
}

.petal-4 {
    top: 80%;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 13s;
    transform: rotate(270deg) scale(0.8);
}

.petal-5 {
    top: 35%;
    right: 40%;
    animation-delay: 3s;
    animation-duration: 9s;
    transform: rotate(45deg) scale(0.6);
}

/* Flower Sparkles */
.flower-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(244, 175, 179, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkleTwinkle 4s ease-in-out infinite;
}

.sparkle-1 {
    top: 18%;
    left: 45%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.sparkle-2 {
    top: 45%;
    right: 18%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.sparkle-3 {
    bottom: 28%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 4s;
}

.sparkle-4 {
    top: 75%;
    right: 35%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.sparkle-5 {
    top: 55%;
    left: 25%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

.sparkle-6 {
    bottom: 45%;
    right: 15%;
    animation-delay: 2.5s;
    animation-duration: 6.5s;
}

/* Flower Animations */
@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05) rotate(0.5deg);
        opacity: 0.6;
    }
}

@keyframes flowerFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-25px) translateX(15px) rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px) translateX(-20px) rotate(180deg) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes petalFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-20px) translateX(25px) rotate(120deg) scale(1.2);
        opacity: 0.7;
    }
    66% {
        transform: translateY(15px) translateX(-15px) rotate(240deg) scale(0.8);
        opacity: 0.4;
    }
}

@keyframes sparkleTwinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(244, 175, 179, 0.8);
    }
    50% {
        transform: scale(1.8);
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(244, 175, 179, 0);
    }
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--highlight-color);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color), var(--success-color));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, glowPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.4);
    transform: translateY(-2px);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 0 4px;
}

.nav-desktop a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 2px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(244, 175, 179, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(244, 175, 179, 0.4);
        transform: translateY(-2px);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(244, 175, 179, 0.6);
        transform: translateY(-3px);
    }
}

@keyframes glowPulseMobile {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(244, 175, 179, 0.4);
        transform: translateX(5px);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(244, 175, 179, 0.6);
        transform: translateX(8px);
    }
}

/* Search Bar */
.search-container {
    position: relative;
    margin-left: 20px;
}

.search-input {
    padding: 8px 40px 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 175, 179, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-dropdown {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.3);
}

.notification-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.notification-dropdown.active .notification-dropdown-content {
    display: block;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--primary-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    border: none !important;
}

.btn-primary:hover {
    background: var(--highlight-color) !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent !important;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;

}

.btn-outline:hover {
    background: var(--accent-color) !important;
    color: var(--white) !important;
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    gap: 15px;
}

.mobile-home-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-home-btn:hover {
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.3);
}

.mobile-search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin: 0 10px;
}

.mobile-search-input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 175, 179, 0.1);
}

.mobile-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: var(--accent-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.3);
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.3);
}

/* Mobile Sidebar */
#header-nav-mobile.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
}

#header-nav-mobile.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.sidebar-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color), var(--success-color));
    background-size: 200% 200%;
    color: var(--white);
    padding-left: 25px;
    animation: gradientShift 3s ease infinite, glowPulseMobile 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.4);
    border-radius: 8px;
    margin: 4px 8px;
    transform: translateX(5px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px - 200px);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 200px;
    position: relative;
    object-fit: contain;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-slider .slide-image {
    object-fit: contain;
}
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
}

/* Story Banner */
.story-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 208, 211, 0.85) 0%, rgba(244, 175, 179, 0.75) 50%, rgba(248, 202, 157, 0.65) 100%);
}

.banner-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Left Side - Story Image */
.banner-left {
    flex-shrink: 0;
    width: 263px;
}

.story-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.story-image-container .story-image {
    height: 100%;

}
.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.story-image-gif {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}

.story-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.story-status {
    width: 100%;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Right Side - Content */
.banner-right {
    flex: 1;
    max-width: 600px;
}

.banner-content {
    width: 100%;
}

/* Badges */
.banner-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    transition: opacity 0.3s ease;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-trending {
    background: rgba(255, 165, 0, 0.8);
    color: white;
}

.badge-category {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

/* Banner Text */
.banner-text {
    margin-bottom: 30px;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.banner-title.slide-out {
    transform: translateY(-20px);
    opacity: 0;
}

.banner-title.slide-in {
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.banner-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 0.9;
}

.banner-description.slide-out {
    transform: translateY(-15px);
    opacity: 0;
}

.banner-description.slide-in {
    transform: translateY(15px);
    opacity: 0;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

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

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

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Action Buttons */
.banner-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.btn-primary:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* Navigation Buttons */
.banner-navigation {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.nav-btn:hover::before {
    width: 100%;
    height: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--highlight-color);
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.story-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 175, 179, 0.1), rgba(248, 202, 157, 0.1));
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.story-card .particle {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--accent-color);
    font-size: 18px;
    opacity: 0;
    transform: translateY(-10px) rotate(0deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    animation: floatParticle 3s ease-in-out infinite;
    pointer-events: none;
}

.story-card:hover .particle {
    opacity: 1;
    transform: translateY(0) rotate(360deg);
}

.story-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(244, 175, 179, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.story-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(244, 175, 179, 0.3),
        0 6px 12px rgba(244, 175, 179, 0.2);
    border-radius: 18px;
}

.story-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.story-card:hover::after {
    width: 200px;
    height: 200px;
    animation: none;
    opacity: 0.2;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.story-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.story-card:hover .story-image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    box-shadow: 0 10px 30px rgba(244, 175, 179, 0.5);
}

.story-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card:hover .story-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(244, 175, 179, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(244, 175, 179, 0.3);
}

.story-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.story-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.story-card:hover .story-title {
    color: var(--accent-color);
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(244, 175, 179, 0.3);
}

.story-card:hover .story-title::after {
    width: 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleX(1.1);
    }
}



@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-5px) rotate(270deg);
    }
}

/* 边框发光效果 */
.story-card {
    border: 2px solid transparent;
    background-clip: padding-box;
}

.story-card:hover {
    border-image: linear-gradient(135deg, var(--accent-color), var(--highlight-color), var(--success-color)) 1;
    border-image-slice: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        border-image-source: linear-gradient(135deg, var(--accent-color), var(--highlight-color), var(--success-color));
    }
    50% {
        border-image-source: linear-gradient(135deg, var(--highlight-color), var(--success-color), var(--accent-color));
    }
}

.story-author {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-card:hover .story-author {
    color: var(--highlight-color);
    transform: translateX(3px);
    font-weight: 500;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
}

.story-card:hover .story-stats {
    color: var(--accent-color);
    font-weight: 500;
    transform: translateY(-2px);
}

/* Ranking Tables */
.ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.story-ranking-tabs,
.team-ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.ranking-tab {
    padding: 8px 16px;
    border: 2px solid #f2d0d3;
    border-radius: 20px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.ranking-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.ranking-tab:hover::before {
    left: 100%;
}

.ranking-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 208, 211, 0.4);
    border-color: #f4afb3;
}

.ranking-tab.active {
    background: linear-gradient(135deg, #f2d0d3, #f4afb3, #f8ca9d);
    color: white;
    border-color: #f4afb3;
    box-shadow: 0 8px 25px rgba(242, 208, 211, 0.6);
    transform: translateY(-2px);
}

.ranking-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.story-ranking-table,
.team-ranking-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ranking-table:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(244, 175, 179, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 175, 179, 0.05), transparent);
    transition: left 0.6s ease;
}

.ranking-item:hover::before {
    left: 100%;
}

.ranking-item:hover {
    background: linear-gradient(135deg, rgba(244, 175, 179, 0.05), rgba(248, 202, 157, 0.05));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.1);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(244, 175, 179, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ranking-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.ranking-item:hover .ranking-number::before {
    width: 100%;
    height: 100%;
}

.ranking-item:hover .ranking-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(244, 175, 179, 0.4);
}

.ranking-number.top-3 {
    background: linear-gradient(135deg, var(--highlight-color), var(--success-color));
    box-shadow: 0 4px 15px rgba(248, 202, 157, 0.4);
}

.ranking-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-image {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ranking-item:hover .ranking-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

.ranking-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.team-image {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ranking-content {
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-content {
    transform: translateX(5px);
}

.ranking-title {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-title {
    color: var(--accent-color);
    transform: translateX(3px);
}

.ranking-author {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-author {
    color: var(--highlight-color);
    transform: translateX(3px);
}

.ranking-genre {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-genre {
    opacity: 1;
    transform: translateX(3px);
}

.ranking-stats {
    text-align: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .ranking-stats {
    transform: translateX(-3px);
}

.stats-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .stats-number {
    color: var(--highlight-color);
    transform: scale(1.05);
}

.stats-label {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-item:hover .stats-label {
    opacity: 1;
    color: var(--accent-color);
}

/* Popup Advertisement */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    /* background: var(--white); */
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: -28px;
    right: 26px;
    width: 10px;
    background: none;
    border: none;
    font-size: 49px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

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

.popup-image {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--highlight-color);
}

.footer-copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #999;
    font-size: 14px;
}
/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-nav {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #f2d0d3;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.page-item {
    position: relative;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f2d0d3, #f4afb3, #f8ca9d);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.page-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #f4afb3;
}

.page-link:hover::before {
    opacity: 1;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #f4afb3, #f8ca9d);
    color: white;
    border-color: #f4afb3;
    box-shadow: 0 6px 20px rgba(244,175,179,0.4);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .mobile-search-container {
        max-width: 250px;
        margin: 0 8px;
    }
    
    .mobile-search-input {
        padding: 6px 35px 6px 12px;
        font-size: 13px;
    }
    
    .mobile-search-btn {
        right: 6px;
        font-size: 14px;
        padding: 5px;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .hero-slider {
        height: 80px;
    }
    
    .story-banner {
        height: auto;
        min-height: 500px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .banner-content-wrapper {
        padding: 20px;
        gap: 20px;
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }
    
    .banner-left {
        width: 200px;
        align-self: center;
        flex-shrink: 0;
    }
    
    .story-image-container {
        height: 280px;
        border-radius: 15px;
    }
    
    .banner-right {
        text-align: center;
        flex: 1;
        max-width: none;
    }
    
    .banner-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .banner-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .banner-badges {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 20px;
    }
    
    .action-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-action {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn-icon {
        width: 35px;
        height: 35px;
    }
    
    .banner-navigation {
        gap: 8px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        align-items: stretch;
    }
    
    .story-image {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }
    
    .section {
        margin: 30px auto;
    }
    
    .ranking-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .story-ranking-tabs,
    .team-ranking-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ranking-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .ranking-item {
        padding: 15px;
        flex-direction: row;
        text-align: center;
        gap: 10px;
    }
    
    .ranking-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ranking-image {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .ranking-content {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .ranking-stats {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mobile-search-container {
        max-width: 200px;
        margin: 0 5px;
    }
    
    .mobile-search-input {
        padding: 5px 30px 5px 10px;
        font-size: 12px;
    }
    
    .mobile-search-btn {
        right: 5px;
        font-size: 13px;
        padding: 4px;
    }
    
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    
    .story-image {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }
    
    .story-info {
        padding: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .story-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .story-author {
        font-size: 12px;
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .story-stats {
        margin-top: auto;
        font-size: 11px;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    
    .hero-slider {
        height: 120px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .ranking-tabs {
        gap: 6px;
    }
    
    .story-ranking-tabs,
    .team-ranking-tabs {
        gap: 6px;
    }
    
    .ranking-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ranking-item {
        padding: 12px;
        gap: 8px;
    }
    
    .ranking-image {
        width: 50px;
        height: 50px;
    }
    
    .team-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .ranking-title {
        font-size: 14px;
    }
    
    .ranking-author {
        font-size: 12px;
    }
    
    .ranking-genre {
        font-size: 11px;
    }
    
    .stats-number {
        font-size: 16px;
    }
    
    .stats-label {
        font-size: 11px;
    }
    
    .story-banner {
        height: auto;
        min-height: 450px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .banner-content-wrapper {
        padding: 15px;
        gap: 15px;
        height: auto;
        min-height: 450px;
    }
    
    .banner-left {
        width: 160px;
        align-self: center;
    }
    
    .story-image-container {
        height: 220px;
        border-radius: 12px;
    }
    
    .banner-right {
        text-align: center;
    }
    
    .banner-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .banner-description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .banner-badges {
        gap: 6px;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .banner-actions {
        gap: 12px;
        margin-top: 15px;
    }
    
    .action-buttons {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-action {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
    }
    
    .banner-navigation {
        gap: 6px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .mobile-search-container {
        max-width: 180px;
        margin: 0 3px;
    }
    
    .mobile-search-input {
        padding: 4px 28px 4px 8px;
        font-size: 11px;
    }
    
    .mobile-search-btn {
        right: 4px;
        font-size: 12px;
        padding: 3px;
    }
    
    .story-banner {
        min-height: 400px;
        margin: 10px 0;
    }
    
    .banner-content-wrapper {
        padding: 12px;
        gap: 12px;
        min-height: 400px;
    }
    
    .banner-left {
        width: 140px;
    }
    
    .story-image-container {
        height: 200px;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .banner-description {
        font-size: 11px;
    }
    
    .btn-action {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .ranking-tabs {
        gap: 4px;
    }
    
    .story-ranking-tabs,
    .team-ranking-tabs {
        gap: 4px;
    }
    
    .ranking-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .ranking-item {
        padding: 10px;
        gap: 6px;
    }
    
    .ranking-image {
        width: 45px;
        height: 45px;
    }
    
    .team-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .ranking-title {
        font-size: 13px;
    }
    
    .ranking-author {
        font-size: 11px;
    }
    
    .ranking-genre {
        font-size: 10px;
    }
    
    .stats-number {
        font-size: 14px;
    }
    
    .stats-label {
        font-size: 10px;
    }
}

/* ===== STORY CATEGORY PAGE STYLES ===== */
#category-page-header {
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 50%, #f8ca9d 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
}

#category-page-header .header-content {
    position: relative;
    z-index: 2;
}

#category-page-header .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

#category-page-header .page-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
}

#category-page-header .floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#category-page-header .heart {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
    animation: heartFloat 6s ease-in-out infinite;
}

#category-page-header .heart-1 { top: 20%; left: 10%; animation-delay: 0s; }
#category-page-header .heart-2 { top: 30%; right: 15%; animation-delay: 1s; }
#category-page-header .heart-3 { top: 60%; left: 20%; animation-delay: 2s; }
#category-page-header .heart-4 { top: 70%; right: 25%; animation-delay: 3s; }
#category-page-header .heart-5 { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.5); }
    100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.8); }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Grid Section */
#category-grid-section {
    padding: 50px 0;
    min-height: 100vh;
}

#category-grid-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

#category-grid-section .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Category Card */
#category-grid-section .category-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#category-grid-section .category-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #f4afb3;
    box-shadow: 0 25px 60px rgba(244, 175, 179, 0.4);
}

#category-grid-section .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

#category-grid-section .category-card:hover::before {
    left: 100%;
}

#category-grid-section .category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(244, 175, 179, 0.3);
}

#category-grid-section .category-icon i {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#category-grid-section .category-content {
    position: relative;
    z-index: 2;
}

#category-grid-section .category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

#category-grid-section .category-card:hover .category-title {
    color: #f4afb3;
}

#category-grid-section .category-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

#category-grid-section .category-card:hover .category-description {
    color: #495057;
}

#category-grid-section .category-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#category-grid-section .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8ca9d 0%, #80bf8a 100%);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 191, 138, 0.3);
}

#category-grid-section .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 191, 138, 0.4);
}

#category-grid-section .stat-item i {
    font-size: 1rem;
}

#category-grid-section .stat-number {
    font-weight: 700;
}

/* Category Overlay */
#category-grid-section .category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 208, 211, 0.1) 0%, rgba(244, 175, 179, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

#category-grid-section .category-card:hover .category-overlay {
    opacity: 1;
}

/* Category Particles */
#category-grid-section .category-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

#category-grid-section .particle {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(244, 175, 179, 0.6);
    animation: categoryParticleFloat 8s ease-in-out infinite;
}

#category-grid-section .particle:nth-child(1) {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

#category-grid-section .particle:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

#category-grid-section .particle:nth-child(3) {
    top: 40%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes categoryParticleFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(1.2); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.1); 
        opacity: 1; 
    }
}

/* Responsive Design for Category Page */
@media (max-width: 768px) {
    #category-page-header {
        padding: 60px 0;
        border-radius: 0;
    }
    
    #category-page-header .page-title {
        font-size: 2.5rem;
    }
    
    #category-page-header .page-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    #category-grid-section .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    #category-grid-section .category-card {
        padding: 25px;
    }
    
    #category-grid-section .category-icon {
        width: 70px;
        height: 70px;
    }
    
    #category-grid-section .category-icon i {
        font-size: 1.8rem;
    }
    
    #category-grid-section .category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    #category-page-header .page-title {
        font-size: 2rem;
    }
    
    #category-page-header .page-description {
        font-size: 1rem;
    }
    
    #category-grid-section .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #category-grid-section .category-card {
        padding: 20px;
    }
    
    #category-grid-section .category-stats {
        gap: 15px;
    }
    
    #category-grid-section .stat-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Enhanced hover effects for category cards */
#category-grid-section .category-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(244, 175, 179, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

#category-grid-section .category-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Floating elements for category section */
#category-grid-section::before {
    content: '📚';
    position: fixed;
    top: 20%;
    right: 5%;
    font-size: 3rem;
    opacity: 0.1;
    animation: bookFloat 10s ease-in-out infinite;
    z-index: -1;
}

#category-grid-section::after {
    content: '✨';
    position: fixed;
    bottom: 30%;
    left: 3%;
    font-size: 2.5rem;
    opacity: 0.1;
    animation: sparkleFloat 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.1; }
    50% { transform: translateY(-25px) scale(1.2); opacity: 0.3; }
}

/* Loading animation for category cards */
#category-grid-section .category-card {
    animation: categoryCardAppear 0.8s ease-out both;
}

#category-grid-section .category-card:nth-child(1) { animation-delay: 0.1s; }
#category-grid-section .category-card:nth-child(2) { animation-delay: 0.2s; }
#category-grid-section .category-card:nth-child(3) { animation-delay: 0.3s; }
#category-grid-section .category-card:nth-child(4) { animation-delay: 0.4s; }
#category-grid-section .category-card:nth-child(5) { animation-delay: 0.5s; }
#category-grid-section .category-card:nth-child(6) { animation-delay: 0.6s; }
#category-grid-section .category-card:nth-child(7) { animation-delay: 0.7s; }
#category-grid-section .category-card:nth-child(8) { animation-delay: 0.8s; }
#category-grid-section .category-card:nth-child(9) { animation-delay: 0.9s; }
#category-grid-section .category-card:nth-child(10) { animation-delay: 1.0s; }
#category-grid-section .category-card:nth-child(11) { animation-delay: 1.1s; }
#category-grid-section .category-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes categoryCardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== TRANSLATION GROUP LIST PAGE ===== */
#group-page-header {
	background: linear-gradient(135deg, #f2d0d3 0%, #f4afb3 50%, #f8ca9d 100%);
	padding: 80px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-radius: 0 0 30px 30px;
	margin-bottom: 50px;
}
#group-page-header .header-content { position: relative; z-index: 2; }
#group-page-header .page-title { font-size: 3.2rem; font-weight: 800; color: #fff; margin-bottom: 16px; text-shadow: 2px 2px 4px rgba(0,0,0,.25); animation: titleGlow 2s ease-in-out infinite alternate; }
#group-page-header .page-description { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 720px; margin: 0 auto; line-height: 1.7; animation: fadeInUp 1s ease-out .5s both; }
#group-page-header .floating-hearts { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#group-page-header .heart { position: absolute; font-size: 2rem; color: rgba(255,255,255,.65); animation: heartFloat 7s ease-in-out infinite; }
#group-page-header .heart-1{ top:18%; left:12%; animation-delay:0s }
#group-page-header .heart-2{ top:28%; right:12%; animation-delay:.8s }
#group-page-header .heart-3{ top:62%; left:22%; animation-delay:1.6s }
#group-page-header .heart-4{ top:72%; right:22%; animation-delay:2.4s }
#group-page-header .heart-5{ top:42%; left:48%; animation-delay:3.2s }

#group-list-section { padding: 50px 0;  }
#group-list-section .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
#group-list-section .group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

#group-list-section .group-card {
	position: relative;
	background: linear-gradient(135deg, #ffffff 0%, #fbfbfc 100%);
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,.08);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
	overflow: hidden;
}
#group-list-section .group-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 24px 60px rgba(244, 175, 179, .35); border-color: #f4afb3; }
#group-list-section .group-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1200px 1200px at var(--mx,50%) var(--my,50%), rgba(244,175,179,.25), transparent 40%); opacity: 0; transition: opacity .4s ease; }
#group-list-section .group-card:hover::before { opacity: 1; }

#group-list-section .group-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 3; }
#group-list-section .group-tag { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.08); backdrop-filter: blur(6px); }
#group-list-section .group-tag.hot { background: linear-gradient(135deg, #ff7a7a, #f4afb3); }
#group-list-section .group-tag.new { background: linear-gradient(135deg, #80bf8a, #b7e0c9); }
#group-list-section .group-tag.cute { background: linear-gradient(135deg, #f8ca9d, #f2d0d3); }

#group-list-section .group-avatar {
	width: 96px; height: 96px; border-radius: 24px;
	background: linear-gradient(135deg, #f2d0d3, #f8ca9d);
	color: #fff; font-weight: 800; font-size: 2rem; display: grid; place-items: center;
	box-shadow: 0 10px 24px rgba(244,175,179,.35);
	margin-bottom: 16px; position: relative; z-index: 2;
}
#group-list-section .group-avatar.alt { background: linear-gradient(135deg, #80bf8a, #a8d6b1); box-shadow: 0 10px 24px rgba(128,191,138,.35); }

#group-list-section .group-content { position: relative; z-index: 2;flex-direction:column;align-items: start; }
#group-list-section .group-name { font-size: 1.3rem; font-weight: 800; color: #2c3e50; margin: 6px 0 10px; letter-spacing: .2px; }
#group-list-section .group-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; color: #6c757d; font-weight: 600; }
#group-list-section .group-meta i { color: #f4afb3; }

#group-list-section .group-actions { position: absolute; right: 14px; bottom: 14px; z-index: 3; }
#group-list-section .btn-view { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #f4afb3, #f2d0d3); color: #fff; box-shadow: 0 10px 24px rgba(244,175,179,.45); transition: transform .25s ease, box-shadow .25s ease; }
#group-list-section .btn-view:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(244,175,179,.55); }

#group-list-section .group-overlay { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(135deg, rgba(242,208,211,.08), rgba(244,175,179,.08)); opacity: 0; transition: opacity .35s ease; }
#group-list-section .group-card:hover .group-overlay { opacity: 1; }

#group-list-section .group-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#group-list-section .particle { position: absolute; font-size: 1.3rem; color: rgba(244,175,179,.65); animation: groupParticle 8s ease-in-out infinite; }
#group-list-section .particle:nth-child(1){ top: 18%; right: 16%; animation-delay: 0s; }
#group-list-section .particle:nth-child(2){ top: 58%; left: 12%; animation-delay: 1.6s; }
#group-list-section .particle:nth-child(3){ top: 42%; right: 24%; animation-delay: 3.2s; }
@keyframes groupParticle { 0%,100%{ transform: translateY(0) rotate(0) scale(1); opacity:.6 } 25%{ transform: translateY(-12px) rotate(90deg) scale(1.05); opacity:1 } 50%{ transform: translateY(-22px) rotate(180deg) scale(1.12); opacity:.85 } 75%{ transform: translateY(-12px) rotate(270deg) scale(1.05); opacity:1 } }

/* Hover tilt interaction */
#group-list-section .group-card { --mx:50%; --my:50%; }
#group-list-section .group-card:hover { transform-style: preserve-3d; }
#group-list-section .group-card:hover .group-avatar { transform: translateZ(10px); }

/* Responsive */
@media (max-width: 768px){
	#group-page-header{ padding: 60px 0; border-radius: 0 ; }
	#group-page-header .page-title{ font-size: 2.4rem; }
	#group-page-header .page-description{ font-size: 1.05rem; padding: 0 20px; }
	#group-list-section .group-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
	#group-list-section .group-avatar{ width: 84px; height: 84px; font-size: 1.6rem; border-radius: 20px; }
}
@media (max-width: 480px){
	#group-page-header .page-title{ font-size: 2rem; }
	#group-list-section .group-grid{ grid-template-columns: 1fr  ; gap: 14px; }
	#group-list-section .group-card{ padding: 18px; border-radius: 18px; }
	#group-list-section .group-actions{ right: 10px; bottom: 10px; }
}

/* ===== TRANSLATION GROUP DETAIL PAGE ===== */
#group-detail-header { position: relative; padding: 0; border-radius: 0; overflow: hidden; margin-bottom: 40px; }
#group-detail-header .group-banner { position: relative; width: 100%; height: 360px; }
#group-detail-header .group-cover { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.75) saturate(1.1); }
#group-detail-header .banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(242,208,211,.45), rgba(128,191,138,.35)); mix-blend-mode: overlay; }
#group-detail-header .group-overview { position: absolute; inset: 0; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; color: #fff; padding: 24px; }
#group-detail-header .overview-left { display: flex; align-items: center; justify-content: center; }
#group-detail-header .group-avatar.large { width: 140px; height: 140px; border-radius: 28px; display: grid; place-items: center; font-weight: 900; font-size: 3rem; background: linear-gradient(135deg, #f2d0d3, #f8ca9d); color: #fff; box-shadow: 0 16px 40px rgba(244,175,179,.45); }
#group-detail-header .overview-right { display: flex; flex-direction: column; gap: 14px; }
#group-detail-header .overview-badges { display: flex; gap: 10px; flex-wrap: wrap; }
#group-detail-header .badge { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
#group-detail-header .badge-trending { background: linear-gradient(135deg, #ff7a7a, #f4afb3); border: none; }
#group-detail-header .badge-category { background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(255,255,255,.15)); }
#group-detail-header .group-title { font-size: 2.2rem; font-weight: 900; text-shadow: 0 3px 10px rgba(0,0,0,.35); margin: 0; }
#group-detail-header .group-description { max-width: 900px; opacity: .95; color: #fff; }
#group-detail-header .overview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#group-detail-header .group-stats { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
#group-detail-header .group-stats .stat { background: rgba(0,0,0,.25); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
#group-detail-header .overview-actions { display: flex; gap: 10px; }
#group-detail-header .btn-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.15); transition: transform .25s ease, box-shadow .25s ease; }
#group-detail-header .btn-action:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.25); }
#group-detail-header .btn-primary { background: linear-gradient(135deg, #f4afb3, #f2d0d3) !important; border: none !important; }
#group-detail-header .btn-secondary { background: linear-gradient(135deg, #80bf8a, #a8d6b1); border: none; }
#group-detail-header .btn-icon { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }

/* Spacing for group story listing */
#group-stories-section .story-grid { margin-top: 14px; }
.group-stories-container {
    max-width: 1200px;
    padding: 0 20px;
    margin: auto;
}

/* No stories section styling */
.no-stories {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 40px 0;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.no-stories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(244, 175, 179, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 202, 157, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.no-stories-content {
    position: relative;
    z-index: 2;
}

.no-stories-content i {
    font-size: 4rem;
    color: #f4afb3;
    margin-bottom: 20px;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

.no-stories-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 12px;
}

.no-stories-content p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section header styling for group stories */
#group-stories-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

#group-stories-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
}

#group-stories-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    border-radius: 2px;
}

#group-stories-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}
#group-detail-header .group-avatar.large img{ width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* Responsive */
@media (max-width: 992px){
	#group-detail-header .group-banner{ height: 420px; }
	#group-detail-header .group-overview{ grid-template-columns: 140px 1fr; }
	#group-detail-header .group-avatar.large{ width: 120px; height: 120px; border-radius: 24px; font-size: 2.4rem; }
	#group-detail-header .group-avatar.large img{ width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
	#group-detail-header .group-title{ font-size: 2rem; }
}
@media (max-width: 768px){
	#group-detail-header .group-banner{ height: 460px; }
	#group-detail-header .group-overview{ grid-template-columns: 1fr; align-content: center; justify-items: center; text-align: center; }
	#group-detail-header .overview-left{ order: 1; }
	#group-detail-header .overview-right{ order: 2; }
	#group-detail-header .overview-bottom{ order: 3; justify-content: center; }
}
@media (max-width: 480px){
	#group-detail-header .group-banner{ height: 500px; }
	#group-detail-header .group-title{ font-size: 1.8rem; }
}

/* ===== GENRE TAG BADGES (shared across pages) ===== */
.story-info .story-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f2d0d3, #f4afb3);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 8px 18px rgba(244,175,179,.35);
    backdrop-filter: blur(6px);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.genre-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    animation: genreShimmer 3s linear infinite;
}

.genre-tag:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 26px rgba(244,175,179,.45);
    filter: saturate(1.05);
}

/* subtle color variety */
.story-info .story-genres .genre-tag:nth-child(2) {
    background: linear-gradient(135deg, #f8ca9d, #80bf8a);
    box-shadow: 0 8px 18px rgba(128,191,138,.35);
}
.story-info .story-genres .genre-tag:nth-child(3) {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    box-shadow: 0 8px 18px rgba(161,140,209,.28);
}

@keyframes genreShimmer {
    0% { left: -60%; }
    100% { left: 120%; }
}

/* compact variant when space is tight */
@media (max-width: 480px) {
    .genre-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ===== STORY LINK STYLING ===== */
.story-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.story-link:hover {
    text-decoration: none;
    color: inherit;
}

.story-link:hover .story-title {
    color: #f4afb3;
}

.story-link:hover .story-image {
    filter: brightness(1.1) contrast(1.05);
}

/* Đảm bảo story-link có thể click được */
.story-card .story-link {
    position: relative;
    z-index: 15;
    pointer-events: auto;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.story-card .story-link:hover {
    transform: none;
}

.story-card .story-link:hover .story-title {
    color: #f4afb3;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.story-card .story-link:hover .story-image {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Loại bỏ cursor pointer từ story-card khi có story-link */
.story-card:has(.story-link) {
    cursor: default;
}

/* Đảm bảo story-link có thể click được trên mobile */
@media (max-width: 768px) {
    .story-card .story-link {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 15px;
        height: 100%;
    }
    
    .story-card .story-link:active {
        transform: scale(0.98);
        background: rgba(244, 175, 179, 0.1);
    }
}

/* Đảm bảo story-link luôn có thể click được */
.story-card .story-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(244, 175, 179, 0.3);
}

.story-card .story-link:focus {
    outline: 2px solid #f4afb3;
    outline-offset: 2px;
}

/* Ranking title links */
.ranking-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.ranking-title:hover {
    color: #f4afb3;
}

/* Banner action button links */
.btn-action[href] {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== STORY DETAIL PAGE STYLES ===== */
#story-info-section {
    padding: 50px 0;
}

#story-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Story Info Wrapper */
.story-info-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Side - Story Cover & Actions */
.story-info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-cover {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.story-cover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-cover:hover .story-cover-image {
    transform: scale(1.05);
}

.story-status-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.story-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-actions .btn-action {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.story-actions .btn-primary {
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    color: #fff;
    box-shadow: 0 8px 20px rgba(244,175,179,0.4);
}

.story-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(244,175,179,0.5);
}

.story-actions .btn-secondary {
    background: linear-gradient(135deg, #80bf8a, #a8d6b1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(128,191,138,0.4);
}

.story-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(128,191,138,0.5);
}

.story-actions .btn-icon {
    background: linear-gradient(135deg, #f8ca9d, #f2d0d3);
    color: #fff;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(248,202,157,0.4);
}

.story-actions .btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(248,202,157,0.5);
}

/* Right Side - Story Details */
.story-info-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.story-header {
    margin-bottom: 20px;
}

.story-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.story-badges .badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.story-badges .badge-trending {
    background: linear-gradient(135deg, #ff7a7a, #f4afb3);
}

.story-badges .badge-category {
    background: linear-gradient(135deg, #80bf8a, #a8d6b1);
}

#story-info-section .story-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

#story-info-section .story-author {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0 0 15px 0;
}

#story-info-section .author-link {
    color: #f4afb3;
    text-decoration: none;
    font-weight: 600;
}

#story-info-section .author-link:hover {
    text-decoration: underline;
}

#story-info-section .story-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

/* Story Stats */
#story-info-section .story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

#story-info-section .stat-item {
    text-align: center;
    padding: 15px 10px;
}

#story-info-section .stat-item i {
    font-size: 1.5rem;
    color: #f4afb3;
    margin-bottom: 8px;
    display: block;
}

#story-info-section .stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

#story-info-section .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* Story Genres */
#story-info-section .story-genres h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 700;
}

#story-info-section .genre-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Translation Group Info */
.translation-group-info {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(244,175,179,0.2);
}

.group-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.group-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

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

.group-avatar-letter {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f2d0d3, #f8ca9d);
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 8px 20px rgba(244,175,179,0.3);
}

.group-details {
    flex: 1;
}

.group-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.group-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.group-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.group-stats span {
    background: rgba(244,175,179,0.1);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.group-stats i {
    color: #f4afb3;
    margin-right: 6px;
}

.group-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-group {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-group:first-child {
    background: linear-gradient(135deg, #80bf8a, #a8d6b1);
    color: #fff;
}

.btn-group:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128,191,138,0.4);
}

.btn-follow {
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    color: #fff;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244,175,179,0.4);
}

/* Chapter List Section */
#chapter-list-section {
    padding: 50px 0;
}

.chapter-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    border-color: #f4afb3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244,175,179,0.15);
}

.chapter-item.new {
    border-color: #f4afb3;
    background: linear-gradient(135deg, rgba(244,175,179,0.1) 0%, #fff 100%);
}

.chapter-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.chapter-meta {
    display: flex;
    gap: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

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

.btn-read {
    padding: 10px 20px;
    background: linear-gradient(135deg, #80bf8a, #a8d6b1);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128,191,138,0.4);
    color: #fff;
}

/* Chapter Pagination */
.chapter-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-link {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    border-color: #f4afb3;
    background: #f4afb3;
    color: #fff;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-dots {
    padding: 10px 15px;
    color: #6c757d;
}

/* Comments Section */
#comments-section {
    padding: 50px 0;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid rgba(244,175,179,0.1);
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 6px 15px rgba(244,175,179,0.3);
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.comment-input:focus {
    outline: none;
    border-color: #f4afb3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(244,175,179,0.1);
}

.comment-actions {
    margin-top: 15px;
    text-align: right;
}

.btn-comment {
    padding: 12px 25px;
    background: linear-gradient(135deg, #f4afb3, #f2d0d3);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(244,175,179,0.3);
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244,175,179,0.4);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid rgba(244,175,179,0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(244,175,179,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244,175,179,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(244,175,179,0.1);
    color: #f4afb3;
}

.action-btn.liked {
    background: rgba(244,175,179,0.2);
    color: #f4afb3;
}

.action-btn.liked i {
    color: #f4afb3;
}

.action-btn i {
    font-size: 0.9rem;
}

.load-more-comments {
    text-align: center;
}

.btn-load-more {
    padding: 12px 30px;
    background: linear-gradient(135deg, #80bf8a, #a8d6b1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(128,191,138,0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128,191,138,0.4);
}

/* Responsive Design - Mobile Optimization */
@media (max-width: 992px) {
    .story-info-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-info-left {
        align-items: center;
    }
    
    .story-cover {
        max-width: 300px;
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-item i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .stat-number {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
   #story-info-section .story-title {
        font-size: 2rem;
    }
    
    #story-info-section .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    #story-info-section .stat-item {
        padding: 10px 6px;
    }
    
    #story-info-section .stat-item i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    #story-info-section .stat-number {
        font-size: 1rem;
    }
    
    #story-info-section .stat-label {
        font-size: 0.75rem;
    }
    
    .group-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }
    
    .group-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .group-actions {
        justify-content: center;
    }
    
    .chapter-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .chapter-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .chapter-title {
        font-size: 1rem;
    }
    
    .chapter-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .comment-form {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .comment-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .comment-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .story-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        display: flex;
        padding: 10px;
    }
    
    .stat-item {
        padding: 8px 5px;
    }
    
    .stat-item i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .group-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .group-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn-group {
        width: 100%;
        max-width: 200px;
    }
    
    .chapter-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-numbers {
        justify-content: center;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .comment-input {
        min-height: 80px;
        padding: 12px;
    }
    
    .btn-comment {
        padding: 10px 20px;
        font-size: 13px;
    }
}
