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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #000000e8;
    color: #2f3640;
    transition: background 0.3s ease, color 0.3s ease;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
}

.tab-container {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.tab {
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

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

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

.tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

.tab.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.5);
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    animation: fadeIn 0.5s ease-out;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cover-story {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cover-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.cover-stories-grid .cover-story {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

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

.cover-story:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.25), 
                0 10px 20px rgba(255, 107, 107, 0.1);
    border-color: rgba(78, 205, 196, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.cover-story:hover .cover-story-content h3 {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.cover-story h3 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cover-story-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chapters {
    color: #a0a0a0;
    margin-bottom: 1rem;
    font-style: italic;
}

.pdf-container {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 120px;
    flex-shrink: 0;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* Same fixed short height */
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(78, 205, 196, 0.5);
}

.load-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: 500;
}

.load-button svg {
    opacity: 0.8;
}

.pdf-placeholder:hover .load-button {
    color: #ff6b6b;
    transform: scale(1.1) translateY(-2px);
}

.pdf-placeholder:hover .load-button svg {
    animation: pulse 1.5s ease-in-out infinite;
}

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

.info-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: #b0b0b0;
    border-left: 3px solid #4ecdc4;
    flex-shrink: 0;
}

.spoiler {
    background: rgba(255, 255, 255, 0.2);
    color: transparent;
    border-radius: 3px;
    padding: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.spoiler.revealed {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.spoiler:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-item:hover {
    transform: translateX(10px);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: -5px 0 20px rgba(78, 205, 196, 0.2);
}

.content-item h4 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.content-item p {
    color: #d0d0d0;
    line-height: 1.6;
}

.episodes {
    color: #4ecdc4;
    font-weight: 500;
    margin-top: 0.5rem;
}

.special-link {
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.special-link:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .cover-story {
        padding: 1.5rem;
    }
}
@media (max-width: 1200px) {
    .cover-stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cover-stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .cover-story {
        padding: 1.25rem;
        margin-bottom: 0;
    }
    
    .pdf-container, .pdf-placeholder {
        height: 100px;
    }
}

.scroll-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.scroll-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.3);
}

.specials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.special-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.special-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
}

.special-item h4 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.special-item p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.special-item .episodes {
    color: #4ecdc4;
    font-weight: 500;
    margin-top: 0.5rem;
}

.special-embed {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    width: 100%;
}

.special-embed.movie-poster {
    aspect-ratio: 7/5;
}

.special-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.special-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

@media (max-width: 768px) {
    .specials-grid {
        flex-direction: column;
    }
    
    .special-item {
        flex: 1 1 100%;
        min-width: unset;
    }
}

.warning-box {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box.yellow {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.warning-icon {
    flex-shrink: 0;
}

.load-all-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.load-all-btn {
    padding: 1.2rem 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4ecdc4;
    border-radius: 8px;
    color: #4ecdc4;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.load-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.6s;
}

.load-all-btn:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

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

.load-all-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #666;
    color: #999;
}

.load-all-btn:disabled:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #999;
    border-color: #666;
    box-shadow: none;
}

.non-canon-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.non-canon-row-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.non-canon-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.non-canon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
}

.non-canon-item h4 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.non-canon-embed {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4/3;
    width: 100%;
}

.non-canon-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nissin-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nissin-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
}

.nissin-container h4 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.nissin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    min-height: 400px;
}

.nissin-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nissin-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.2);
}

.nissin-item h5 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.nissin-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
    width: 100%;
}

.nissin-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .non-canon-row-1 {
        grid-template-columns: 1fr;
    }
    
    .nissin-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        min-height: auto;
    }
    
    .nissin-container {
        padding: 1.5rem;
    }
    
    .non-canon-item {
        padding: 1.25rem;
    }
}

.filler-timeline {
    position: relative;
    padding: 2rem 0;
}

.filler-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4ecdc4 0%, #ff6b6b 50%, #4ecdc4 100%);
    border-radius: 2px;
}

.filler-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem 5rem 1.5rem 4rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    opacity: 1;
}

.filler-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.filler-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.filler-item:hover::before {
    background: #ff6b6b;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.filler-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filler-title {
    color: #4ecdc4;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.filler-episodes {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.filler-description {
    color: #d0d0d0;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.filler-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    color: #ffc107;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    font-style: italic;
}

.special-filler {
    border-color: rgba(255, 107, 107, 0.3);
}

.special-filler::before {
    background: #ff6b6b;
}

.special-filler .filler-title {
    color: #ff6b6b;
}

.special-filler .filler-episodes {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.episode-count {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4, #26a085);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.filler-item:hover .episode-count {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.5);
}

.special-filler .episode-count {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.special-filler:hover .episode-count {
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

@media (max-width: 768px) {
    .episode-count {
        right: 1rem;
        top: 1rem;
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .filler-timeline::before {
        left: 15px;
    }
    
    .filler-item {
        margin-left: 1rem;
        padding: 1.25rem 3.5rem 1.25rem 2.5rem;
    }
    
    .filler-item::before {
        left: -1.5rem;
        top: 1.25rem;
    }
    
    .filler-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filler-title {
        font-size: 1.2rem;
    }
}

.title-with-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.title-with-download h4 {
    margin: 0;
    flex: 1;
}

.download-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    border-radius: 50%;
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
    overflow: visible;
}

.download-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #fff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.download-btn svg {
    width: 16px;
    height: 16px;
    overflow: visible;
}

.ops-eds-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ops-eds-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.ops-eds-item.no-video {
    grid-template-columns: 1fr;
}

.ops-eds-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
}

.ops-eds-content {
    display: flex;
    flex-direction: column;
}

.ops-eds-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.ops-eds-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ops-eds-item h4 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ops-eds-item p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.ops-eds-item .episodes {
    color: #4ecdc4;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .ops-eds-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ops-eds-item.no-video {
        grid-template-columns: 1fr;
    }
}
