/* Yamsekai Anime Social Network & MAL Lists — Complete Modern Style */

/* Subnavigation pills bar */
.ya-subnav {
 margin: 0 0 1.25rem;
 padding: .45rem;
 border-radius: 18px;
 background: color-mix(in srgb, currentColor 6%, transparent);
 border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.ya-subnav-scroll {
 display: flex;
 align-items: center;
 gap: .5rem;
 overflow-x: auto;
 scrollbar-width: none;
 -webkit-overflow-scrolling: touch;
}
.ya-subnav-scroll::-webkit-scrollbar { display: none; }
.ya-subnav-pill {
 display: inline-flex;
 align-items: center;
 gap: .45rem;
 padding: .5rem .85rem;
 border-radius: 12px;
 text-decoration: none;
 color: inherit;
 font-weight: 650;
 font-size: .88rem;
 white-space: nowrap;
 transition: background .15s ease, color .15s ease, transform .1s ease;
}
.ya-subnav-pill:hover {
 background: color-mix(in srgb, currentColor 10%, transparent);
 transform: translateY(-1px);
}
.ya-subnav-pill.is-active {
 background: linear-gradient(135deg, #6366f1, #ec4899);
 color: #fff !important;
 box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

/* 2-Column Social Feed Layout */
.ya-feed-layout {
 display: grid;
 grid-template-columns: 1fr minmax(280px, 340px);
 gap: 1.5rem;
 align-items: start;
}
@media (max-width: 900px) {
 .ya-feed-layout {
  grid-template-columns: 1fr;
 }
}

.ya-feed-main {
 display: flex;
 flex-direction: column;
 gap: 1.25rem;
 min-width: 0;
}
.ya-feed-sidebar {
 display: flex;
 flex-direction: column;
 gap: 1.25rem;
 position: sticky;
 top: 1rem;
}

/* Feed Tabs */
.ya-feed-tabs {
 display: flex;
 flex-wrap: wrap;
 gap: .5rem;
 margin-bottom: .5rem;
}
.ya-feed-tabs a {
 display: inline-flex;
 align-items: center;
 padding: .45rem .85rem;
 border-radius: 10px;
 border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
 background: color-mix(in srgb, currentColor 4%, transparent);
 text-decoration: none;
 color: inherit;
 font-size: .88rem;
 font-weight: 600;
}
.ya-feed-tabs a.is-active {
 background: color-mix(in srgb, currentColor 16%, transparent);
 border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.ya-feed-active-tag {
 display: inline-flex;
 align-items: center;
 gap: .4rem;
 padding: .45rem .75rem;
 border-radius: 10px;
 background: #6366f1;
 color: #fff;
 font-weight: 700;
 font-size: .88rem;
}
.ya-feed-active-tag a {
 color: #fff;
 text-decoration: none;
 font-weight: bold;
}

/* Post Composer (Otaku Dispatch) */
.ya-composer-card {
 padding: 1.15rem;
 border-radius: 18px;
 border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
 background: color-mix(in srgb, currentColor 3.5%, transparent);
}
.ya-composer-type-row {
 display: flex;
 align-items: center;
 gap: .65rem;
 margin-bottom: .75rem;
 flex-wrap: wrap;
 font-size: .86rem;
}
.ya-composer-type-label {
 font-weight: 700;
 opacity: .8;
}
.ya-ep-tag-label {
 display: inline-flex;
 align-items: center;
 gap: .35rem;
 font-size: .82rem;
}
.ya-input-num {
 width: 60px;
 padding: .3rem .45rem;
 border-radius: 8px;
 border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
 background: color-mix(in srgb, #000 20%, transparent);
 color: inherit;
}
.ya-composer-top {
 display: flex;
 gap: .85rem;
 align-items: flex-start;
}
.ya-composer-top textarea {
 flex: 1;
 resize: vertical;
 padding: .75rem .95rem;
 border-radius: 14px;
 border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
 background: color-mix(in srgb, #000 25%, transparent);
 color: inherit;
 font-family: inherit;
 font-size: .95rem;
 line-height: 1.4;
 min-height: 72px;
}
.ya-composer-top textarea:focus {
 outline: 2px solid #8b5cf6;
 border-color: transparent;
}
.ya-composer-bar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: .75rem;
 margin-top: .75rem;
 padding-top: .75rem;
 border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ya-composer-options {
 display: flex;
 align-items: center;
 gap: .75rem;
 flex-wrap: wrap;
}
.ya-checkbox-label {
 display: inline-flex;
 align-items: center;
 gap: .4rem;
 cursor: pointer;
 font-size: .84rem;
 user-select: none;
}
.ya-spoiler-toggle {
 color: #f59e0b;
}
.ya-select-compact {
 max-width: 240px;
 font-size: .84rem;
 padding: .35rem .6rem;
 border-radius: 8px;
 border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
 background: color-mix(in srgb, #000 20%, transparent);
 color: inherit;
}
.ya-broadcast-btn {
 display: inline-flex;
 align-items: center;
 gap: .45rem;
}

/* Post Cards */
.ya-posts-stream {
 display: flex;
 flex-direction: column;
 gap: 1.25rem;
}
.ya-post-card {
 padding: 1.25rem;
 border-radius: 18px;
 border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
 background: color-mix(in srgb, currentColor 3.5%, transparent);
 transition: border-color .15s ease;
}
.ya-post-card:hover {
 border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.ya-post-header {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 margin-bottom: .85rem;
}
.ya-post-author {
 display: flex;
 gap: .75rem;
 align-items: center;
}
.ya-post-names {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: .45rem;
}
.ya-post-username {
 text-decoration: none;
 color: inherit;
 font-size: 1rem;
}
.ya-post-ctx {
 font-size: .84rem;
 opacity: .85;
}
.ya-post-ctx a {
 color: #818cf8;
 text-decoration: none;
 font-weight: 600;
}
.ya-post-type-badge {
 display: inline-flex;
 align-items: center;
 gap: .25rem;
 padding: .15rem .5rem;
 border-radius: 999px;
 background: color-mix(in srgb, #8b5cf6 20%, transparent);
 border: 1px solid color-mix(in srgb, #8b5cf6 35%, transparent);
 color: #c4b5fd;
 font-size: .74rem;
 font-weight: 700;
}
.ya-post-time {
 font-size: .78rem;
 opacity: .65;
}
.ya-post-time a {
 color: inherit;
 text-decoration: none;
}
.ya-post-menu {
 display: flex;
 align-items: center;
 gap: .35rem;
}
.ya-monogram-otaku {
 background: linear-gradient(135deg, #6366f1, #a855f7) !important;
 color: #fff !important;
 box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Post Body & Jutsu Sealed Spoilers */
.ya-post-body {
 margin-bottom: 1rem;
 font-size: .98rem;
 line-height: 1.5;
 word-break: break-word;
}
.ya-jutsu-sealed {
 padding: .85rem 1rem;
 border-radius: 14px;
 background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
 border: 1px dashed rgba(245, 158, 11, 0.5);
 cursor: pointer;
}
.ya-jutsu-sealed summary {
 font-weight: 700;
 font-size: .92rem;
 color: #f59e0b;
 user-select: none;
}
.ya-jutsu-sealed[open] {
 background: color-mix(in srgb, currentColor 4%, transparent);
 border-style: solid;
 border-color: color-mix(in srgb, currentColor 14%, transparent);
}
.ya-jutsu-sealed[open] summary {
 margin-bottom: .6rem;
 color: inherit;
 opacity: .7;
}

/* Shared / Simulcast Embed */
.ya-simulcast-embed {
 margin-top: .85rem;
 padding: .95rem;
 border-radius: 14px;
 border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
 background: color-mix(in srgb, #000 20%, transparent);
}
.ya-shared-header {
 display: flex;
 align-items: center;
 gap: .45rem;
 flex-wrap: wrap;
 margin-bottom: .5rem;
 font-size: .88rem;
}
.ya-shared-body {
 font-size: .92rem;
 line-height: 1.45;
 margin-bottom: .45rem;
}
.ya-shared-link {
 font-size: .82rem;
 font-weight: 600;
 color: #818cf8;
 text-decoration: none;
}

/* Post Stats Bar */
.ya-post-stats {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: .4rem 0 .6rem;
 font-size: .84rem;
 opacity: .8;
 border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ya-stat-emoji {
 font-size: 1.05rem;
 margin-right: 2px;
}
.ya-react-count {
 margin-left: .35rem;
}

/* Anime-Specific Reaction Bar & Animated Palette */
.ya-post-actions-bar {
 display: flex;
 justify-content: space-around;
 align-items: center;
 padding: .4rem 0;
 border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ya-action-btn {
 display: inline-flex;
 align-items: center;
 gap: .45rem;
 padding: .5rem .85rem;
 border-radius: 10px;
 background: transparent;
 border: 0;
 color: inherit;
 font-size: .9rem;
 font-weight: 650;
 cursor: pointer;
 text-decoration: none;
 transition: background .15s ease, transform .1s ease;
 user-select: none;
}
.ya-action-btn:hover {
 background: color-mix(in srgb, currentColor 8%, transparent);
 transform: translateY(-1px);
}
.ya-action-btn.is-reacted {
 font-weight: 800;
}
.ya-action-btn.is-sugoi { color: #f97316; }
.ya-action-btn.is-kokoro { color: #ec4899; }
.ya-action-btn.is-waku { color: #10b981; }
.ya-action-btn.is-peak { color: #eab308; }
.ya-action-btn.is-nani { color: #facc15; }
.ya-action-btn.is-feels { color: #38bdf8; }
.ya-action-btn.is-baka { color: #ef4444; }

.ya-react-dropdown {
 position: relative;
}
.ya-reactions-trigger {
 cursor: pointer;
 padding: .2rem .5rem;
 border-radius: 999px;
 transition: background .15s ease;
 user-select: none;
}
.ya-reactions-trigger:hover {
 background: rgba(255, 255, 255, 0.08);
}
.ya-anime-palette {
 position: absolute;
 bottom: calc(100% + 8px);
 left: 0;
 display: none;
 align-items: center;
 gap: .45rem;
 padding: .45rem .85rem;
 border-radius: 999px;
 background: rgba(18, 24, 38, 0.96);
 backdrop-filter: blur(16px);
 -webkit-backdrop-filter: blur(16px);
 border: 1px solid rgba(255, 255, 255, 0.18);
 box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(139, 92, 246, 0.2);
 z-index: 100;
 pointer-events: auto;
 animation: yaPop .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ya-react-dropdown:hover .ya-anime-palette,
.ya-react-dropdown:focus-within .ya-anime-palette {
 display: flex;
}
.ya-palette-btn {
 position: relative;
 background: transparent;
 border: 0;
 font-size: 1.65rem;
 padding: .2rem .35rem;
 cursor: pointer;
 transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), filter .18s ease;
 line-height: 1;
}
.ya-palette-btn:hover {
 transform: scale(1.48) translateY(-9px);
 filter: drop-shadow(0 4px 10px rgba(244, 63, 94, 0.6));
}
.ya-palette-btn.is-active {
 filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.9));
}
.ya-palette-tooltip {
 display: none;
 position: absolute;
 bottom: 120%;
 left: 50%;
 transform: translateX(-50%);
 background: rgba(12, 16, 26, 0.95);
 border: 1px solid rgba(255, 255, 255, 0.2);
 color: #fff;
 padding: .22rem .6rem;
 border-radius: 8px;
 font-size: .75rem;
 font-weight: 700;
 white-space: nowrap;
 pointer-events: none;
 box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}
.ya-palette-btn:hover .ya-palette-tooltip {
 display: block;
}

/* Micro-interaction pulse */
.ya-pulse {
 animation: yaReactPulse .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes yaReactPulse {
 0% { transform: scale(1); }
 50% { transform: scale(1.3); }
 100% { transform: scale(1); }
}

/* Detailed Reaction Breakdown Modal (Facebook-style) */
.ya-modal-backdrop {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(5, 8, 14, 0.78);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 z-index: 9999;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 1rem;
 animation: yaFadeIn .18s ease;
}
.ya-modal-backdrop.ya-modal-closing {
 opacity: 0;
 transition: opacity .16s ease;
}
@keyframes yaFadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}
.ya-reactions-modal {
 background: #131826;
 border: 1px solid rgba(255, 255, 255, 0.16);
 border-radius: 20px;
 width: 100%;
 max-width: 520px;
 max-height: 85vh;
 display: flex;
 flex-direction: column;
 box-shadow: 0 24px 55px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 92, 246, 0.25);
 overflow: hidden;
 animation: yaModalSlideIn .22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes yaModalSlideIn {
 from { opacity: 0; transform: translateY(16px) scale(0.95); }
 to { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-reactions-modal-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 1rem 1.25rem;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ya-reactions-modal-title {
 display: flex;
 align-items: center;
 gap: .6rem;
}
.ya-reactions-modal-title h3 {
 margin: 0;
 font-size: 1.12rem;
 font-weight: 800;
 background: linear-gradient(135deg, #fff, #c4b5fd);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}
.ya-modal-crest {
 font-size: 1.25rem;
}
.ya-modal-close-btn {
 background: transparent;
 border: 0;
 color: inherit;
 font-size: 1.6rem;
 line-height: 1;
 cursor: pointer;
 opacity: .75;
 transition: opacity .15s, transform .15s;
 padding: .2rem .4rem;
}
.ya-modal-close-btn:hover {
 opacity: 1;
 transform: scale(1.15);
}
.ya-reactions-tabs-bar {
 display: flex;
 gap: .35rem;
 padding: .65rem 1rem;
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 overflow-x: auto;
 scrollbar-width: none;
 background: rgba(0, 0, 0, 0.2);
}
.ya-reactions-tabs-bar::-webkit-scrollbar { display: none; }
.ya-modal-tab {
 background: transparent;
 border: 0;
 color: inherit;
 opacity: .8;
 font-size: .82rem;
 font-weight: 700;
 padding: .4rem .75rem;
 border-radius: 999px;
 cursor: pointer;
 white-space: nowrap;
 transition: all .15s ease;
}
.ya-modal-tab:hover {
 opacity: 1;
 background: rgba(255, 255, 255, 0.08);
}
.ya-modal-tab.is-active {
 opacity: 1;
 background: linear-gradient(135deg, #8b5cf6, #ec4899);
 color: #fff;
 box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}
.ya-reactions-modal-body {
 flex: 1;
 overflow-y: auto;
 padding: .85rem 1rem;
 min-height: 180px;
}
.ya-modal-loading, .ya-modal-empty {
 text-align: center;
 padding: 2.5rem 1rem;
 font-size: .92rem;
 opacity: .75;
}
.ya-modal-users-list {
 display: flex;
 flex-direction: column;
 gap: .65rem;
}
.ya-reaction-user-card {
 display: flex;
 align-items: center;
 gap: .85rem;
 padding: .55rem .75rem;
 border-radius: 14px;
 background: rgba(255, 255, 255, 0.03);
 border: 1px solid rgba(255, 255, 255, 0.06);
 transition: background .15s ease, transform .15s ease;
}
.ya-reaction-user-card:hover {
 background: rgba(255, 255, 255, 0.07);
 transform: translateX(3px);
}
.ya-user-avatar-wrap {
 position: relative;
 flex-shrink: 0;
}
.ya-user-reaction-badge {
 position: absolute;
 bottom: -4px;
 right: -4px;
 font-size: .95rem;
 filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.ya-user-info {
 flex: 1;
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: .15rem;
}
.ya-user-name {
 color: inherit;
 text-decoration: none;
 font-size: .92rem;
}
.ya-user-tier-pill {
 font-size: .72rem;
 font-weight: 700;
 color: #a78bfa;
}
.ya-user-action {
 flex-shrink: 0;
}

/* Simulcast Share Popover */
.ya-share-dropdown {
 position: relative;
}
.ya-share-dropdown summary::-webkit-details-marker { display: none; }
.ya-share-popover {
 position: absolute;
 top: 100%;
 right: 0;
 width: min(320px, 90vw);
 padding: .85rem;
 border-radius: 14px;
 background: #141a27;
 border: 1px solid rgba(255, 255, 255, 0.14);
 box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
 z-index: 50;
 margin-top: .4rem;
}
.ya-share-hint {
 font-size: .82rem;
 opacity: .85;
 margin: 0 0 .4rem;
}
.ya-share-popover textarea {
 width: 100%;
 box-sizing: border-box;
 padding: .5rem;
 border-radius: 8px;
 border: 1px solid rgba(255, 255, 255, 0.15);
 background: #0c1017;
 color: inherit;
 font-family: inherit;
 margin-bottom: .5rem;
}

/* Comments Section & Chat Bubbles */
.ya-comments-section {
 margin-top: .85rem;
 display: flex;
 flex-direction: column;
 gap: .65rem;
}
.ya-comments-more {
 font-size: .84rem;
 margin-bottom: .25rem;
}
.ya-comments-more a {
 color: #818cf8;
 text-decoration: none;
 font-weight: 700;
}
.ya-comments-list {
 display: flex;
 flex-direction: column;
 gap: .75rem;
}
.ya-comment-row {
 display: flex;
 gap: .65rem;
 align-items: flex-start;
}
.ya-comment-bubble-wrap {
 display: flex;
 flex-direction: column;
 gap: .25rem;
 max-width: calc(100% - 44px);
 flex: 1;
}
.ya-comment-bubble {
 padding: .65rem 1rem;
 border-radius: 18px;
 background: rgba(255, 255, 255, 0.05);
 border: 1px solid rgba(255, 255, 255, 0.08);
 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.ya-comment-bubble-header {
 display: flex;
 align-items: center;
 gap: .5rem;
 margin-bottom: .25rem;
 flex-wrap: wrap;
}
.ya-comment-author {
 color: inherit;
 text-decoration: none;
 font-size: .88rem;
}
.ya-op-badge {
 background: linear-gradient(135deg, #8b5cf6, #ec4899);
 color: #fff;
 font-size: .66rem;
 font-weight: 800;
 padding: 1px 6px;
 border-radius: 6px;
 line-height: 1.2;
}
.ya-otaku-pill {
 background: rgba(139, 92, 246, 0.16);
 color: #c4b5fd;
 font-size: .72rem;
 font-weight: 700;
 padding: 1px 6px;
 border-radius: 6px;
}
.ya-comment-body {
 font-size: .92rem;
 line-height: 1.4;
 word-break: break-word;
}
.ya-mention {
 color: #818cf8;
 text-decoration: none;
 font-weight: 700;
}
.ya-mention:hover {
 text-decoration: underline;
}
.ya-spoiler {
 display: inline-block;
 cursor: pointer;
 background: rgba(0, 0, 0, 0.4);
 border: 1px dashed rgba(244, 63, 94, 0.4);
 border-radius: 6px;
 padding: 2px 6px;
}
.ya-spoiler-badge {
 color: #f43f5e;
 font-size: .78rem;
 font-weight: 700;
}
.ya-spoiler-text {
 filter: blur(6px);
 transition: filter .2s ease;
 user-select: none;
}
.ya-spoiler.is-revealed .ya-spoiler-text {
 filter: none;
 user-select: text;
}
.ya-spoiler.is-revealed .ya-spoiler-badge {
 display: none;
}

/* Comment Meta Actions */
.ya-comment-meta {
 display: flex;
 align-items: center;
 gap: .85rem;
 font-size: .78rem;
 opacity: .88;
 padding-left: .5rem;
}
.ya-comment-time {
 opacity: .7;
}
.ya-comment-like-btn, .ya-comment-reply-btn, .ya-comment-delete-btn {
 background: transparent;
 border: 0;
 cursor: pointer;
 color: inherit;
 font-size: .78rem;
 font-weight: 700;
 padding: 2px 4px;
 border-radius: 6px;
 transition: all .15s ease;
 display: inline-flex;
 align-items: center;
 gap: .25rem;
}
.ya-comment-like-btn:hover {
 color: #f97316;
 transform: scale(1.05);
}
.ya-comment-like-btn.is-active {
 color: #f97316;
 font-weight: 800;
}
.ya-comment-like-count {
 background: rgba(249, 115, 22, 0.2);
 color: #f97316;
 padding: 1px 6px;
 border-radius: 999px;
 font-size: .7rem;
 font-weight: 800;
}
.ya-comment-reply-btn {
 color: #a78bfa;
}
.ya-comment-reply-btn:hover {
 color: #c4b5fd;
 text-decoration: underline;
}
.ya-comment-delete-btn {
 color: #ef4444;
}
.ya-comment-delete-btn:hover {
 color: #f87171;
 text-decoration: underline;
}

/* Nested Threaded Replies */
.ya-comment-replies {
 margin-top: .6rem;
 padding-left: 1.15rem;
 border-left: 2px solid rgba(139, 92, 246, 0.3);
 display: flex;
 flex-direction: column;
 gap: .6rem;
}
.ya-is-reply {
 position: relative;
}
.ya-is-reply::before {
 content: '';
 position: absolute;
 left: -1.15rem;
 top: 12px;
 width: .75rem;
 height: 2px;
 background: rgba(139, 92, 246, 0.3);
}
.ya-is-reply .ya-comment-bubble {
 background: rgba(255, 255, 255, 0.035);
 border-radius: 14px;
 padding: .5rem .85rem;
}

/* Threaded Inline Reply Form */
.ya-comment-reply-form {
 margin-top: .5rem;
 padding-left: 1.15rem;
 display: flex;
 gap: .55rem;
 align-items: center;
}
.ya-reply-input-wrap {
 display: flex;
 gap: .4rem;
 align-items: center;
 flex: 1;
}
.ya-reply-input-wrap input {
 flex: 1;
 padding: .45rem .8rem;
 border-radius: 999px;
 border: 1px solid rgba(255, 255, 255, 0.15);
 background: rgba(0, 0, 0, 0.35);
 color: inherit;
 font-size: .84rem;
}
.ya-reply-input-wrap input:focus {
 outline: 2px solid #8b5cf6;
 border-color: transparent;
}
.ya-reply-cancel-btn {
 padding: .35rem .6rem;
 border-radius: 999px;
 font-size: .75rem;
}

/* Comment Input Forms */
.ya-comment-input-form {
 display: flex;
 gap: .65rem;
 align-items: center;
 margin-top: .6rem;
}
.ya-comment-input-wrap {
 display: flex;
 flex: 1;
 align-items: center;
 position: relative;
}
.ya-comment-input-wrap input {
 width: 100%;
 padding: .6rem 2.8rem .6rem 1rem;
 border-radius: 999px;
 border: 1px solid rgba(255, 255, 255, 0.16);
 background: rgba(0, 0, 0, 0.3);
 color: inherit;
 font-size: .9rem;
 transition: border-color .15s ease, box-shadow .15s ease;
}
.ya-comment-input-wrap input:focus {
 outline: none;
 border-color: #8b5cf6;
 box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.ya-comment-send-btn {
 position: absolute;
 right: 6px;
 width: 32px;
 height: 32px;
 border-radius: 50%;
 border: 0;
 background: linear-gradient(135deg, #8b5cf6, #ec4899);
 color: #fff;
 font-size: .95rem;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: transform .15s ease, opacity .15s ease;
}
.ya-comment-send-btn:hover {
 transform: scale(1.1);
}
.ya-comment-send-btn.is-loading {
 opacity: .5;
 pointer-events: none;
}

/* Bubble Pop In Animation */
.ya-bubble-pop-in {
 animation: yaBubblePop .22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes yaBubblePop {
 0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
 100% { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-comment-input-form input:focus {
 outline: 2px solid #8b5cf6;
 border-color: transparent;
}

/* Sidebar Styling */
.ya-sidebar-card {
 padding: 1.15rem;
 border-radius: 18px;
 border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.ya-card-otaku {
 background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), color-mix(in srgb, currentColor 4%, transparent));
}
.ya-sidebar-card h3 {
 margin: 0 0 .85rem;
 font-size: 1rem;
 display: flex;
 align-items: center;
 gap: .45rem;
}
.ya-sidebar-user {
 display: flex;
 gap: .75rem;
 align-items: center;
 margin-bottom: .85rem;
}
.ya-sidebar-list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: .65rem;
}
.ya-sidebar-list li {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: .5rem;
}
.ya-sidebar-list li a {
 display: flex;
 align-items: center;
 gap: .55rem;
 text-decoration: none;
 color: inherit;
 font-size: .88rem;
 min-width: 0;
}
.ya-sidebar-list li strong {
 display: block;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 max-width: 170px;
}
.ya-sidebar-list li small {
 opacity: .7;
 font-size: .76rem;
}
.ya-sidebar-more {
 display: block;
 margin-top: .75rem;
 font-size: .84rem;
 font-weight: 600;
 color: #818cf8;
 text-decoration: none;
}
.ya-group-bullet {
 width: 12px;
 height: 12px;
 min-width: 12px;
 border-radius: 4px;
}

/* Anime Guilds Grid & Cards */
.ya-groups-header-bar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
 margin-bottom: 1rem;
}
.ya-groups-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 1.25rem;
}
.ya-group-card {
 border-radius: 18px;
 overflow: hidden;
 padding: 0;
 border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
 display: flex;
 flex-direction: column;
}
.ya-group-banner {
 height: 80px;
 position: relative;
 padding: .65rem .85rem;
}
.ya-group-privacy-badge {
 background: rgba(0, 0, 0, 0.6);
 backdrop-filter: blur(8px);
 color: #fff;
 padding: .2rem .55rem;
 border-radius: 999px;
 font-size: .72rem;
 font-weight: 700;
}
.ya-group-body {
 padding: 1.15rem;
 display: flex;
 flex-direction: column;
 flex: 1;
}
.ya-group-body h3 {
 margin: 0 0 .35rem;
 font-size: 1.1rem;
}
.ya-group-body h3 a {
 color: inherit;
 text-decoration: none;
}
.ya-group-desc {
 font-size: .88rem;
 opacity: .85;
 line-height: 1.4;
 margin: .35rem 0 .85rem;
 flex: 1;
}
.ya-group-foot {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-top: auto;
 padding-top: .65rem;
 border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
 font-size: .82rem;
}

/* Group Hero View */
.ya-group-hero {
 padding: 1.5rem;
 border-radius: 20px;
 border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
 background: linear-gradient(135deg, hsl(var(--group-hue, 260), 60%, 12%), color-mix(in srgb, currentColor 4%, transparent));
 margin-bottom: 1.5rem;
}
.ya-group-hero-inner {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 flex-wrap: wrap;
 gap: 1.5rem;
 margin-bottom: 1.25rem;
}
.ya-group-hero h1 {
 margin: .25rem 0 .5rem;
 font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.ya-group-stats-line {
 font-size: .92rem;
 opacity: .85;
 margin: .45rem 0 .75rem;
}
.ya-members-list {
 display: flex;
 flex-direction: column;
 gap: .75rem;
 margin-top: 1rem;
}
.ya-member-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: .85rem;
 padding: .65rem;
 border-radius: 12px;
 background: color-mix(in srgb, currentColor 3%, transparent);
}
.ya-member-info {
 display: flex;
 align-items: center;
 gap: .65rem;
 flex: 1;
}
.ya-role-tag {
 font-size: .74rem;
 font-weight: 700;
 text-transform: uppercase;
 padding: .15rem .5rem;
 border-radius: 999px;
}
.ya-role-owner { background: #f59e0b; color: #000; }
.ya-role-admin { background: #8b5cf6; color: #fff; }
.ya-role-member { background: color-mix(in srgb, currentColor 14%, transparent); }

/* MAL Rankings Table */
.ya-top-table {
 width: 100%;
 border-collapse: collapse;
}
.ya-top-table th, .ya-top-table td {
 padding: .85rem .75rem;
}
.ya-rank-cell {
 font-size: 1.35rem;
 color: #f59e0b;
 width: 48px;
 text-align: center;
}
.ya-top-title-flex {
 display: flex;
 gap: .85rem;
 align-items: center;
}
.ya-score-cell strong {
 font-size: 1.1rem;
 color: #facc15;
}
.ya-status-dot {
 display: inline-block;
 width: 8px;
 height: 8px;
 border-radius: 50%;
 margin-right: .3rem;
}
.ya-status-finished { background: #10b981; }
.ya-status-airing { background: #3b82f6; }
.ya-status-upcoming { background: #f59e0b; }

/* Seasonal Grid & Selectors */
.ya-season-selector {
 margin-bottom: 1.25rem;
}
.ya-season-years {
 display: flex;
 gap: .45rem;
 overflow-x: auto;
 padding-bottom: .5rem;
 margin-bottom: .75rem;
 scrollbar-width: none;
}
.ya-season-years::-webkit-scrollbar { display: none; }
.ya-season-years a {
 padding: .35rem .75rem;
 border-radius: 8px;
 border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
 text-decoration: none;
 color: inherit;
 font-size: .84rem;
 font-weight: 600;
 white-space: nowrap;
}
.ya-season-years a.is-active {
 background: #6366f1;
 color: #fff;
 border-color: #6366f1;
}

/* Characters Grid & Card */
.ya-characters-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
 gap: 1rem;
}
.ya-character-card {
 padding: 1rem;
 border-radius: 16px;
 border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
 display: flex;
 flex-direction: column;
}
.ya-char-top {
 display: flex;
 gap: .75rem;
 align-items: center;
 margin-bottom: .6rem;
}
.ya-char-avatar {
 aspect-ratio: 1/1;
 width: 48px;
 height: 48px;
 border-radius: 14px;
 display: grid;
 place-items: center;
 background: radial-gradient(circle at 30% 30%, hsl(var(--char-hue, 210), 80%, 65%), hsl(var(--char-hue, 210), 60%, 25%));
 color: #fff;
 font-weight: 800;
 font-size: 1.25rem;
 flex-shrink: 0;
}
.ya-char-avatar-sm {
 width: 38px;
 height: 38px;
 border-radius: 10px;
 font-size: .95rem;
}
.ya-char-avatar-lg {
 width: 90px;
 height: 90px;
 border-radius: 20px;
 font-size: 2rem;
}
.ya-char-about {
 font-size: .88rem;
 line-height: 1.4;
 opacity: .85;
 flex: 1;
 margin: 0 0 .75rem;
}
.ya-char-foot {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-top: auto;
 padding-top: .5rem;
 border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ya-character-hero-inner {
 display: flex;
 gap: 1.5rem;
 align-items: flex-start;
 flex-wrap: wrap;
}

/* Taste Comparison Screen */
.ya-compare-score-box {
 display: flex;
 align-items: center;
 gap: 2rem;
 flex-wrap: wrap;
 padding: 1rem 0;
}
.ya-compat-circle {
 width: 110px;
 height: 110px;
 border-radius: 50%;
 border: 6px solid #8b5cf6;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
 flex-shrink: 0;
}
.ya-compat-circle span {
 font-size: 1.8rem;
 font-weight: 800;
 line-height: 1;
 color: #a855f7;
}
.ya-compat-circle small {
 font-size: .75rem;
 opacity: .8;
 text-transform: uppercase;
}
.ya-pill-affinity {
 background: linear-gradient(135deg, #8b5cf6, #ec4899);
 color: #fff;
}

/* Episode Navigation & Discussions */
.ya-ep-nav-flex {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: .75rem;
}

/* General micro utilities */
.ya-monogram-xs { width: 28px; height: 28px; font-size: .72rem; }
.ya-monogram-sm { width: 34px; height: 34px; font-size: .84rem; }
.ya-stat-mini-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: .45rem;
 text-align: center;
 margin-top: .75rem;
}
.ya-stat-mini-grid > div {
 padding: .45rem;
 border-radius: 10px;
 background: color-mix(in srgb, currentColor 4%, transparent);
 border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.ya-stat-mini-grid strong { display: block; font-size: 1.05rem; }
.ya-stat-mini-grid small { font-size: .72rem; opacity: .75; }

.ya-title-highlights {
 display: flex;
 flex-wrap: wrap;
 gap: .65rem;
 margin: .6rem 0;
 font-size: .88rem;
 font-weight: 600;
}
.ya-title-highlights > span {
 padding: .3rem .65rem;
 border-radius: 8px;
 background: color-mix(in srgb, currentColor 6%, transparent);
 border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.ya-score-badge {
 background: linear-gradient(135deg, #f59e0b, #eab308) !important;
 color: #000 !important;
 font-weight: 800 !important;
}
.ya-title-actions-row {
 display: flex;
 flex-wrap: wrap;
 gap: .75rem;
 align-items: center;
 margin-top: 1rem;
}
.ya-recs-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
 gap: 1rem;
 margin-top: .85rem;
}
.ya-rec-item {
 display: flex;
 gap: .75rem;
 padding: .75rem;
 border-radius: 12px;
 background: color-mix(in srgb, currentColor 3.5%, transparent);
}
.ya-rec-reason {
 font-size: .84rem;
 line-height: 1.35;
 margin: .3rem 0;
 opacity: .88;
}
.ya-people-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
 gap: 1.25rem;
}
.ya-person-card {
 padding: 1.15rem;
 border-radius: 18px;
 display: flex;
 flex-direction: column;
}
.ya-person-top {
 display: flex;
 gap: .75rem;
 align-items: center;
 margin-bottom: .6rem;
}
.ya-person-top h3 {
 margin: 0;
 font-size: 1.05rem;
}
.ya-person-top h3 a {
 text-decoration: none;
 color: inherit;
}
.ya-person-bio {
 font-size: .88rem;
 line-height: 1.4;
 opacity: .85;
 flex: 1;
 margin: .35rem 0 .75rem;
}
.ya-person-stats {
 display: flex;
 gap: 1.5rem;
 margin-bottom: .85rem;
}
.ya-person-actions {
 display: flex;
 gap: .55rem;
 margin-top: auto;
}
.ya-icon-btn {
 background: transparent;
 border: 0;
 color: inherit;
 cursor: pointer;
 padding: .35rem;
 border-radius: 8px;
 transition: background .12s ease;
 display: inline-flex;
 align-items: center;
 justify-content: center;
}
.ya-icon-btn:hover {
 background: color-mix(in srgb, currentColor 10%, transparent);
}
.ya-icon-btn-danger:hover {
 color: #ef4444;
}
.ya-link-btn {
 background: transparent;
 border: 0;
 color: inherit;
 cursor: pointer;
 padding: 0;
 font-size: inherit;
 font-family: inherit;
 font-weight: 600;
 text-decoration: underline;
}
.ya-link-btn.is-active {
 color: #f97316;
 font-weight: 800;
}
.ya-link-danger {
 color: #ef4444;
}
.ya-btn-plus {
 background: #6366f1;
 color: #fff;
 border-radius: 50%;
 width: 22px;
 height: 22px;
 font-weight: 800;
 margin-left: .35rem;
}
.ya-tag-pill {
 display: inline-block;
 font-size: .76rem;
 font-weight: 700;
 padding: .2rem .55rem;
 border-radius: 999px;
 background: color-mix(in srgb, currentColor 10%, transparent);
}
.button-accent {
 background: linear-gradient(135deg, #6366f1, #a855f7) !important;
 color: #fff !important;
 border: 0 !important;
}
.button-danger {
 background: #ef4444 !important;
 color: #fff !important;
 border: 0 !important;
}
.button-sm {
 padding: .35rem .65rem !important;
 font-size: .82rem !important;
 border-radius: 8px !important;
}

/* Anime Search Page & Header Optimization */
.ya-header-anime {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 padding: .65rem 1.25rem;
 background: #0c0915 !important;
 border-bottom: 1px solid rgba(139, 92, 246, 0.25) !important;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.ya-search-bar {
 flex: 1;
 max-width: 460px;
}
.ya-search-bar input {
 width: 100%;
 border-radius: 999px !important;
 border: 1px solid rgba(139, 92, 246, 0.3) !important;
 background: #130f24 !important;
 color: #fff !important;
 padding: .55rem 1rem !important;
 font-size: .88rem !important;
 transition: border-color .15s ease, box-shadow .15s ease;
}
.ya-search-bar input:focus {
 border-color: #ec4899 !important;
 box-shadow: 0 0 12px rgba(236, 72, 153, 0.35) !important;
 outline: none !important;
}
.ya-header-nav {
 display: flex;
 align-items: center;
 gap: .65rem;
}
.ya-header-nav .header-gallery {
 display: inline-flex;
 align-items: center;
 gap: .4rem;
 font-size: .88rem;
 font-weight: 700;
 text-decoration: none;
 color: inherit;
 padding: .45rem .65rem;
 border-radius: 10px;
 transition: background .12s ease;
}
.ya-header-nav .header-gallery:hover,
.ya-header-nav .header-gallery[aria-current="page"] {
 background: rgba(139, 92, 246, 0.2);
 color: #a78bfa;
}

.ya-search-hero-form {
 padding: 1.25rem;
 border-radius: 18px;
 margin-bottom: 1.5rem;
}
.ya-search-input-wrap {
 display: flex;
 gap: .65rem;
 align-items: center;
}
.ya-search-input-wrap input {
 flex: 1;
 font-size: 1.05rem;
 padding: .75rem 1.15rem;
 border-radius: 14px;
 border: 1px solid rgba(139, 92, 246, 0.35);
 background: #100c1e;
 color: #fff;
}
.ya-search-input-wrap input:focus {
 border-color: #a855f7;
 box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
 outline: none;
}
.ya-search-user-pill {
 display: inline-flex;
 align-items: center;
 gap: .65rem;
 padding: .55rem .85rem;
 border-radius: 14px;
 background: color-mix(in srgb, currentColor 5%, transparent);
 border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}


/* ==========================================================================
   Yamsekai Facebook-Style Anime Profile
   ========================================================================== */

.ya-fb-profile {
  max-width: 1140px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.ya-fb-cover-banner {
  position: relative;
  height: 280px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ya-fb-cover-gradient {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ya-fb-cover-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(13, 9, 30, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ya-fb-header-card {
  background: var(--panel, #120e24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 0 2rem 0.5rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.ya-fb-header-main {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
  margin-top: -65px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ya-fb-avatar-wrap {
  position: relative;
  flex: 0 0 134px;
}

.ya-fb-avatar {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  border: 4px solid var(--panel, #120e24);
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6), 0 4px 15px rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.ya-fb-level-ring {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0817;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  border: 2px solid var(--panel, #120e24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ya-fb-user-details {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.ya-fb-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ya-fb-name-row h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ya-fb-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c084fc;
  padding: 4px 10px;
  border-radius: 14px;
}

.ya-fb-bio {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.45;
}

.ya-fb-stats-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #64748b;
}

.ya-fb-stats-bar strong {
  color: #e2e8f0;
}

.ya-fb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

/* Facebook Profile Tabs */
.ya-fb-nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 0.5rem;
  scrollbar-width: thin;
}

.ya-fb-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ya-fb-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.ya-fb-tab.is-active {
  color: #ffffff;
  border-bottom-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.ya-fb-tab small {
  color: #64748b;
  font-weight: 600;
}

.ya-fb-tab.is-active small {
  color: #a78bfa;
}

/* 2-Column Facebook Grid */
.ya-fb-tab-content {
  margin-top: 1.75rem;
}

.ya-fb-timeline-grid {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.ya-fb-card {
  background: var(--panel, #120e24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ya-fb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ya-fb-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f1f5f9;
}

.ya-fb-intro-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1rem;
}

.ya-fb-intro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ya-fb-intro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.ya-fb-intro-list strong {
  color: #f1f5f9;
}

.ya-fb-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ya-fb-photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1.35;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  display: block;
}

.ya-fb-photo-thumb:hover {
  transform: scale(1.04);
}

.ya-fb-photo-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.ya-fb-chars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ya-fb-char-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.ya-fb-char-row:hover {
  background: rgba(139, 92, 246, 0.12);
}

.ya-fb-char-row strong {
  color: #f8fafc;
  display: block;
  font-size: 0.92rem;
}

.ya-fb-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ya-fb-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease;
}

.ya-fb-friend-card:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.1);
}

.ya-fb-friend-card small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.button-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Wall Composer */
.ya-fb-composer {
  margin-bottom: 1.5rem;
}

/* Watchlist Grid on Tab */
.ya-fb-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.ya-fb-watch-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ya-fb-watch-card .ya-card-media {
  width: 72px;
  height: 100px;
  flex: 0 0 72px;
  border-radius: 8px;
  overflow: hidden;
}

.ya-fb-watch-card .ya-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ya-fb-watch-card h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.ya-fb-watch-card h4 a {
  color: #f1f5f9;
  text-decoration: none;
}

.ya-fb-nakama-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.ya-fb-nakama-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ya-fb-nakama-info {
  flex: 1;
  min-width: 0;
}

.ya-fb-nakama-info strong a {
  color: #f1f5f9;
  text-decoration: none;
  display: block;
}

.ya-fb-nakama-info small {
  color: #64748b;
  font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .ya-fb-timeline-grid {
    grid-template-columns: 1fr;
  }
  .ya-fb-header-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -55px;
  }
  .ya-fb-name-row {
    justify-content: center;
  }
  .ya-fb-stats-bar {
    justify-content: center;
  }
  .ya-fb-header-actions {
    justify-content: center;
    margin-top: 0.5rem;
  }
}


/* ==========================================================================
   Facebook-style Anime Stories Carousel
   ========================================================================== */
.ya-stories-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 1.25rem 0;
  padding: 0.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ya-stories-carousel::-webkit-scrollbar {
  height: 6px;
}
.ya-stories-carousel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}
.ya-stories-track {
  display: flex;
  gap: 12px;
  min-width: 100%;
  padding-bottom: 4px;
}
.ya-story-card {
  position: relative;
  flex: 0 0 115px;
  height: 185px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .22s ease, border-color .22s ease;
}
.ya-story-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
}
.ya-story-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsla(var(--story-hue, 260), 65%, 45%, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ya-story-bg-icon {
  font-size: 42px;
  opacity: 0.25;
  filter: blur(1px);
}
.ya-story-bg-self {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.ya-story-avatar-wrap {
  position: relative;
  z-index: 2;
  align-self: flex-start;
}
.ya-story-card-self .ya-story-avatar-wrap {
  align-self: center;
  margin-top: 24px;
}
.ya-story-avatar-wrap .artist-monogram {
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}
.ya-story-plus {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.ya-story-badge-ring {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #eab308;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.ya-story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ya-story-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  text-transform: uppercase;
}
.ya-story-footer strong {
  font-size: 12px;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   Facebook-style Docked Live Chat System
   ========================================================================== */
.ya-chat-dock-system {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  font-family: inherit;
}
.ya-chat-dock-system > * {
  pointer-events: auto;
}

/* Floating Launcher Button */
.ya-chat-launcher-btn {
  position: relative;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  box-shadow: 0 -4px 20px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), filter .18s ease;
}
.ya-chat-launcher-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.ya-chat-icon {
  flex-shrink: 0;
}
.ya-online-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 0 8px #10b981;
  animation: yaPulseBeacon 2s infinite ease-in-out;
}
@keyframes yaPulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.75; }
}
.ya-chat-unread-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

/* Contacts Drawer Popover */
.ya-chat-drawer {
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 320px;
  height: 460px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(124, 58, 237, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: yaDrawerIn .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes yaDrawerIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-chat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ya-chat-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 14px;
}
.ya-chat-drawer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ya-chat-btn-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.ya-chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.ya-chat-drawer-search {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ya-chat-drawer-search input {
  width: 100%;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #f8fafc;
  font-size: 12px;
  outline: none;
}
.ya-chat-drawer-search input:focus {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.09);
}
.ya-chat-contacts-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.ya-chat-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.ya-chat-contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ya-contact-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.ya-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, hsl(var(--hue, 260), 70%, 55%), hsl(var(--hue, 260), 80%, 40%));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ya-avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.ya-avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.ya-contact-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid #111827;
}
.ya-contact-status-dot.is-online {
  background: #10b981;
}
.ya-contact-meta {
  flex: 1;
  min-width: 0;
}
.ya-contact-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ya-contact-name {
  color: #f1f5f9;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-level-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.ya-contact-time {
  margin-left: auto;
  font-size: 10px;
  color: #64748b;
}
.ya-contact-sub-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.ya-contact-snippet {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.ya-contact-unread-count {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Docked Chat Windows (Left of Launcher) */
.ya-docked-windows-track {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.ya-docked-chat-window {
  width: 320px;
  height: 420px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ya-docked-chat-window.is-minimized {
  height: 44px;
}
.ya-docked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
}
.ya-docked-peer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ya-docked-peer-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ya-docked-peer-name {
  color: #f8fafc;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.ya-docked-peer-status {
  font-size: 10px;
  color: #34d399;
}
.ya-docked-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ya-chat-btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.ya-chat-btn-mini:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Chat Body */
.ya-docked-body {
  flex: 1;
  background: #090d16;
  position: relative;
  overflow: hidden;
}
.ya-docked-messages {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.ya-docked-messages::-webkit-scrollbar {
  width: 5px;
}
.ya-docked-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.ya-chat-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
  padding: 20px 10px;
  gap: 8px;
}
.ya-chat-intro strong {
  color: #f1f5f9;
  font-size: 14px;
}
.ya-chat-intro p {
  color: #94a3b8;
  font-size: 11px;
  margin: 0;
}

/* Chat Bubbles */
.ya-chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: yaBubbleIn .18s ease;
}
@keyframes yaBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ya-chat-bubble-wrap.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.ya-chat-bubble-wrap.is-peer {
  align-self: flex-start;
  align-items: flex-start;
}
.ya-chat-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}
.ya-chat-bubble-wrap.is-mine .ya-chat-bubble {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}
.ya-chat-bubble-wrap.is-peer .ya-chat-bubble {
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ya-chat-msg-time {
  font-size: 9px;
  color: #64748b;
  margin-top: 3px;
  padding: 0 4px;
}
.ya-chat-bubble-wrap.is-sending {
  opacity: 0.65;
}
.ya-chat-bubble-wrap.is-failed .ya-chat-msg-time {
  color: #ef4444;
}

/* Quick Emojis Bar */
.ya-docked-quick-emojis {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ya-docked-quick-emojis button {
  background: transparent;
  border: 0;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: transform .15s ease;
}
.ya-docked-quick-emojis button:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Chat Footer Form */
.ya-docked-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}
.ya-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #f8fafc;
  padding: 7px 12px;
  font-size: 12px;
  outline: none;
}
.ya-chat-input:focus {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.1);
}
.ya-chat-send-btn {
  background: #7c3aed;
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease;
}
.ya-chat-send-btn:hover {
  background: #6d28d9;
  transform: scale(1.08);
}

/* Mobile Responsiveness for Docked Chat */
@media (max-width: 640px) {
  .ya-chat-dock-system {
    right: 12px;
    bottom: 58px;
  }
  .ya-chat-drawer {
    width: calc(100vw - 24px);
    right: 0;
  }
  .ya-docked-chat-window {
    width: calc(100vw - 24px);
    height: 380px;
  }
}


/* ==========================================================================
   Ultra-Premium Additions: Hovercard, Toast, Moods, Bookmarks & Glass Polish
   ========================================================================== */

/* 1. Global Floating Toast Notifications */
.ya-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.ya-toast-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.2);
  animation: yaToastIn .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity .25s ease, transform .25s ease;
}
.ya-toast-pill.is-hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
}
@keyframes yaToastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-toast-icon {
  font-size: 16px;
}

/* 2. Facebook-style User Profile Hovercard */
.ya-user-hovercard {
  position: absolute;
  width: 290px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  z-index: 9990;
  animation: yaHovercardPop .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
@keyframes yaHovercardPop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-hovercard-banner {
  height: 64px;
  background: linear-gradient(135deg, hsl(var(--card-hue, 260), 75%, 45%), hsl(calc(var(--card-hue, 260) + 40), 85%, 25%));
}
.ya-hovercard-body {
  padding: 0 14px 14px 14px;
  margin-top: -30px;
}
.ya-hovercard-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ya-hovercard-top .ya-contact-avatar {
  border: 3px solid #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.ya-hovercard-actions {
  display: flex;
  gap: 6px;
}
.ya-hovercard-actions .button {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
}
.ya-hovercard-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ya-hovercard-name-line strong {
  color: #f8fafc;
  font-size: 15px;
}
.ya-hovercard-bio {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  max-height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-hovercard-stats {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ya-hovercard-stats div {
  display: flex;
  flex-direction: column;
}
.ya-hovercard-stats strong {
  color: #f1f5f9;
  font-size: 14px;
}
.ya-hovercard-stats small {
  color: #64748b;
  font-size: 10px;
}
.ya-hovercard-skeleton {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

/* 3. Composer Feelings & Mood Bar */
.ya-composer-feelings-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}
.ya-feelings-label {
  font-size: 11px;
  font-weight: 800;
  color: #a78bfa;
  margin-right: 4px;
}
.ya-mood-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}
.ya-mood-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* 4. Bookmark & Copy Link Action Buttons */
.ya-bookmark-btn.is-saved {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
}
.ya-bookmark-btn:hover,
.ya-copy-link-btn:hover {
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.15);
}

/* 5. Hover Trigger Pointer */
.ya-user-hover-trigger {
  cursor: pointer;
  transition: color .15s ease, opacity .15s ease;
}
.ya-user-hover-trigger:hover {
  color: #a78bfa !important;
  opacity: 0.95;
}


/* ==========================================================================
   AniList-Style Continue Watching Progress Widget & Simulcast Airing Timer
   ========================================================================== */

/* Card Header Flex */
.ya-card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ya-card-header-flex h3 {
  margin: 0;
  font-size: 14px;
}
.ya-card-sublink {
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none;
}
.ya-card-sublink:hover {
  text-decoration: underline;
}

/* Continue Watching Progress List */
.ya-watching-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ya-watching-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color .18s ease, transform .18s ease;
}
.ya-watching-progress-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(2px);
}
.ya-watching-thumb {
  width: 38px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(var(--thumb-hue, 260), 65%, 45%), hsl(calc(var(--thumb-hue, 260) + 30), 80%, 25%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.ya-watching-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ya-watching-title {
  color: #f1f5f9;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-watching-title:hover {
  color: #a78bfa;
}
.ya-watching-count-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}
.ya-pct-text {
  font-weight: 800;
  color: #38bdf8;
  font-size: 10px;
}
.ya-progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}
.ya-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
  border-radius: 999px;
  transition: width .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.ya-bump-ep-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  transition: transform .16s ease, filter .16s ease;
}
.ya-bump-ep-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Simulcast Airing Timer List */
.ya-airing-timer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ya-airing-timer-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .18s ease;
}
.ya-airing-timer-item a:hover {
  border-color: rgba(56, 189, 248, 0.35);
}
.ya-airing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ya-airing-info strong {
  color: #f1f5f9;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-airing-clock {
  font-family: monospace;
  font-weight: 800;
  font-size: 11px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.ya-airing-clock.is-airing-now {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  animation: yaPulseBeacon 1.5s infinite ease-in-out;
}

/* Docked Stickers Tray */
.ya-docked-stickers-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 8px;
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 120px;
  overflow-y: auto;
}
.ya-docked-stickers-tray button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.ya-docked-stickers-tray button:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
  color: #fff;
  transform: scale(1.05);
}
.ya-open-stickers-btn {
  background: transparent;
  border: 0;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: transform .15s ease;
}
.ya-open-stickers-btn:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Shinobi Master Anime Themes & Dynamic Palettes
   ========================================================================== */

/* 1. Midnight Void (Principal / Default Anime Dark Theme) */
:root,
[data-ya-theme="obsidian"] {
  --bg: #070b14 !important;
  --panel: #0d1527 !important;
  --panel-hover: #152038 !important;
  --field: #0a0f1d !important;
  --soft: #141d33 !important;
  --line: rgba(139, 92, 246, 0.22) !important;
  --ink: #f8fafc !important;
  --muted: #94a3b8 !important;
  --accent: #8b5cf6 !important;
  --accent-light: #a78bfa !important;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  --glow: rgba(139, 92, 246, 0.5) !important;
}

/* 2. Cyber Shinobi (Electric Laser Cyan & High-Tech Slate) */
[data-ya-theme="cyber"] {
  --bg: #040914 !important;
  --panel: #091426 !important;
  --panel-hover: #0e203c !important;
  --field: #060e1c !important;
  --soft: #0d1e38 !important;
  --line: rgba(0, 242, 254, 0.22) !important;
  --ink: #f0fdfa !important;
  --muted: #7dd3fc !important;
  --accent: #00f2fe !important;
  --accent-light: #38bdf8 !important;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #00f2fe 100%) !important;
  --glow: rgba(0, 242, 254, 0.55) !important;
}

/* 3. Akatsuki Blood (Pitch Onyx & Blood Red Neon) */
[data-ya-theme="akatsuki"] {
  --bg: #080305 !important;
  --panel: #14070a !important;
  --panel-hover: #220c11 !important;
  --field: #0e0407 !important;
  --soft: #200a10 !important;
  --line: rgba(255, 30, 66, 0.25) !important;
  --ink: #fff1f2 !important;
  --muted: #fda4af !important;
  --accent: #ff1e42 !important;
  --accent-light: #fb7185 !important;
  --accent-gradient: linear-gradient(135deg, #b91c1c 0%, #ff1e42 100%) !important;
  --glow: rgba(255, 30, 66, 0.55) !important;
}

/* 4. Sakura Blossom (Twilight Plum & Hot Neon Fuchsia) */
[data-ya-theme="sakura"] {
  --bg: #0d0514 !important;
  --panel: #180a24 !important;
  --panel-hover: #28103c !important;
  --field: #12071c !important;
  --soft: #260e38 !important;
  --line: rgba(255, 46, 147, 0.25) !important;
  --ink: #fdf2f8 !important;
  --muted: #f472b6 !important;
  --accent: #ff2e93 !important;
  --accent-light: #f43f5e !important;
  --accent-gradient: linear-gradient(135deg, #db2777 0%, #ff2e93 100%) !important;
  --glow: rgba(255, 46, 147, 0.55) !important;
}

/* 5. Super Saiyan Gold (Imperial Charcoal & 24K Liquid Gold) */
[data-ya-theme="gold"] {
  --bg: #09090c !important;
  --panel: #141419 !important;
  --panel-hover: #22222b !important;
  --field: #0d0d12 !important;
  --soft: #1d1d26 !important;
  --line: rgba(251, 191, 36, 0.22) !important;
  --ink: #fffbeb !important;
  --muted: #fde68a !important;
  --accent: #f59e0b !important;
  --accent-light: #fbbf24 !important;
  --accent-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%) !important;
  --glow: rgba(245, 158, 11, 0.55) !important;
}

/* ==========================================================================
   SHINOBI LIGHT THEMES (Pure Snow, Sky Daylight, Sakura Cream & Spring)
   ========================================================================== */

/* 6. Kamisama Shrine (Pure Snow, Vermilion Torii Crimson & Gold Accent) */
[data-ya-theme="kami"] {
  --bg: #f8fafc !important;
  --panel: #ffffff !important;
  --panel-hover: #f1f5f9 !important;
  --field: #f8fafc !important;
  --soft: #f1f5f9 !important;
  --line: rgba(225, 29, 72, 0.16) !important;
  --ink: #0f172a !important;
  --muted: #64748b !important;
  --accent: #e11d48 !important;
  --accent-light: #f43f5e !important;
  --accent-gradient: linear-gradient(135deg, #e11d48 0%, #fb7185 100%) !important;
  --glow: rgba(225, 29, 72, 0.22) !important;
}

/* 7. Anime Daylight (Clean Sky White, Azure Cerulean & Deep Navy) */
[data-ya-theme="daylight"] {
  --bg: #f0f5fc !important;
  --panel: #ffffff !important;
  --panel-hover: #eaf1fb !important;
  --field: #f4f8fe !important;
  --soft: #e2edfd !important;
  --line: rgba(2, 132, 199, 0.16) !important;
  --ink: #0f172a !important;
  --muted: #475569 !important;
  --accent: #0284c7 !important;
  --accent-light: #38bdf8 !important;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  --glow: rgba(2, 132, 199, 0.22) !important;
}

/* 8. Sakura Daydream (Cream Blossom, Soft Rose & Hot Pink Accent) */
[data-ya-theme="sakura-light"] {
  --bg: #fff1f5 !important;
  --panel: #ffffff !important;
  --panel-hover: #ffe4ec !important;
  --field: #fff5f8 !important;
  --soft: #fce7f3 !important;
  --line: rgba(236, 72, 153, 0.18) !important;
  --ink: #1e111a !important;
  --muted: #9d174d !important;
  --accent: #ec4899 !important;
  --accent-light: #f472b6 !important;
  --accent-gradient: linear-gradient(135deg, #db2777 0%, #f472b6 100%) !important;
  --glow: rgba(236, 72, 153, 0.22) !important;
}

/* 9. Konoha Spring (Fresh Spring Linen & Vibrant Jade Emerald) */
[data-ya-theme="konoha"] {
  --bg: #f0fdf4 !important;
  --panel: #ffffff !important;
  --panel-hover: #dcfce7 !important;
  --field: #f4fbf6 !important;
  --soft: #d1fae5 !important;
  --line: rgba(16, 185, 129, 0.18) !important;
  --ink: #062e1b !important;
  --muted: #047857 !important;
  --accent: #10b981 !important;
  --accent-light: #34d399 !important;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  --glow: rgba(16, 185, 129, 0.22) !important;
}

/* Dynamic Global Theming across Anime UI */
body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}
.ya-header-anime {
  background: color-mix(in srgb, var(--panel) 92%, transparent) !important;
  border-bottom: 1px solid var(--line) !important;
}
.nx-card,
.ya-post-card,
.ya-composer-card,
.ya-sidebar-card,
.ya-search-bar input {
  background: var(--panel) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.button-accent,
.ya-broadcast-btn,
.ya-chat-launcher-btn,
.ya-bump-ep-btn {
  background: var(--accent-gradient) !important;
  box-shadow: 0 4px 18px var(--glow) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.ya-progress-bar-fill {
  background: var(--accent-gradient) !important;
  box-shadow: 0 0 12px var(--glow) !important;
}
.ya-subnav-pill.is-active {
  background: var(--soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ==========================================================================
   Sleek Shinobi Theme Selector Dropdown
   ========================================================================== */
.ya-theme-selector-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}
.ya-theme-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .18s ease;
}
.ya-theme-trigger-btn:hover,
.ya-theme-trigger-btn[aria-expanded="true"] {
  background: var(--soft);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  transform: translateY(-1px);
}
.ya-theme-curr-icon {
  font-size: 1rem;
}
.ya-theme-arrow {
  font-size: .7rem;
  opacity: .7;
  transition: transform .2s ease;
}
.ya-theme-trigger-btn[aria-expanded="true"] .ya-theme-arrow {
  transform: rotate(180deg);
}

.ya-theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 295px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 0 24px var(--glow);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 10000;
  padding: 8px 8px 10px;
  animation: yaThemePop .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.ya-theme-menu[hidden] {
  display: none !important;
}
@keyframes yaThemePop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ya-theme-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
}
.ya-theme-menu-scroll {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  margin-top: 6px;
}
.ya-theme-menu-scroll::-webkit-scrollbar {
  width: 5px;
}
.ya-theme-menu-scroll::-webkit-scrollbar-thumb {
  background: var(--soft);
  border-radius: 4px;
}
.ya-theme-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ya-theme-options-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.ya-theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
  width: 100%;
}
.ya-theme-opt:hover {
  background: var(--soft);
  border-color: var(--line);
  transform: translateX(3px);
}
.ya-theme-opt.is-active {
  background: var(--soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 12px var(--glow);
}
.ya-opt-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.ya-opt-info {
  flex: 1;
  min-width: 0;
}
.ya-opt-info strong {
  display: block;
  font-size: .84rem;
  color: var(--ink);
  line-height: 1.2;
}
.ya-opt-info small {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
}
.ya-opt-palette {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.ya-opt-palette span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ya-opt-check {
  font-size: .85rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
  font-weight: 800;
}
.ya-theme-opt.is-active .ya-opt-check {
  opacity: 1;
}

/* ==========================================================================
   Comprehensive Premium Adaptation for Light Shinobi Themes
   ========================================================================== */
[data-theme="light"] body,
[data-mode="light"] body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}

[data-theme="light"] header.ya-header-anime,
[data-mode="light"] header.ya-header-anime {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(16px) !important;
}

[data-theme="light"] header.ya-header-anime .yf-brand .yf-forge-word > span,
[data-mode="light"] header.ya-header-anime .yf-brand .yf-forge-word > span,
[data-theme="light"] .ya-word-yam,
[data-mode="light"] .ya-word-yam {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] .ya-nav-center,
[data-mode="light"] .ya-nav-center {
  background: rgba(241, 245, 249, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .ya-nav-pill,
[data-mode="light"] .ya-nav-pill {
  color: #334155 !important;
}

[data-theme="light"] .ya-nav-pill:hover,
[data-mode="light"] .ya-nav-pill:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-nav-pill[aria-current="page"],
[data-mode="light"] .ya-nav-pill[aria-current="page"] {
  background: #ffffff !important;
  border-color: color-mix(in srgb, var(--chip-a) 45%, rgba(0, 0, 0, 0.12)) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-search-bar input#q,
[data-mode="light"] .ya-search-bar input#q {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .ya-search-bar input#q::placeholder,
[data-mode="light"] .ya-search-bar input#q::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .ya-search-lens,
[data-mode="light"] .ya-search-lens {
  color: #64748b !important;
}

[data-theme="light"] .ya-theme-trigger-btn,
[data-theme="light"] .ya-sound-toggle-btn,
[data-theme="light"] .ya-nav-action-icon,
[data-theme="light"] .account-trigger,
[data-mode="light"] .ya-theme-trigger-btn,
[data-mode="light"] .ya-sound-toggle-btn,
[data-mode="light"] .ya-nav-action-icon,
[data-mode="light"] .account-trigger {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .account-trigger strong,
[data-mode="light"] .account-trigger strong {
  color: #0f172a !important;
}

[data-theme="light"] .nx-card,
[data-theme="light"] .ya-post-card,
[data-theme="light"] .ya-composer-card,
[data-theme="light"] .ya-sidebar-card,
[data-theme="light"] .ya-watchlist-widget,
[data-mode="light"] .nx-card,
[data-mode="light"] .ya-post-card,
[data-mode="light"] .ya-composer-card,
[data-mode="light"] .ya-sidebar-card,
[data-mode="light"] .ya-watchlist-widget {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-post-body,
[data-mode="light"] .ya-post-body {
  color: #1e293b !important;
}

[data-theme="light"] .ya-post-username strong,
[data-mode="light"] .ya-post-username strong {
  color: #0f172a !important;
}

[data-theme="light"] .ya-composer-card textarea,
[data-mode="light"] .ya-composer-card textarea {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-mood-btn,
[data-mode="light"] .ya-mood-btn {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .ya-action-btn,
[data-mode="light"] .ya-action-btn {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .ya-select-compact,
[data-mode="light"] .ya-select-compact {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-theme-menu,
[data-mode="light"] .ya-theme-menu {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .ya-opt-palette span,
[data-mode="light"] .ya-opt-palette span {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .ya-story-card-self,
[data-mode="light"] .ya-story-card-self {
  background: radial-gradient(circle at 50% 25%, #f1f5f9 0%, #ffffff 80%) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .ya-story-card-self .ya-story-footer strong,
[data-mode="light"] .ya-story-card-self .ya-story-footer strong {
  color: #0f172a !important;
}

[data-theme="light"] .ya-story-self-action,
[data-mode="light"] .ya-story-self-action {
  color: #334155 !important;
  text-shadow: none !important;
}

[data-theme="light"] .ya-account-dropdown,
[data-mode="light"] .ya-account-dropdown {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .ya-acc-header,
[data-theme="light"] .ya-stat-box,
[data-theme="light"] .ya-acc-grid a,
[data-mode="light"] .ya-acc-header,
[data-mode="light"] .ya-stat-box,
[data-mode="light"] .ya-acc-grid a {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="light"] .ya-acc-grid a strong,
[data-theme="light"] .ya-acc-grid a span,
[data-mode="light"] .ya-acc-grid a strong,
[data-mode="light"] .ya-acc-grid a span {
  color: #0f172a !important;
}

@media (max-width: 640px) {
  .ya-theme-curr-name { display: none; }
  .ya-theme-trigger-btn { padding: 5px 8px; }
  .ya-theme-menu { right: -30px; width: 250px; }
}
/* ==========================================================================
   Search Autocomplete Dropdown
   ========================================================================== */
.ya-search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 20px rgba(139, 92, 246, 0.2);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  animation: yaSearchFadeIn .18s ease-out;
}
@keyframes yaSearchFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ya-search-sugg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #f1f5f9;
  transition: background .15s ease, transform .15s ease;
}
.ya-search-sugg-item:hover,
.ya-search-sugg-item.is-selected {
  background: rgba(139, 92, 246, 0.16);
  transform: translateX(4px);
}
.ya-search-sugg-cover {
  width: 38px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.ya-search-sugg-meta {
  flex: 1;
  min-width: 0;
}
.ya-search-sugg-title {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.ya-search-sugg-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: .78rem;
}
.ya-search-score {
  color: #fbbf24;
  font-weight: 700;
}
.ya-search-eps {
  color: rgba(255, 255, 255, 0.65);
}
.ya-search-status {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}
.ya-search-empty {
  padding: 16px;
  text-align: center;
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Composer Media Input & Preview
   ========================================================================== */
.ya-composer-media-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 6px 0 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
}
.ya-media-input-icon {
  font-size: 1.15rem;
}
.ya-media-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: .88rem;
  outline: none;
}
.ya-media-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #f1f5f9;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .75rem;
  transition: background .15s;
}
.ya-media-clear-btn:hover {
  background: rgba(239, 68, 68, 0.5);
}
.ya-media-preview-container {
  margin-top: 8px;
  max-width: 180px;
  max-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.ya-media-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ya-composer-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .18s ease;
}
.ya-composer-tool-btn:hover,
.ya-composer-tool-btn.is-active {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e2e8f0;
}

/* ==========================================================================
   Post Media Display & Lightbox
   ========================================================================== */
.ya-post-media-frame {
  margin: 10px 0 6px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  max-height: 520px;
  display: flex;
  justify-content: center;
}
.ya-post-media-img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform .25s ease;
}
.ya-post-media-img:hover {
  transform: scale(1.015);
}

/* Lightbox Modal */
.ya-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}
.ya-lightbox-modal.is-open {
  display: flex;
}
.ya-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: yaFadeIn .2s ease-out;
}
.ya-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: yaZoomIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes yaZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.ya-lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ya-lightbox-close {
  position: absolute;
  top: -42px;
  right: -8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
}
.ya-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* ==========================================================================
   Header Sound FX Toggle Button
   ========================================================================== */
.ya-sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: .85rem;
  transition: all .18s ease;
}
.ya-sound-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
  transform: scale(1.08);
}

/* ==========================================================================
   Watchlist Segmented Distribution Bar (AniList Style)
   ========================================================================== */
.ya-status-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.ya-dist-segment {
  height: 100%;
  transition: width .35s ease, opacity .2s ease;
  cursor: pointer;
}
.ya-dist-segment:hover {
  opacity: .85;
  filter: brightness(1.2);
}
.ya-status-dist-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}
.ya-legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color, #10b981);
  margin-right: 3px;
  vertical-align: middle;
}

/* ==========================================================================
   Quick Watchlist Button on Post Cards
   ========================================================================== */
.ya-quick-list-btn {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: all .15s ease;
}
.ya-quick-list-btn:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #a78bfa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   AniList-style Quick Watchlist Modal
   ========================================================================== */
.ya-quick-list-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ya-quick-list-modal.is-open {
  display: flex;
}
.ya-quick-list-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  animation: yaZoomIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.ya-quick-list-loading,
.ya-ql-error {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: .95rem;
}
.ya-ql-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, hsl(var(--ql-hue, 240), 60%, 18%) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ya-ql-cover {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  background: hsl(var(--ql-hue, 240), 65%, 28%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.ya-ql-meta {
  flex: 1;
  min-width: 0;
}
.ya-ql-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ya-ql-title-row h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-ql-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: background .15s;
}
.ya-ql-close:hover {
  background: rgba(239, 68, 68, 0.7);
  color: #fff;
}
.ya-ql-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: .78rem;
  color: rgba(255, 255, 255, 0.65);
}
.ya-ql-score-badge {
  color: #fbbf24;
  font-weight: 700;
}
.ya-ql-status-pill {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}
.ya-ql-form {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ya-ql-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ya-ql-label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ya-ql-label-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ya-ql-score-hint {
  font-size: .82rem;
  font-weight: 600;
  color: #fbbf24;
}
.ya-ql-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
}
.ya-ql-st-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
}
.ya-ql-st-btn input {
  display: none;
}
.ya-ql-st-btn:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}
.ya-ql-st-btn.is-active {
  background: rgba(139, 92, 246, 0.35);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
.ya-ql-star-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ya-ql-star {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform .12s ease, color .12s ease;
}
.ya-ql-star:hover {
  transform: scale(1.3);
}
.ya-ql-star.is-filled {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}
.ya-ql-prog-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ya-stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.ya-stepper-btn:hover {
  background: #8b5cf6;
  border-color: #a78bfa;
}
.ya-stepper-input {
  width: 70px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px;
  outline: none;
}
.ya-stepper-total {
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.ya-ql-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ya-ql-full-link {
  font-size: .84rem;
  color: #a78bfa;
  text-decoration: none;
  transition: color .15s;
}
.ya-ql-full-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.ya-ql-save-btn {
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 10px;
}
/* ==========================================================================
   Complete Navigation Redesign & High-Definition Anime Covers (2026)
   ========================================================================== */

/* 1. Header Bar Container */
.ya-header-anime {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  padding: 0 1.5rem !important;
  height: 62px !important;
  background: rgba(7, 11, 20, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
}

/* 2. Left Zone: Brand Logo & Glass Search Bar */
.ya-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.ya-nav-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}
.ya-brand-icon {
  width: 38px !important;
  height: 38px !important;
  display: block !important;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ya-nav-brand:hover .ya-brand-icon {
  transform: scale(1.08) rotate(-4deg);
}
.ya-brand-word {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: baseline !important;
}

/* Brand Legibility Fix: YAM is ALWAYS bright white, KAGE glows in active neon */
header.ya-header-anime .yf-brand .yf-forge-word > span,
header.ya-header-anime .yf-brand .yf-forge-word > span.ya-word-yam,
.ya-word-yam,
[data-ya-theme] header .yf-brand .yf-forge-word > span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35) !important;
}
header.ya-header-anime .yf-brand .yf-forge-word > b,
header.ya-header-anime .yf-brand .yf-forge-word > b.ya-word-kage,
.ya-word-kage,
[data-ya-theme] header .yf-brand .yf-forge-word > b {
  font-weight: 900 !important;
  background: var(--accent-gradient, linear-gradient(135deg, #a78bfa, #c084fc, #38bdf8)) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-left: 2px !important;
  filter: drop-shadow(0 0 10px var(--glow, rgba(139, 92, 246, 0.5))) !important;
}

/* Sleek Pill Search Bar */
.ya-search-bar {
  position: relative !important;
  width: 260px !important;
  max-width: 320px !important;
  transition: width .22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.ya-search-bar:focus-within {
  width: 320px !important;
}
.ya-search-lens {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.ya-search-bar input#q {
  width: 100% !important;
  height: 38px !important;
  padding: 0 14px 0 36px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: .86rem !important;
  backdrop-filter: blur(8px) !important;
  transition: all .2s ease !important;
}
.ya-search-bar input#q:focus {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: var(--accent, #8b5cf6) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #8b5cf6) 25%, transparent) !important;
  outline: none !important;
}
.ya-search-bar input#q::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* 3. Center Navigation Links - GRAND ANIME COMMAND DOCK */
.ya-nav-center {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 auto !important;
  padding: 5px 8px !important;
  background: rgba(12, 17, 30, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.6) !important;
}

.ya-nav-pill {
  --chip-a: #7c5cff;
  --chip-b: #b26bff;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 42px !important;
  padding: 0 16px 0 6px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  transition: all .16s ease !important;
}

.ya-nav-pill .ya-nav-chip {
  display: grid !important;
  place-items: center !important;
  flex: none !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--chip-a), var(--chip-b)) !important;
  box-shadow: 0 2px 9px -2px var(--chip-a) !important;
  border: none !important;
  transform: none !important;
  transition: transform .15s ease !important;
}

.ya-nav-pill .ya-nav-chip svg,
.ya-nav-pill .ya-nav-chip .yf-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
  color: #ffffff !important;
  fill: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ya-nav-pill .ya-nav-label {
  display: inline-block !important;
  line-height: normal !important;
  padding-bottom: 2px !important;
  color: inherit !important;
  font-weight: 750 !important;
  overflow: visible !important;
}

.ya-nav-pill::after {
  display: none !important;
}

.ya-nav-pill:hover {
  transform: none !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.ya-nav-pill:hover .ya-nav-chip {
  transform: scale(1.06) !important;
}

.ya-nav-pill[aria-current="page"] {
  color: #ffffff !important;
  border-color: color-mix(in srgb, var(--chip-a) 60%, rgba(255, 255, 255, 0.2)) !important;
  background: color-mix(in srgb, var(--chip-a) 25%, rgba(255, 255, 255, 0.07)) !important;
  box-shadow: 0 2px 14px -3px var(--chip-a) !important;
}

.ya-nav-pill[aria-current="page"] .ya-nav-chip {
  box-shadow: 0 0 12px var(--chip-a) !important;
}

/* Distinct Vibrant Colors Per Nav Item */
.ya-pill-feed {
  --chip-a: #8b5cf6;
  --chip-b: #b26bff;
}
.ya-pill-catalog {
  --chip-a: #0ea5e9;
  --chip-b: #06b6d4;
}
.ya-pill-rankings {
  --chip-a: #f97316;
  --chip-b: #eab308;
}
.ya-pill-simulcasts {
  --chip-a: #a855f7;
  --chip-b: #ec4899;
}
.ya-pill-guilds {
  --chip-a: #10b981;
  --chip-b: #14b8a6;
}
.ya-pill-nakama {
  --chip-a: #f59e0b;
  --chip-b: #fbbf24;
}
.ya-pill-watchlist {
  --chip-a: #f43f5e;
  --chip-b: #ec4899;
}

/* 4. Right Actions Zone */
.ya-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.ya-nav-action-icon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: all .16s ease !important;
}
.ya-nav-action-icon:hover,
.ya-nav-action-icon[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: var(--accent, #8b5cf6) !important;
  transform: translateY(-1px) !important;
}
.ya-nav-broadcast-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 3px !important;
  background: var(--accent, #8b5cf6) !important;
  color: #fff !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease !important;
}
.ya-nav-broadcast-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #7c3aed !important;
}
.ya-nav-broadcast-btn svg,
.ya-nav-broadcast-btn .yf-icon {
  width: 15px !important;
  height: 15px !important;
  color: #fff !important;
}
.ya-nav-auth-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background .15s ease !important;
}
.ya-nav-auth-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.ya-nav-join-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  background: var(--accent, #8b5cf6) !important;
  color: #fff !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease !important;
}
.ya-nav-join-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #7c3aed !important;
}
.ya-nav-join-btn svg,
.ya-nav-join-btn .yf-icon {
  width: 15px !important;
  height: 15px !important;
  color: #fff !important;
}

/* =====================================================================
   FLAT DESIGN SYSTEM OVERHAUL - CLEAN, MINIMAL, MODERN
   ===================================================================== */

/* Flat Header & Action Icons */
/* Deep Anime Atmosphere across the whole site */
html, body {
  background-color: #060911 !important;
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -12%, rgba(139, 92, 246, 0.22) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 80%),
    radial-gradient(ellipse 50% 50% at 90% 65%, rgba(236, 72, 153, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #070a14 0%, #05070d 100%) !important;
  background-attachment: fixed !important;
  color: #e2e8f0 !important;
}

/* Grand Anime Header & Action Icons with Squarish Corners */
header.ya-header-anime {
  height: 74px !important;
  padding: 0 1.75rem !important;
  background: #080c16 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}
.ya-nav-action-icon,
.ya-theme-trigger-btn,
.ya-sound-toggle-btn {
  border-radius: 4px !important;
  box-shadow: none !important;
  transform: none !important;
  height: 44px !important;
  min-width: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.ya-nav-action-icon:hover,
.ya-theme-trigger-btn:hover,
.ya-sound-toggle-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.ya-search-bar input#q {
  border-radius: 4px !important;
  box-shadow: none !important;
  height: 44px !important;
  width: 290px !important;
  font-size: .92rem !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.ya-search-bar input#q:focus {
  box-shadow: none !important;
  border-color: var(--accent, #8b5cf6) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}
.ya-nav-broadcast-btn {
  border-radius: 4px !important;
  height: 44px !important;
  padding: 0 20px !important;
  font-size: .94rem !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transform: none !important;
  background: var(--accent, #8b5cf6) !important;
}
.ya-nav-broadcast-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #7c3aed !important;
}
.account-trigger {
  height: 44px !important;
  border-radius: 4px !important;
  padding: 0 12px !important;
}
.account-trigger-avatar {
  border-radius: 3px !important;
}

/* Flat Hype Story Cards */
.ya-story-card {
  position: relative !important;
  overflow: hidden !important;
  background: #0b101c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  transform: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
.ya-story-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
.ya-story-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
  transition: transform .25s ease !important;
  z-index: 1 !important;
}
.ya-story-card:hover .ya-story-poster {
  transform: scale(1.04) !important;
}
.ya-story-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.1) 0%, rgba(7, 11, 20, 0.4) 50%, rgba(7, 11, 20, 0.95) 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
.ya-story-badge-ring {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
  color: #fef08a !important;
  box-shadow: none !important;
}

/* Redesigned Shinobi Hype Creator Card */
.ya-story-card-self {
  position: relative !important;
  flex: 0 0 115px !important;
  height: 185px !important;
  background: radial-gradient(circle at 50% 25%, #1e1948 0%, #0a0e1c 80%) !important;
  border: 1.5px dashed rgba(139, 92, 246, 0.6) !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  z-index: 2 !important;
}
.ya-story-card-self .ya-story-bg,
.ya-story-card-self .ya-story-bg-self {
  display: none !important;
}
.ya-story-card-self:hover {
  border-color: #a855f7 !important;
  border-style: solid !important;
  background: radial-gradient(circle at 50% 25%, #292062 0%, #0d1326 80%) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45) !important;
  transform: translateY(-2px) !important;
}
.ya-story-card-self .ya-story-badge-wrap {
  position: relative !important;
  z-index: 5 !important;
  align-self: flex-start !important;
}
.ya-story-self-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  background: rgba(6, 182, 212, 0.22) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3) !important;
}
.ya-story-self-center {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: auto 0 !important;
  text-align: center !important;
}
.ya-story-self-icon-box {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.65) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.ya-story-card-self:hover .ya-story-self-icon-box {
  transform: scale(1.1) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.9) !important;
}
.ya-story-self-plus {
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin-top: -2px !important;
}
.ya-story-self-action {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}
.ya-story-card-self .ya-story-footer {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.ya-story-card-self .ya-story-footer strong {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}
.ya-tag-accent {
  color: #a78bfa !important;
}

/* Anime Shinobi Feed Cards & Widgets */
.ya-composer-card,
.ya-post-card,
.ya-sidebar-card,
.ya-watchlist-widget,
.ya-continue-watching-widget,
.ya-simulcasts-widget,
.ya-guilds-widget {
  background: #090e1a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.ya-composer-card,
.ya-post-card {
  border-left: 3px solid var(--accent, #8b5cf6) !important;
}

/* Flat Composer */
.ya-composer-type-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  font-size: .84rem !important;
  white-space: nowrap !important;
}
.ya-ep-tag-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: .84rem !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}
.ya-composer-top textarea {
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  font-size: .92rem !important;
}
.ya-composer-top textarea:focus {
  outline: none !important;
  border-color: var(--accent, #8b5cf6) !important;
  box-shadow: none !important;
}
.ya-select-compact,
.ya-input-num {
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.ya-mood-btn {
  border-radius: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
}
.ya-mood-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.ya-composer-tool-btn {
  border-radius: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Flat Buttons with Crisp Squarish Corners across Yamsekai */
.button-accent,
.ya-broadcast-btn,
.ya-chat-launcher-btn,
.ya-bump-ep-btn {
  border-radius: 3px !important;
  background: var(--accent, #8b5cf6) !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  transition: background-color .15s ease !important;
}
.button-accent:hover,
.ya-broadcast-btn:hover,
.ya-chat-launcher-btn:hover,
.ya-bump-ep-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #7c3aed !important;
}

/* Flat Post Actions */
.ya-action-btn {
  border-radius: 3px !important;
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid transparent !important;
}
.ya-action-btn:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Flat Tabs & Filters */
.ya-tab-pill,
.ya-feed-tab,
.ya-filter-pills a,
.ya-filter-pills button {
  border-radius: 3px !important;
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.ya-tab-pill.is-active,
.ya-feed-tab.is-active,
.ya-filter-pills .is-active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent, #8b5cf6) !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* Flat Floating Chat Launcher */
.ya-chat-dock-launcher {
  box-shadow: none !important;
}
.ya-chat-launcher-btn {
  border-radius: 3px !important;
  box-shadow: none !important;
}

/* Universal Squarish Rules for buttons & interactive controls */
button,
.button,
.button-accent,
input[type="button"],
input[type="submit"],
.ya-nav-broadcast-btn,
.ya-nav-join-btn,
.ya-nav-action-icon,
.ya-theme-trigger-btn,
.ya-sound-toggle-btn,
.account-trigger,
.account-trigger-avatar,
.ya-tab-pill,
.ya-feed-tab,
.ya-filter-pills a,
.ya-filter-pills button,
.ya-mood-btn,
.ya-action-btn,
.ya-composer-tool-btn,
.ya-bump-ep-btn,
.ya-chat-launcher-btn,
.ya-select-compact,
.ya-input-num {
  border-radius: 4px !important;
}

/* Protected Grand Anime Dock styling (never squashed by universal rules) */
.ya-nav-pill {
  border-radius: 8px !important;
  overflow: visible !important;
}
.ya-nav-pill .ya-nav-chip {
  border-radius: 7px !important;
}
.ya-nav-pill .ya-nav-label {
  line-height: normal !important;
  padding-bottom: 2px !important;
  overflow: visible !important;
}

/* Universal .ya-cover image rendering for anime catalog & lists */
.ya-cover-has-img {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.ya-cover-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: inherit !important;
  transition: transform .2s ease !important;
}
.ya-card:hover .ya-cover-img,
.ya-card-media:hover .ya-cover-img,
.ya-cover:hover .ya-cover-img {
  transform: scale(1.03) !important;
}
.ya-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: inherit !important;
}

/* Hide duplicate subnav if accidentally present */
.ya-subnav {
  display: none !important;
}

/* ==========================================================================
   ANIME SHINOBI V2 - PREMIUM FLAT REDESIGN & SQUARISH CORNERS
   ========================================================================== */

/* Universal Squarish Anime Corners on all interactive elements */
button,
.button,
.ya-nav-pill,
.ya-nav-chip,
.ya-theme-trigger-btn,
.ya-sound-toggle-btn,
.ya-radio-btn,
.ya-action-btn,
.ya-mood-btn,
.ya-nav-broadcast-btn,
.account-trigger,
.ya-composer-card,
.ya-post-card,
.ya-sidebar-card,
.ya-story-card,
.ya-story-card-self,
.ya-select-compact,
.ya-input-num,
.ya-user-guild-pill,
.ya-modal-box,
.ya-theme-menu {
  border-radius: 4px !important;
}

/* 1. Flat High-Contrast Anime Header & Navigation Dock */
.ya-nav-center {
  background: rgba(8, 12, 22, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding: 4px 6px !important;
  gap: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .ya-nav-center,
[data-mode="light"] .ya-nav-center {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.ya-nav-pill {
  height: 38px !important;
  padding: 0 12px 0 8px !important;
  gap: 8px !important;
  border-radius: 4px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  color: rgba(255, 255, 255, 0.8) !important;
  overflow: visible !important;
  box-shadow: none !important;
}

[data-theme="light"] .ya-nav-pill,
[data-mode="light"] .ya-nav-pill {
  color: #334155 !important;
}

.ya-nav-pill .ya-nav-chip {
  width: 24px !important;
  height: 24px !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  background: var(--chip-a, #8b5cf6) !important;
}

.ya-nav-pill .ya-nav-chip svg,
.ya-nav-pill .ya-nav-chip .yf-icon {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2.4 !important;
}

.ya-nav-pill .ya-nav-label {
  display: inline-block !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

.ya-nav-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="light"] .ya-nav-pill:hover,
[data-mode="light"] .ya-nav-pill:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

.ya-nav-pill[aria-current="page"] {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: var(--chip-a, #8b5cf6) !important;
  color: #ffffff !important;
}

[data-theme="light"] .ya-nav-pill[aria-current="page"],
[data-mode="light"] .ya-nav-pill[aria-current="page"] {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: var(--chip-a, #8b5cf6) !important;
  color: #0f172a !important;
}

/* 2. Sleek Flat Anime Lo-Fi Radio Player */
.ya-radio-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  padding: 0 11px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  color: #e2e8f0 !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
}

.ya-radio-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #8b5cf6 !important;
  color: #fff !important;
}

.ya-radio-btn.is-playing {
  background: rgba(139, 92, 246, 0.22) !important;
  border-color: #8b5cf6 !important;
  color: #c4b5fd !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
}

.ya-radio-bars {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 2px !important;
  height: 14px !important;
  width: 14px !important;
}

.ya-radio-bars span {
  display: block !important;
  width: 3px !important;
  height: 4px !important;
  background: currentColor !important;
  border-radius: 1px !important;
  transition: height .15s ease !important;
}

.ya-radio-btn.is-playing .ya-radio-bars span:nth-child(1) {
  animation: yaEqBar 0.7s infinite alternate ease-in-out !important;
}
.ya-radio-btn.is-playing .ya-radio-bars span:nth-child(2) {
  animation: yaEqBar 0.9s infinite alternate ease-in-out 0.2s !important;
}
.ya-radio-btn.is-playing .ya-radio-bars span:nth-child(3) {
  animation: yaEqBar 0.6s infinite alternate ease-in-out 0.4s !important;
}

@keyframes yaEqBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

[data-theme="light"] .ya-radio-btn,
[data-mode="light"] .ya-radio-btn {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #334155 !important;
}

/* 3. Quick Mode Flip Button in Theme Menu */
.ya-quick-mode-flip-btn {
  padding: 3px 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: .75rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
}

.ya-quick-mode-flip-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--accent, #8b5cf6) !important;
}

[data-theme="light"] .ya-quick-mode-flip-btn,
[data-mode="light"] .ya-quick-mode-flip-btn {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

/* 4. Redesigned Flat Add Hype Story Card */
.ya-story-card-self {
  background: #090e1a !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 8px !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.ya-story-card-self:hover {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35) !important;
  transform: translateY(-2px) !important;
}

.ya-story-self-icon-box {
  width: 40px !important;
  height: 40px !important;
  border-radius: 4px !important;
  background: #8b5cf6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6) !important;
  margin: 10px auto 4px !important;
}

.ya-story-self-plus {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.ya-story-card-self .ya-story-footer strong {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

[data-theme="light"] .ya-story-card-self,
[data-mode="light"] .ya-story-card-self {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
}

[data-theme="light"] .ya-story-card-self .ya-story-footer strong,
[data-mode="light"] .ya-story-card-self .ya-story-footer strong {
  color: #0f172a !important;
}

/* 5. Flat Composer & Episode Input Fix */
.ya-composer-type-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  padding: 6px 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.ya-composer-type-select-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ya-composer-type-label {
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: var(--muted, #94a3b8) !important;
}

.ya-ep-tag-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: .82rem !important;
  color: var(--muted, #94a3b8) !important;
}

.ya-ep-tag-label .ya-input-num {
  width: 58px !important;
  height: 28px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center !important;
}

/* 6. User Guild Badges in Post Cards */
.ya-user-guild-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 1px 7px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 4px !important;
  color: #34d399 !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  transition: all .15s ease !important;
}

.ya-user-guild-pill:hover {
  background: rgba(16, 185, 129, 0.24) !important;
  border-color: #34d399 !important;
  color: #fff !important;
}

/* 7. MAL / AniList Import Modal */
.ya-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.ya-modal-backdrop[hidden] {
  display: none !important;
}

.ya-modal-box {
  width: 100% !important;
  max-width: 560px !important;
  background: #090e1a !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 4px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
  padding: 24px !important;
}

[data-theme="light"] .ya-modal-box,
[data-mode="light"] .ya-modal-box {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.ya-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 10px !important;
}

.ya-modal-header h3 {
  margin: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

[data-theme="light"] .ya-modal-header h3,
[data-mode="light"] .ya-modal-header h3 {
  color: #0f172a !important;
}

.ya-modal-close {
  background: transparent !important;
  border: none !important;
  color: var(--muted, #94a3b8) !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

.ya-modal-desc {
  font-size: .88rem !important;
  color: var(--muted, #94a3b8) !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
}

.ya-field-group {
  margin-bottom: 14px !important;
}

.ya-field-group label {
  display: block !important;
  font-size: .84rem !important;
  margin-bottom: 6px !important;
}

.ya-file-input {
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.ya-field-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 14px 0 !important;
}

.ya-field-divider::before,
.ya-field-divider::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ya-field-divider span {
  padding: 0 10px !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  color: var(--muted, #94a3b8) !important;
}

.ya-code-textarea {
  width: 100% !important;
  border-radius: 4px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-family: monospace !important;
  font-size: .82rem !important;
  padding: 10px !important;
  resize: vertical !important;
}

.ya-modal-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 18px !important;
}



/* ==========================================================================
   YAMSEKAI ANIME STUDIO: 3x3 GRID, TIER LIST MAKER, SIMULCAST ROOMS & MOBILE
   ========================================================================== */
.ya-catalog-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ya-simulcast-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: .74rem;
  font-weight: 800;
}
.ya-card-watching-alert {
  border-color: rgba(139, 92, 246, 0.55) !important;
}
.ya-schedule-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* 3x3 Anime Grid Builder */
.ya-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.ya-studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ya-studio-title-input {
  flex: 1 1 220px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--line, rgba(255,255,255,0.14));
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-weight: 700;
}
.ya-studio-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ya-3x3-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}
.ya-3x3-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ya-3x3-slot.is-selected {
  border-color: var(--accent, #8b5cf6);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}
.ya-3x3-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ya-3x3-slot-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ya-3x3-slot-label.is-solo {
  position: static;
  background: transparent;
  white-space: normal;
}
.ya-3x3-slot-empty {
  color: var(--muted, #94a3b8);
  font-weight: 700;
  font-size: .85rem;
}
.ya-3x3-clear {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}
.ya-3x3-slot:hover .ya-3x3-clear { opacity: 1; }
.ya-studio-hint {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted, #94a3b8);
  text-align: center;
}
.ya-studio-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid var(--line, rgba(255,255,255,0.14));
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}
.ya-studio-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 540px;
  overflow-y: auto;
}
.ya-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  text-align: left;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
}
.ya-pick-item:hover {
  border-color: var(--accent, #8b5cf6);
  background: rgba(139, 92, 246, 0.12);
}
.ya-pick-item img, .ya-pick-ph {
  width: 36px; height: 48px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
  display: grid;
  place-items: center;
}
.ya-pick-item span { display: flex; flex-direction: column; min-width: 0; }
.ya-pick-item strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ya-pick-item small { font-size: .74rem; color: var(--muted, #94a3b8); }

/* Profile 3x3 Mini Showcase */
.ya-profile-3x3-card { padding: 14px !important; }
.ya-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ya-card-head-row h3 { margin: 0; font-size: .95rem; }
.ya-mini-link { font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--accent, #8b5cf6); }
.ya-3x3-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ya-3x3-mini-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}
.ya-3x3-mini-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ya-3x3-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2px 4px;
  font-size: .64rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tier List Maker */
.ya-tierlist-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ya-tier-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ya-tier-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 86px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 14, 26, 0.9);
}
.ya-tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #fff;
  text-align: center;
}
.ya-tier-badge strong { font-size: 1.5rem; line-height: 1; }
.ya-tier-badge small { font-size: .68rem; font-weight: 700; opacity: .95; margin-top: 3px; }
.ya-tier-dropzone {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  align-items: center;
  min-height: 84px;
}
.ya-tier-dropzone.is-over {
  background: rgba(139, 92, 246, 0.16);
}
.ya-tier-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 0;
}
.ya-tier-chip {
  width: 78px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
}
.ya-tier-chip img {
  width: 78px;
  height: 92px;
  object-fit: cover;
  display: block;
}
.ya-tier-chip span {
  padding: 3px 4px;
  font-size: .66rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.ya-search-sm { max-width: 220px; margin-bottom: 0; }

/* Mobile & PWA Responsive Polish */
@media (max-width: 860px) {
  .ya-studio-layout { grid-template-columns: 1fr; }
  .ya-tier-row { grid-template-columns: 72px 1fr; }
  .ya-tier-badge small { display: none; }
  .ya-radio-label { display: none; }
  .ya-composer-type-row { flex-wrap: wrap; }
}


/* ==========================================================================
   YAMSEKAI ANIME ARCADE: ROULETTE, TRIVIA, ARENA, WRAPPED, POLLS & SIMILAR
   ========================================================================== */

/* Feed Polls */
.ya-composer-poll-row {
  margin-top: 8px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.ya-poll-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ya-poll-builder-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.ya-poll-builder-inputs input {
  padding: 7px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: .84rem;
}
.ya-poll-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ya-poll-head {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  margin-bottom: 8px;
}
.ya-poll-options { display: flex; flex-direction: column; gap: 6px; }
.ya-poll-opt-form { margin: 0; }
.ya-poll-opt-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.ya-poll-opt-btn.is-voted {
  border-color: var(--accent, #8b5cf6);
}
.ya-poll-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(139, 92, 246, 0.28);
  transition: width .35s ease;
  pointer-events: none;
}
.ya-poll-opt-text, .ya-poll-opt-pct { position: relative; z-index: 1; }
.ya-poll-opt-pct { font-size: .8rem; opacity: .88; }

/* Anime Roulette */
.ya-roulette-card { padding: 20px !important; }
.ya-roulette-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.ya-spin-btn { font-weight: 800 !important; padding: 9px 18px !important; }
.ya-roulette-stage {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}
.ya-roulette-poster-wrap {
  width: 180px;
  height: 256px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: grid;
  place-items: center;
}
.ya-roulette-poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ya-roulette-ph { font-size: 56px; }
.ya-roulette-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent, #a78bfa);
  margin-bottom: 6px;
}
.ya-roulette-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Otaku Trivia */
.ya-trivia-card { padding: 20px !important; }
.ya-trivia-topbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .9rem;
}
.ya-trivia-stage {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.ya-trivia-poster-box {
  width: 200px;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ya-trivia-poster-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .35s ease;
}
.ya-trivia-poster-box img.is-blurred { filter: blur(11px) scale(1.06); }
.ya-trivia-opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.ya-trivia-opt-btn {
  padding: 11px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.ya-trivia-opt-btn:hover { border-color: var(--accent, #8b5cf6); background: rgba(139, 92, 246, 0.14); }
.ya-trivia-opt-btn.is-correct { background: rgba(16, 185, 129, 0.25) !important; border-color: #10b981 !important; color: #fff !important; }
.ya-trivia-opt-btn.is-wrong { background: rgba(239, 68, 68, 0.25) !important; border-color: #ef4444 !important; color: #fff !important; }
.ya-trivia-feedback { font-weight: 800; min-height: 22px; margin: 8px 0 12px; }

/* 1v1 Battle Arena */
.ya-arena-stage {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.ya-arena-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px !important;
}
.ya-arena-fighter img {
  width: 190px;
  height: 266px;
  object-fit: cover;
  border-radius: 4px;
}
.ya-arena-vs {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 4px;
  background: linear-gradient(135deg, #ef4444, #8b5cf6);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}
.ya-champs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ya-champ-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
}
.ya-champ-row:hover { border-color: var(--accent, #8b5cf6); }
.ya-champ-rank { font-weight: 900; width: 28px; color: var(--accent, #a78bfa); }
.ya-champ-row img { width: 34px; height: 48px; object-fit: cover; border-radius: 3px; }
.ya-champ-stat { margin-left: auto; font-size: .84rem; color: var(--muted, #94a3b8); }
.ya-champ-stat b { color: #34d399; }

/* Otaku Wrapped / Shinobi Card */
.ya-wrapped-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ya-shinobi-id-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #090e1a, #1a1033) !important;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  color: #fff !important;
  padding: 22px !important;
}
.ya-id-top, .ya-id-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ya-id-brand { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: #a78bfa; }
.ya-id-rank { font-size: .82rem; font-weight: 800; color: #38bdf8; }
.ya-id-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.ya-id-kpis div { padding: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.ya-id-kpis strong { display: block; font-size: 1.5rem; }
.ya-id-kpis small { font-size: .74rem; color: #94a3b8; text-transform: uppercase; }
.ya-bar-chart { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.ya-bar-row { display: grid; grid-template-columns: 44px 1fr 32px; gap: 8px; align-items: center; font-size: .82rem; }
.ya-bar-lbl-wide { width: 100px; }
.ya-bar-row:has(.ya-bar-lbl-wide) { grid-template-columns: 100px 1fr 32px; }
.ya-bar-track { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ya-bar-fill { height: 100%; background: var(--accent, #8b5cf6); border-radius: 3px; }
.ya-bar-fill.is-cyan { background: #06b6d4; }
.ya-bar-val { text-align: right; font-weight: 700; color: var(--muted, #94a3b8); }

/* Similar Anime Grid */
.ya-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.ya-similar-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.ya-similar-card strong { font-size: .84rem; line-height: 1.25; }
.ya-similar-card small { font-size: .72rem; color: var(--muted, #94a3b8); }

@media (max-width: 780px) {
  .ya-roulette-stage, .ya-trivia-stage, .ya-arena-stage, .ya-wrapped-grid { grid-template-columns: 1fr; }
  .ya-roulette-poster-wrap, .ya-trivia-poster-box { margin: 0 auto; }
  .ya-trivia-opts, .ya-poll-builder-inputs { grid-template-columns: 1fr; }
  .ya-id-kpis { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   YAMSEKAI ANIME NEXUS: GACHA, BUDDIES, STACKS, MUSIC, BINGO & LOGIN STREAK
   ========================================================================== */

/* Gacha & Rarity System */
.ya-gacha-banner, .ya-streak-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px !important;
  margin-bottom: 16px;
}
.ya-gacha-spotlight {
  padding: 18px !important;
  margin-bottom: 16px;
  border-width: 2px !important;
}
.ya-spotlight-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.ya-spotlight-inner img {
  width: 96px;
  height: 132px;
  object-fit: cover;
  border-radius: 4px;
}
.ya-gacha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.ya-gacha-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 26, 0.9);
  display: flex;
  flex-direction: column;
}
.ya-gacha-img-wrap {
  position: relative;
  height: 195px;
  background: #0f172a;
}
.ya-gacha-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ya-gacha-img-wrap .ya-rarity-pill { position: absolute; top: 6px; left: 6px; }
.ya-gacha-card-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ya-gacha-card-info strong { font-size: .84rem; }
.ya-gacha-card-info small { font-size: .74rem; color: var(--muted, #94a3b8); }
.ya-partner-equipped { font-size: .74rem; font-weight: 800; color: #fbbf24; }
.ya-rarity-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #334155;
  color: #fff;
}
.ya-rarity-common { border-color: rgba(148, 163, 184, 0.35) !important; }
.ya-rarity-pill.ya-rarity-common { background: #475569; }
.ya-rarity-rare { border-color: rgba(56, 189, 248, 0.55) !important; }
.ya-rarity-pill.ya-rarity-rare { background: #0284c7; }
.ya-rarity-epic { border-color: rgba(168, 85, 247, 0.65) !important; }
.ya-rarity-pill.ya-rarity-epic { background: #7c3aed; }
.ya-rarity-legendary { border-color: rgba(251, 191, 36, 0.75) !important; }
.ya-rarity-pill.ya-rarity-legendary { background: #d97706; }
.ya-rarity-mythic { border-color: rgba(244, 63, 94, 0.85) !important; box-shadow: 0 0 14px rgba(244, 63, 94, 0.25) !important; }
.ya-rarity-pill.ya-rarity-mythic { background: #e11d48; }

/* Profile Partner Card */
.ya-partner-card { padding: 14px !important; }
.ya-partner-body { display: flex; align-items: center; gap: 10px; }
.ya-partner-body img { width: 52px; height: 68px; object-fit: cover; border-radius: 4px; }
.ya-partner-body strong { display: block; font-size: .92rem; }
.ya-partner-body small { color: var(--muted, #94a3b8); font-size: .78rem; }

/* Watch Buddy Matcher */
.ya-buddies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.ya-buddy-card { padding: 14px !important; }
.ya-buddy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ya-buddy-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ya-buddy-user small { display: block; font-size: .74rem; color: var(--muted, #94a3b8); }
.ya-match-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: .78rem;
  font-weight: 800;
}
.ya-buddy-meta { font-size: .84rem; color: var(--muted, #94a3b8); margin-bottom: 10px; }

/* Curated Anime Stacks */
.ya-stack-creator { padding: 14px !important; margin-bottom: 16px; }
.ya-stack-creator summary { cursor: pointer; font-size: .95rem; }
.ya-stack-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ya-stack-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}
.ya-stack-chk { display: flex; align-items: center; gap: 6px; font-size: .8rem; cursor: pointer; }
.ya-stacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.ya-stack-card { padding: 14px !important; display: flex; flex-direction: column; gap: 8px; }
.ya-stack-posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ya-stack-posters img { width: 100%; height: 78px; object-fit: cover; border-radius: 3px; display: block; }
.ya-stack-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* Anime OP / ED Music Hub */
.ya-music-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px !important;
  margin-bottom: 16px;
}
.ya-music-list { display: flex; flex-direction: column; gap: 8px; }
.ya-music-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  flex-wrap: wrap;
}
.ya-music-kind-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  font-size: .74rem;
  font-weight: 800;
}
.ya-music-info { flex: 1 1 200px; }
.ya-music-info strong { display: block; font-size: .94rem; }
.ya-music-info small { color: var(--muted, #94a3b8); font-size: .8rem; }
.ya-music-actions { display: flex; gap: 8px; align-items: center; }

/* Seasonal Anime Bingo 5x5 */
.ya-bingo-wrap { padding: 18px !important; }
.ya-bingo-status { font-weight: 800; font-size: .95rem; color: var(--accent, #a78bfa); }
.ya-bingo-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 720px;
  margin: 0 auto;
}
.ya-bingo-cell {
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all .15s ease;
}
.ya-bingo-cell.is-checked {
  background: rgba(139, 92, 246, 0.32) !important;
  border-color: #8b5cf6 !important;
  color: #fff !important;
}
.ya-bingo-cell.is-free {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.35)) !important;
}

/* 7-Day Login Streak Calendar */
.ya-streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.ya-streak-day {
  padding: 14px 10px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.ya-streak-tag { font-size: .72rem; font-weight: 800; color: var(--muted, #94a3b8); text-transform: uppercase; }
.ya-streak-day strong { font-size: 1.15rem; }
.ya-streak-day small { font-size: .76rem; color: #38bdf8; font-weight: 700; }
.ya-streak-state { font-size: .74rem; font-weight: 700; margin-top: 4px; }
.ya-streak-day.is-done { border-color: rgba(16, 185, 129, 0.55) !important; background: rgba(16, 185, 129, 0.1) !important; }
.ya-streak-day.is-today { border-color: #8b5cf6 !important; box-shadow: 0 0 14px rgba(139, 92, 246, 0.35) !important; }
.ya-streak-day.is-jackpot { border-color: rgba(251, 191, 36, 0.65) !important; }

@media (max-width: 780px) {
  .ya-streak-calendar { grid-template-columns: repeat(2, 1fr); }
  .ya-bingo-cell { font-size: .66rem; padding: 4px; }
}


/* ==========================================================================
   YAMSEKAI ANIME LEGEND: HUB PORTAL, GUILD WARS, QUOTES, MOODS & PREDICTIONS
   ========================================================================== */
.ya-hub-section { margin-bottom: 22px; }
.ya-hub-cat-title { font-size: 1.05rem; margin: 0 0 10px; font-weight: 800; }
.ya-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.ya-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px !important;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease;
}
.ya-hub-card:hover { border-color: var(--accent, #8b5cf6) !important; transform: translateY(-2px); }
.ya-hub-ico { font-size: 28px; line-height: 1; flex: none; }
.ya-hub-card h3 { margin: 0 0 4px; font-size: .94rem; }
.ya-hub-card p { margin: 0; font-size: .8rem; color: var(--muted, #94a3b8); line-height: 1.4; }

/* Guild Wars */
.ya-gw-list { display: flex; flex-direction: column; gap: 10px; }
.ya-gw-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
  flex-wrap: wrap;
}
.ya-gw-row.is-champion { border-color: rgba(251, 191, 36, 0.7) !important; }
.ya-gw-rank { font-size: 1.3rem; font-weight: 900; width: 38px; text-align: center; }
.ya-gw-info { flex: 1 1 200px; }
.ya-gw-info h3 { margin: 0 0 3px; font-size: 1rem; }
.ya-gw-info a { text-decoration: none; color: inherit; }
.ya-gw-info small { color: var(--muted, #94a3b8); font-size: .8rem; }
.ya-gw-power { text-align: right; min-width: 90px; }
.ya-gw-power strong { display: block; font-size: 1.15rem; color: var(--accent, #a78bfa); }
.ya-gw-power small { font-size: .66rem; font-weight: 800; color: var(--muted, #94a3b8); }

/* Quote Wall */
.ya-quote-add-form { padding: 14px !important; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.ya-quote-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ya-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.ya-quote-card { padding: 16px !important; display: flex; flex-direction: column; gap: 10px; }
.ya-quote-card blockquote { margin: 0; font-size: .96rem; font-style: italic; line-height: 1.5; }
.ya-quote-author strong { display: block; font-size: .86rem; color: var(--accent, #a78bfa); }
.ya-quote-author small { font-size: .78rem; color: var(--muted, #94a3b8); }
.ya-quote-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* Mood Recommender */
.ya-mood-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ya-mood-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  text-decoration: none;
  color: inherit;
  font-size: .86rem;
}
.ya-mood-tile span { font-size: 22px; }
.ya-mood-tile.is-active { border-color: var(--accent, #8b5cf6) !important; background: rgba(139, 92, 246, 0.16) !important; }

/* Seasonal Predictions */
.ya-pred-bal { margin: 0 0 12px; font-size: .92rem; }
.ya-preds-list { display: flex; flex-direction: column; gap: 14px; }
.ya-pred-card { padding: 18px !important; }
.ya-pred-card h3 { margin: 0 0 12px; font-size: 1.02rem; }
.ya-pred-bar {
  display: flex;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
}
.ya-pred-fill-a { background: #8b5cf6; display: flex; align-items: center; justify-content: center; }
.ya-pred-fill-b { background: #0ea5e9; display: flex; align-items: center; justify-content: center; }
.ya-pred-sides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ya-pred-side {
  padding: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ya-pred-side small { color: var(--muted, #94a3b8); font-size: .78rem; }
.ya-pred-bet-form { display: flex; gap: 6px; align-items: center; margin-top: 4px; }

@media (max-width: 680px) {
  .ya-pred-sides { grid-template-columns: 1fr; }
}


/* ==========================================================================
   YAMSEKAI ORIGINAL IDENTITY V3 — SHOGUN CRIMSON (ZERO YAMFORGE PURPLE/NAVY)
   Sumi-e Charcoal (#0b0c10) + Torii Crimson (#ef233c) + Katana Gold (#ff9f1c)
   ========================================================================== */
:root,
[data-ya-theme="shogun"] {
  --bg: #0b0c10 !important;
  --panel: #12141a !important;
  --panel-hover: #1a1d26 !important;
  --field: #0e1015 !important;
  --soft: #1b1e27 !important;
  --line: rgba(255, 255, 255, 0.09) !important;
  --ink: #f4f4f6 !important;
  --text: #f4f4f6 !important;
  --muted: #9ca3af !important;
  --accent: #ef233c !important;
  --accent-light: #ff4d6d !important;
  --accent-gold: #ff9f1c !important;
  --accent-gradient: linear-gradient(135deg, #d90429 0%, #ef233c 60%, #ff9f1c 100%) !important;
  --glow: rgba(239, 35, 60, 0.35) !important;
}

/* Pure Sumi-e Editorial Canvas (kills YamForge blue-purple backdrop) */
html[data-mode="dark"],
body[data-mode="dark"],
html[data-ya-theme="shogun"],
body[data-ya-theme="shogun"] {
  background: var(--bg) !important;
  background-image:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 159, 28, 0.06) 0%, transparent 38%) !important;
  background-attachment: fixed !important;
  color: var(--ink) !important;
}

/* Header: Sharp Japanese Editorial Bar with Crimson bottom hair-line */
header.ya-header-anime {
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-mode="light"] header.ya-header-anime {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 40%, rgba(0,0,0,0.08)) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06) !important;
}

/* Brand Logo & Japanese Kanji Seal (影) */
.ya-nav-brand .ya-brand-icon {
  filter: drop-shadow(0 0 8px var(--glow)) !important;
}
.ya-word-kage,
header.ya-header-anime .yf-brand .yf-forge-word > b,
[data-ya-theme] header .yf-brand .yf-forge-word > b {
  background: none !important;
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  filter: none !important;
}
.ya-kanji-seal {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  padding: 2px 5px !important;
  font-style: normal !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  background: var(--accent) !important;
  border-radius: 3px !important;
  letter-spacing: 0 !important;
  transform: translateY(-2px);
}

/* Center Nav Dock — Neutral Charcoal Frame + Dynamic Active Accent */
.ya-nav-center {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.ya-pill-feed { --chip-a: #ef233c; --chip-b: #ff4d6d; }
.ya-pill-arcade { --chip-a: #ff9f1c; --chip-b: #f59e0b; }
.ya-nav-pill[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel)) !important;
  border-color: var(--accent) !important;
}

/* Cards & Surfaces use Dynamic Theme Tokens (NOT YamForge #090e1a navy / #8b5cf6 purple!) */
.ya-composer-card,
.ya-post-card,
.ya-sidebar-card,
.ya-watchlist-widget,
.ya-continue-watching-widget,
.ya-simulcasts-widget,
.ya-guilds-widget,
.nx-card,
.ya-modal-box {
  background: var(--panel) !important;
  border-color: var(--line) !important;
}
.ya-composer-card,
.ya-post-card {
  border-left: 3px solid var(--accent) !important;
}

/* Primary Buttons, Broadcast CTA, Chat Launcher, Story Card use var(--accent) */
.button-accent,
.ya-nav-broadcast-btn,
.ya-broadcast-btn,
.ya-chat-launcher-btn,
.ya-bump-ep-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.button-accent:hover,
.ya-nav-broadcast-btn:hover,
.ya-broadcast-btn:hover,
.ya-chat-launcher-btn:hover {
  filter: brightness(1.1) !important;
}

.ya-story-card-self {
  background: var(--panel) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)) !important;
}
.ya-story-card-self:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 14px var(--glow) !important;
}
.ya-story-self-icon-box {
  background: var(--accent) !important;
  box-shadow: 0 0 12px var(--glow) !important;
}
.ya-story-self-tag {
  background: color-mix(in srgb, var(--accent) 22%, transparent) !important;
  color: var(--accent-light) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important;
  box-shadow: none !important;
}
.ya-tag-accent {
  color: var(--accent-light) !important;
}
.ya-radio-btn.is-playing {
  background: color-mix(in srgb, var(--accent) 20%, transparent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
  box-shadow: 0 0 10px var(--glow) !important;
}

/* Light Mode Readability on New Arcade / Nexus / Legend Modules */
[data-mode="light"] .ya-tier-row,
[data-mode="light"] .ya-gacha-card,
[data-mode="light"] .ya-poll-box,
[data-mode="light"] .ya-pred-side,
[data-mode="light"] .ya-champ-row {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
[data-mode="light"] .ya-bingo-cell {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}
[data-mode="light"] .ya-studio-title-input,
[data-mode="light"] .ya-studio-search,
[data-mode="light"] .ya-poll-builder-inputs input {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}
[data-mode="light"] .ya-word-yam,
[data-mode="light"] header.ya-header-anime .yf-brand .yf-forge-word > span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}


/* Home Quick Arcade & Quote of the Day Sidebar Widgets */
.ya-quick-arcade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.ya-qa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.ya-qa-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ya-qotd-text {
  margin: 0 0 8px;
  font-size: .85rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}
.ya-qotd-by {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Shinobi Animated Avatar Frames (Purchasable with Sekai Coins) */
.vr-frame-shogun {
  box-shadow: 0 0 0 2.5px #ef233c, 0 0 12px rgba(239, 35, 60, 0.65) !important;
}
.vr-frame-katana {
  box-shadow: 0 0 0 2.5px #ff9f1c, 0 0 12px rgba(255, 159, 28, 0.65) !important;
}
.vr-frame-cyber {
  box-shadow: 0 0 0 2.5px #00f2fe, 0 0 12px rgba(0, 242, 254, 0.65) !important;
}
.vr-frame-sakura {
  box-shadow: 0 0 0 2.5px #ff2e93, 0 0 12px rgba(255, 46, 147, 0.65) !important;
}
.vr-tier-free {
  background: color-mix(in srgb, var(--accent) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent) !important;
  color: var(--accent-light) !important;
}


/* ==========================================================================
   YAMSEKAI ANIME UNIVERSE: LIVE NEWS, MANGA TRACKER & PROFILE THEME SONG
   ========================================================================== */
.ya-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.ya-news-card {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ya-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .76rem;
  color: var(--muted);
}
.ya-news-card h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.ya-news-card h3 a { text-decoration: none; color: inherit; }
.ya-news-card h3 a:hover { color: var(--accent); }

.ya-manga-add-card { padding: 16px !important; margin-bottom: 14px; }
.ya-manga-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ya-manga-list { display: flex; flex-direction: column; gap: 8px; }

.ya-profile-song-card { padding: 14px !important; }
.ya-song-title-line { margin: 4px 0 8px; font-size: .86rem; }
.ya-song-embed { margin: 8px 0; border-radius: 4px; overflow: hidden; }
.ya-song-edit-details { margin-top: 8px; font-size: .8rem; }
.ya-song-edit-details summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.ya-song-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
