/* ============================================
   Weekly Release Calendar
   ============================================ */

.weekly-calendar-section {
    margin-bottom: var(--space-2xl);
}

.weekly-calendar-section .section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.weekly-calendar-section .section-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Day tabs */
.schedule-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.schedule-tabs::-webkit-scrollbar {
    display: none;
}

.schedule-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.schedule-tab:hover {
    color: #aaa;
    background: rgba(255,255,255,0.04);
}

.schedule-tab.active {
    color: #fff;
    background: rgba(59,130,246,0.12);
}

.schedule-tab-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.schedule-tab-count {
    font-size: 0.6rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.6;
}

.schedule-tab.active .schedule-tab-count {
    opacity: 0.9;
}

/* Time badge on schedule cards */
.schedule-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
}

.schedule-card .section-row-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
}

/* Day content fade-in animation */
.schedule-day-content {
    animation: fadeIn 0.3s ease-out forwards;
}

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

/* ============================================
   Top Anime Sidebar Widget (Ranked List)
   ============================================ */

.top-anime-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 3px;
}

.top-anime-tab {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.top-anime-tab:hover {
    color: var(--text-secondary);
}

.top-anime-tab.active {
    background: var(--bg-primary);
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.top-anime-content {
    animation: fadeIn 0.25s ease-out forwards;
}

.top-anime-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.top-anime-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}

.top-anime-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-mono, monospace);
}

.top-rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a2e;
}
.top-rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a2e;
}
.top-rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8722d);
    color: #fff;
}

.top-anime-poster {
    width: 36px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.top-anime-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-anime-info {
    flex: 1;
    min-width: 0;
}

.top-anime-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.top-anime-meta {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.top-anime-rating {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--warning);
    flex-shrink: 0;
    margin-left: 4px;
}

/* ============================================
   Simplified Schedule List (compact card-less)
   ============================================ */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

.schedule-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 117, 193, 0.3);
    transform: translateX(4px);
}

.schedule-list-poster {
    width: 44px;
    height: 62px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.schedule-list-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.schedule-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.schedule-list-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.schedule-list-ep {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* ============================================
   Home Page - YumeZone Style Rows
   ============================================ */

/* Section header with badge and View All */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-section-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.home-section-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #ff5fa9, #ff75c1);
    color: #fff;
}

.home-section-badge.new-badge {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.home-section-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.home-section-view-all:hover {
    color: var(--accent);
}

/* Horizontal scrollable row of compact cards */
.home-row-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin-bottom: var(--space-xl);
}

.home-row-scroll::-webkit-scrollbar {
    display: none;
}

/* Compact card (yumezone style) */
.home-row-card {
    flex: 0 0 150px;
    width: 150px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform var(--transition-normal);
}

.home-row-card:hover {
    transform: translateY(-4px);
}

.home-row-card-poster {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
}

.home-row-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.home-row-card:hover .home-row-card-poster img {
    transform: scale(1.05);
}

/* Small rating badge on poster top-right */
.home-row-card-rating {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: var(--warning);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 2;
}

.home-row-card-18 {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--error);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.home-row-card-info {
    padding: 8px 2px 0;
}

.home-row-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 2px;
}

.home-row-card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-row-card-meta .type {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.home-row-card-meta .eps {
    color: var(--text-secondary);
}

/* Upcoming Releases list */
.upcoming-section {
    margin-bottom: var(--space-xl);
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-xl);
}

.upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.upcoming-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 117, 193, 0.2);
}

.upcoming-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    margin-right: var(--space-md);
}

.upcoming-item-type {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .home-row-card {
        flex: 0 0 120px;
        width: 120px;
    }
    .home-row-card-title {
        font-size: 0.75rem;
    }
    .home-row-scroll {
        gap: 10px;
    }
    .home-section-title {
        font-size: 1rem;
    }
}

/* ============================================
   Main Content Schedule Grid
   ============================================ */

.schedule-section-main {
    margin-bottom: var(--space-2xl);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.schedule-grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.schedule-grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 117, 193, 0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.schedule-grid-poster {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.schedule-grid-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.schedule-grid-card:hover .schedule-grid-poster img {
    transform: scale(1.05);
}

.schedule-grid-info {
    padding: 8px 10px 10px;
}

.schedule-grid-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 6px;
}

.schedule-grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.schedule-section-main .schedule-list-ep {
    font-size: 0.7rem;
}

.schedule-section-main .schedule-time-badge {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .schedule-tab {
        padding: 8px 14px;
        min-width: 60px;
    }
    .schedule-tab-day {
        font-size: 0.75rem;
    }
    .schedule-tab-count {
        font-size: 0.6rem;
    }
}
