@charset "utf-8";
/*!
 * 飯時アニメ
 */
@media (min-width:1500px) {
    .container {
        max-width:1400px;
    }
}
body figure {
    margin: 0;
}

/* eye-catch
-------------------*/
.eye-catch {
    position: relative;
    overflow: hidden;
    cursor: default;
    min-height: 500px;
    background-color: #1a1a2e;
}
.eye-catch .jarallax-img {
    object-fit: contain;
    object-position: center calc(50% + 30px);
    margin-top: -80px !important;
}
.eye-catch .mask {
    background-color: rgba(0, 0, 0, 0.45);
    height: 100%;
    width: 100%;
}
.eye-catch-block .hr-light {
    border-top: 1px solid #fff;
    opacity: 1;
}
.eye-catch-block h1, .eye-catch-block h5 {
    color: #fff;
}
.eye-catch-block a.btn {
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    margin: .375rem;
    transition: background-color 0.2s, color 0.2s;
}
.eye-catch-block a.btn:hover {
    background-color: #fff;
    color: #1a1a2e;
}

/* bg-custom
-------------*/
.bg-custom-1 {
    background-color: #ffffff;
    color: #212529;
}
[data-mdb-theme="dark"] .bg-custom-1 {
    background-color: #1e1e1e;
    color: #f0f0f0;
}
.bg-custom-2 {
    background-color: #f8f9fa;
    color: #212529;
}
[data-mdb-theme="dark"] .bg-custom-2 {
    background-color: #212529;
    color: #f8f9fa;
}

/* ranking cards
------------------*/
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
}
.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}
.rank-2 {
    background: linear-gradient(135deg, #e0e0e0, #8e8e8e);
    color: #fff;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}
.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.25);
}
.rank-default {
    background: #6c757d;
    color: #fff;
}
[data-mdb-theme="dark"] .rank-default {
    background: #495057;
}

.ranking-card {
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    border-radius: 0.75rem !important;
    overflow: hidden;
}
.ranking-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    opacity: 0.75;
    cursor: pointer;
}
[data-mdb-theme="dark"] .ranking-card-link:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.35) !important;
}

.ranking-card.top-3 {
    border-left: 4px solid;
}
.ranking-card.rank-gold   { border-left-color: #ffd700; }
.ranking-card.rank-silver { border-left-color: #c0c0c0; }
.ranking-card.rank-bronze { border-left-color: #cd7f32; }

[data-mdb-theme="dark"] .ranking-card.rank-gold   { border-left-color: #e6c200; }
[data-mdb-theme="dark"] .ranking-card.rank-silver  { border-left-color: #9e9e9e; }
[data-mdb-theme="dark"] .ranking-card.rank-bronze  { border-left-color: #b87333; }

.ranking-card .card-body {
    padding: 1rem 1.25rem;
}

.ranking-card-thumb {
    width: 120px;
    border-radius: 0.4rem;
    overflow: hidden;
}
.ranking-card-thumb img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
}
@media (max-width: 575.98px) {
    .ranking-card-thumb {
        width: 90px;
    }
    .ranking-card-thumb img {
        height: 51px;
    }
}

.ranking-card-link {
    display: block;
}
.ranking-card .anime-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.crown-icon {
    font-size: 0.8em;
    margin-left: 3px;
    vertical-align: middle;
}

/* non-anime marker */
.ranking-card .non-anime-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #6c757d;
}
[data-mdb-theme="dark"] .ranking-card .non-anime-title {
    color: #9e9e9e;
}

/* placeholder images */
.placeholder-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    min-height: 200px;
}
.placeholder-img.winter { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.placeholder-img.spring { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.placeholder-img.summer { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.placeholder-img.autumn { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* youtube embed
-------------------*/
.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.youtube-container .youtube-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.youtube-container .youtube-placeholder:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #3d2b79 100%);
    color: rgba(255,255,255,0.6);
}

/* anime detail
-------------------*/
.anime-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.anime-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #6c757d;
}
[data-mdb-theme="dark"] .anime-detail-meta .meta-item {
    color: #adb5bd;
}
.anime-detail-meta .meta-item i {
    font-size: 0.8rem;
}

.streaming-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.streaming-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
[data-mdb-theme="dark"] .streaming-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* section heading */
.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    font-size: 1rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}

/* welcome alert */
.welcome-alert {
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 113, 202, 0.15);
    background: rgba(59, 113, 202, 0.05);
    color: inherit;
}
[data-mdb-theme="dark"] .welcome-alert {
    border-color: rgba(139, 185, 254, 0.15);
    background: rgba(139, 185, 254, 0.05);
}

/* article page
-------------------*/
.article-page {
    max-width: 780px;
    margin: 0 auto;
}
.article-eyecatch {
    border-radius: 0.75rem;
    overflow: hidden;
}
.article-eyecatch img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.article-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.article-meta {
    display: flex;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}
[data-mdb-theme="dark"] .article-meta {
    color: #adb5bd;
}
.article-lead {
    font-size: 1.05rem;
    color: #6c757d;
    border-left: 3px solid #3b71ca;
    padding-left: 1rem;
    margin-bottom: 2rem;
}
[data-mdb-theme="dark"] .article-lead {
    color: #adb5bd;
    border-left-color: #8bb9fe;
}

/* article body
-------------------*/
.article-body {
    font-size: 0.95rem;
}
.article-body h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b71ca;
}
[data-mdb-theme="dark"] .article-body h1 {
    border-bottom-color: #8bb9fe;
}
.article-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid #3b71ca;
}
[data-mdb-theme="dark"] .article-body h2 {
    border-left-color: #8bb9fe;
}
.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.article-body p {
    line-height: 1.9;
    margin-bottom: 1.25rem;
}
.article-body hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px dashed rgba(0,0,0,0.15);
}
[data-mdb-theme="dark"] .article-body hr {
    border-top-color: rgba(255,255,255,0.12);
}
.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}
.article-body strong {
    font-weight: 700;
}

/* accordion-button (dark) */
[data-mdb-theme="dark"] .accordion-button:not(.collapsed) {
    color: #ffffff !important;
}
html[data-mdb-theme="dark"] .accordion-button:not(.collapsed)::after {
    filter: brightness(5);
}
