@charset "utf-8";

/* Bilibili Homepage Banner Stylesheet */

body {
    overflow-x: hidden;
}

.bili-banner {
    position: relative;
    width: 100%;
    height: 720px;
    background-color: #000;
    margin-bottom: 20px;
}

/* Top shading gradient to make white header links readable */
.bili-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 4;
    pointer-events: none;
}

.bili-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bili-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    will-change: opacity;
}

.bili-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.bili-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.bili-slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    transform: scale(1.0);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bili-slide.active .bili-slide-img {
    transform: scale(1.04);
}

/* Bottom fade to page background color (light or dark mode) */
.bili-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 40%, #ffffff 100%);
    z-index: 3;
}

.bili-banner.dark-mode .bili-slide-overlay {
    background: linear-gradient(to bottom, rgba(34, 34, 34, 0) 0%, rgba(34, 34, 34, 0.7) 40%, #222222 100%);
}

/* Dark mode enhancements for thumbnails and info */
.bili-banner.dark-mode .bili-thumb-card {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.bili-banner.dark-mode .bili-thumb-card.slot-5 {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65) !important;
}

.bili-banner.dark-mode .bili-thumb-title {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
}

.bili-banner.dark-mode .bili-remarks {
    background-color: rgba(0, 0, 0, 0.75);
}

/* Slide Left-Bottom Information Overlays */
.bili-slide-info {
    position: absolute;
    bottom: 200px;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: auto;
    /* Smooth slide-up transition when active */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.bili-slide.active .bili-slide-info {
    opacity: 1;
    transform: translateY(0);
}

.bili-play-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.bili-play-link:hover {
    opacity: 0.9;
}

.bili-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #fb7299;
    border-radius: 50%;
    margin-right: 14px;
    box-shadow: 0 4px 12px rgba(251, 114, 153, 0.4);
    
    /* 3D Parallax: Initial state of play button (recessed and scaled down) */
    transform: translateY(12px) scale(0.85);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s, background-color 0.2s ease;
}

.bili-play-btn i {
    color: #fff;
    font-size: 20px;
    margin-left: 2px;
}

.bili-play-link:hover .bili-play-btn {
    transform: translateY(0) scale(1.15) !important;
    background-color: #ff85a7;
}

.bili-play-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* 3D Parallax: Initial state of text (slightly lower than normal) */
    transform: translateY(6px);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active transitions triggered when the slide is active */
.bili-slide.active .bili-play-btn {
    transform: translateY(0) scale(1);
}

.bili-slide.active .bili-play-text {
    transform: translateY(0);
}

.bili-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.bili-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85); /* Significantly brighter for desktop readability */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* Enhanced text shadow for bright anime backgrounds */
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 400;
    max-width: 580px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bili-play-link:hover .bili-title {
    color: #fb7299;
}

.bili-remarks {
    align-self: flex-start;
    font-size: 12px;
    color: #fb7299;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Thumbnail selection strip overlay (Desktop) */
.bili-banner-thumbs-outer {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: auto;
}

.bili-banner-thumbs {
    position: relative;
    height: calc(var(--thumb-height) + 20px);
    width: 100%;
    display: block;
    /* CSS Variables for 9-slot layout full-width */
    --thumb-width: 16.658%;
    --thumb-step: 20.086%;
    --thumb-height: 119.55px;
}

.bili-thumb-card {
    position: absolute;
    width: var(--thumb-width);
    height: var(--thumb-height);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    will-change: left, transform, opacity;
    /* Force browser stacking context & mask layer to clip pseudo-elements to the border-radius */
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Slot positions for 3D shifting carousel with 9 slots */
.bili-thumb-card.slot-1 {
    left: -40.17%;
    transform: scale(0.8);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.bili-thumb-card.slot-2 {
    left: -20.09%;
    transform: scale(0.8);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.bili-thumb-card.slot-3 {
    left: 0%;
    transform: scale(1.0);
    z-index: 2;
    opacity: 0.85;
}

.bili-thumb-card.slot-4 {
    left: 20.09%;
    transform: scale(1.0);
    z-index: 2;
    opacity: 0.95;
}

.bili-thumb-card.slot-5 {
    left: 41.67%;
    transform: scale(1.18);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.bili-thumb-card.active {
    border: none !important;
    outline: none !important;
}

/* Progress bar background track/rail */
.bili-thumb-card.slot-5::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 4;
}

.bili-thumb-card.slot-5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #fb7299, #ff85a7);
    border-radius: 0 2px 2px 0;
    z-index: 5;
    box-shadow: 0 0 8px rgba(251, 114, 153, 0.5);
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

/* Pause progress bar when user hovers on banner */
.bili-banner:hover .bili-thumb-card.slot-5::after {
    animation-play-state: paused;
}

.bili-thumb-card.slot-6 {
    left: 63.26%;
    transform: scale(1.0);
    z-index: 2;
    opacity: 0.95;
}

.bili-thumb-card.slot-7 {
    left: 83.34%;
    transform: scale(1.0);
    z-index: 2;
    opacity: 0.85;
}

.bili-thumb-card.slot-8 {
    left: 103.43%;
    transform: scale(0.8);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.bili-thumb-card.slot-9 {
    left: 123.51%;
    transform: scale(0.8);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.bili-thumb-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.bili-thumb-card:hover .bili-thumb-img {
    transform: scale(1.06);
}

.bili-thumb-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bili-thumb-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show title and mask on all visible cards and on hover */
.bili-thumb-card:hover .bili-thumb-title,
.bili-thumb-card.slot-3 .bili-thumb-title,
.bili-thumb-card.slot-4 .bili-thumb-title,
.bili-thumb-card.slot-5 .bili-thumb-title,
.bili-thumb-card.slot-6 .bili-thumb-title,
.bili-thumb-card.slot-7 .bili-thumb-title {
    opacity: 1;
    transform: translateY(0);
}

.bili-thumb-card:hover .bili-thumb-mask,
.bili-thumb-card.slot-3 .bili-thumb-mask,
.bili-thumb-card.slot-4 .bili-thumb-mask,
.bili-thumb-card.slot-5 .bili-thumb-mask,
.bili-thumb-card.slot-6 .bili-thumb-mask,
.bili-thumb-card.slot-7 .bili-thumb-mask {
    opacity: 1;
}

/* Mobile responsive media queries */
@media (max-width: 767px) {
    .bili-banner {
        height: 115vw; /* Epic poster aspect ratio */
        min-height: 380px;
        max-height: 550px;
        margin: 0 0 20px 0; /* Return to immersive edge-to-edge layout */
        width: 100%;
        border-radius: 0; /* Flat bottom to seamlessly align with page top and transparent header */
        overflow: hidden;
        transform: translateZ(0); /* Force hardware acceleration and clipping */
    }
    
    .bili-banner::before {
        /* Soft and cinematic top gradient to make the search bar clearly visible */
        height: 200px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
        z-index: 3; /* Ensure it stays above the active slide image (z-index 2) */
    }
    
    /* Make top navigation logo and icons pop against the busy slide background */
    .bstem .head_box:not(.nav_top) .head_logo .logo {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
    }
    
    .bstem .head_box:not(.nav_top) .head_user a {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    .bstem .head_box:not(.nav_top) .head_menu_b a.menu {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Balanced semi-transparent search bar for mobile homepage header (Middle Ground) */
    .bstem .head_box:not(.nav_top) .head_search .form_control {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        color: #fff !important;
    }
    
    /* Make search icon and placeholder readable but natural */
    .bstem .head_box:not(.nav_top) input::-webkit-input-placeholder {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .bstem .head_box:not(.nav_top) input::-moz-placeholder {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .bstem .head_box:not(.nav_top) input:-ms-input-placeholder {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .bstem .head_box:not(.nav_top) .head_search i {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    
    /* Hide the global overlay on mobile because its DOM order and z-index covers the text */
    .bili-slide-overlay {
        display: none !important;
    }
    
    /* Apply the dark gradient inside the slide link so it sits perfectly under the text */
    .bili-slide-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.95) 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    .bili-slide-info {
        bottom: 30px; /* Aligned with bottom-right pagination capsule */
        padding: 0 15px; /* Elegant screen side margins */
    }
    
    .bili-play-btn {
        width: 44px; /* Larger, more clickable */
        height: 44px;
        margin-right: 15px;
        /* Glassmorphism premium look */
        background-color: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        
        /* 3D Parallax: Staggered spring entry transition when active */
        transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s, background-color 0.2s ease;
        animation: playPulse 2s infinite;
    }
    
    .bili-play-btn:active {
        transform: scale(0.92) !important;
        transition: transform 0.1s ease !important; /* Instant touch feedback response */
        background-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .bili-play-btn i {
        font-size: 18px;
        margin-left: 4px;
        color: #fff !important; /* Ensure icon is white */
    }
    
    .bili-title {
        font-size: 20px; /* Much larger and grander */
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        max-width: 58vw; /* Prevent overlap with right capsule dots */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bili-subtitle {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 6px;
        font-weight: 400;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        max-width: 58vw; /* Prevent overlap with right capsule dots */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bili-remarks {
        font-size: 11px;
        padding: 3px 10px;
        color: #fff !important;
        background-color: rgba(251, 114, 153, 0.9) !important;
        box-shadow: 0 2px 8px rgba(251, 114, 153, 0.4); /* Glow effect */
        border-radius: 6px;
        font-weight: 600;
        align-self: flex-start;
        display: inline-block;
        backdrop-filter: none;
    }
    
    .bili-banner-thumbs-outer {
        display: none !important;
    }
    
    /* Modern capsule pagination on the bottom right */
    .bili-dots-pagination {
        position: absolute;
        bottom: 24px;
        right: 16px;
        left: auto;
        width: auto;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px 10px;
        border-radius: 20px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10;
        display: flex !important;
        gap: 6px;
        align-items: center;
    }
    
    .bili-dots-pagination .dot {
        width: 6px; /* Sleeker dots */
        height: 6px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .bili-dots-pagination .dot.active {
        background-color: #fb7299;
        width: 14px; /* Sleek pill shape to fit capsule */
        border-radius: 3px;
        box-shadow: 0 0 6px rgba(251, 114, 153, 0.8); /* Glow */
    }

    @keyframes playPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 15px rgba(0, 0, 0, 0.2);
        }
    }
}

@media (min-width: 768px) {
    .bili-dots-pagination {
        display: none !important;
    }
}

/* Homepage WAP: move complete posters together, without fade/zoom re-entry. */
@media (max-width: 767px) {
    .page-home .home-banner-mobile .is-swipe-ready .bili-slides {
        touch-action: pan-y pinch-zoom;
        overflow: hidden;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-slide {
        opacity: 0;
        visibility: hidden;
        transition: none;
        animation: none;
        will-change: auto;
        pointer-events: none;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-slide.is-swipe-visible {
        opacity: 1;
        visibility: visible;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-slide.active {
        pointer-events: auto;
    }

    .page-home .home-banner-mobile .is-swipe-ready.is-sliding .bili-slide {
        will-change: transform;
        pointer-events: none;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-slide-img,
    .page-home .home-banner-mobile .is-swipe-ready .bili-slide-info,
    .page-home .home-banner-mobile .is-swipe-ready .bili-play-text {
        transform: none;
        transition: none;
        animation: none;
        will-change: auto;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-slide-info {
        opacity: 1;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-play-btn {
        transform: none !important;
        animation: none;
        transition: transform .12s ease, background-color .2s ease;
    }

    .page-home .home-banner-mobile .is-swipe-ready .bili-play-btn:active {
        transform: scale(.92) !important;
    }

    .page-home .home-banner-mobile .is-swipe-ready .dot {
        position: relative;
        flex-shrink: 0;
        min-width: 0;
        padding: 0;
        border: 0;
        appearance: none;
        touch-action: manipulation;
        transition: width .2s ease, background-color .2s ease;
    }

    .page-home .home-banner-mobile .is-swipe-ready .dot::before {
        content: "";
        position: absolute;
        inset: -4px;
    }

    .page-home .home-banner-mobile .is-swipe-ready .dot:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }

    .page-home .home-banner-mobile .is-swipe-ready.is-single-slide .bili-dots-pagination {
        display: none !important;
    }
}

/* Tablet screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .bili-banner-thumbs {
        --thumb-height: 76.5px;
    }
}

/* Medium desktop screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .bili-banner-thumbs {
        --thumb-height: 95.7px;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion Preferences
   Disables all decorative animations for users who prefer reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* Disable Ken Burns slow zoom on active slide background */
    .bili-slide-img {
        transition: none !important;
    }
    .bili-slide.active .bili-slide-img {
        transform: scale(1) !important;
    }

    /* Disable slide reveal scale animation */
    .bili-slide.active {
        animation: none !important;
    }

    /* Disable info overlay slide-up transition */
    .bili-slide-info {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Disable play button parallax entry and pulse glow */
    .bili-play-btn {
        transform: none !important;
        transition: background-color 0.2s ease !important;
        animation: none !important;
    }
    .bili-slide.active .bili-play-btn {
        transform: none !important;
    }

    /* Disable text parallax entry */
    .bili-play-text {
        transform: none !important;
        transition: none !important;
    }

    /* Disable thumbnail card shifting animation */
    .bili-thumb-card {
        transition: none !important;
    }

    /* Disable thumbnail hover zoom */
    .bili-thumb-card:hover .bili-thumb-img {
        transform: none !important;
    }

    /* Disable notice card hover uplift */
    .hom_sm_list li.notice:hover .smlist_box {
        transform: none !important;
    }
    .hom_sm_list li.notice:hover .nico {
        transform: none !important;
    }
}

/* ==========================================================================
   Homepage Notice Bar Styling Redesign (通告栏卡片样式微调)
   ========================================================================== */

/* General and Desktop Styles */
.hom_sm_list li.notice {
    padding: 0.125rem;
}

.hom_sm_list li.notice .smlist_box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important; /* Modern rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease !important;
    height: 40px !important; /* Force precise height */
    line-height: 38px !important; /* Align text vertically accounting for 1px border */
    overflow: hidden;
}

.hom_sm_list li.notice .smlist_box marquee {
    margin: 0 15px 0 45px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #505050 !important;
    height: 100% !important;
    line-height: 38px !important;
}

.hom_sm_list li.notice .nico {
    position: absolute !important;
    color: #fb7299 !important; /* Bilibili pink */
    font-size: 15px !important;
    left: 18px !important;
    line-height: 38px !important;
    top: 0 !important;
    z-index: 2 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease !important;
}

@media (min-width: 768px) {
    .hom_sm_list li.notice:hover .smlist_box {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(251, 114, 153, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
        border-color: rgba(251, 114, 153, 0.3) !important;
    }
    
    .hom_sm_list li.notice:hover .nico {
        transform: scale(1.2) rotate(8deg) !important;
        color: #ff85a7 !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .hom_sm_list li.notice {
        width: 100% !important;
        padding: 0.15rem 0.375rem !important; /* Standard side alignment matching other cards */
        margin: 0 0 0.25rem 0 !important;
    }
    
    .hom_sm_list li.notice .smlist_box {
        height: 1.15rem !important; /* Modern spaced out height */
        line-height: calc(1.15rem - 2px) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    }
    
    .hom_sm_list li.notice .smlist_box marquee {
        margin: 0 0.4rem 0 1.05rem !important;
        font-size: 0.32rem !important;
        line-height: calc(1.15rem - 2px) !important;
        color: #505050 !important;
    }
    
    .hom_sm_list li.notice .nico {
        left: 0.375rem !important;
        line-height: calc(1.15rem - 2px) !important;
        font-size: 0.4rem !important;
        color: #fb7299 !important;
    }
}
/* Homepage async fragments. */
.home_async_status {
    min-height: 20px;
    margin: 8px 0 0;
    text-align: center;
}

.home-week-schedule .cbox_list {
    position: relative;
}

/* Feedback must not move the sections below the schedule while loading. */
.home-week-schedule .home_async_status {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    min-height: 0;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 14px;
    line-height: 20px;
}

.home-week-schedule .home_async_status:not(:empty) {
    padding: 6px 12px;
    border-radius: 6px;
    color: #444;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home_async_change.is_loading {
    pointer-events: none;
    opacity: 1;
}

.home_async_change.is_error {
    color: #d45b7c;
}

.pannel_head a.home_async_change {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 5.6em;
    box-sizing: border-box;
    white-space: nowrap;
}

.pannel_head a.home_async_change i.iconfont {
    display: inline-block;
    flex: 0 0 auto;
    color: #fb7299;
    vertical-align: top;
    -webkit-transition: none;
    transition: none;
}
