/* ========================================
   J-Notifier - Style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* Bright Idol Theme */
    --primary: #f43f5e;
    --primary-dark: #e11d48;
    --primary-light: rgba(244, 63, 94, 0.1);

    --bg: #d3e8f4;
    /* Light blueish background */
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.95);

    --border: #e2e8f0;
    --border-hover: #f43f5e;

    --text: #1e293b;
    --text2: #475569;
    --text3: #64748b;
    --app-title-color: #1e293b;

    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --radius: 12px;

    --line-green: #06C755;
    --ref-orange: #f59e0b;
    --secondary: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow-x: hidden;
}

#tab-artists .tab-inner,
#tab-settings .tab-inner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 12px;
    padding: 12px;
    padding-bottom: 150px;
    /* Leave space for bottom bar */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========================================
   スクリーン
   ======================================== */

.screen {
    display: none;
    width: 100%;
    background: var(--bg);
}

.screen.active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   ローディング
   ======================================== */

#screen-loading {
    align-items: center;
    justify-content: center;
}

.loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(79, 70, 229, .2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ロゴマーク
   ======================================== */

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: transparent;
    object-fit: contain;
}

.logo-mark.large {
    width: 96px;
    height: 96px;
}

/* ========================================
   ログイン画面
   ======================================== */

#screen-login,
#screen-activate {
    align-items: center;
    justify-content: center;
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
}

.center-container h1 {
    font-size: 24px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: var(--text2);
    text-align: center;
    line-height: 1.6;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #4285F4;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all .2s;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

.login-note {
    font-size: 11px;
    color: var(--text3);
    text-align: center;
}

/* ========================================
   iOS インストール誘導
   ======================================== */

#screen-install {
    background: linear-gradient(135deg, #e0f2fe 0%, #d3e8f4 100%);
    justify-content: center;
}

.install-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 48px 24px;
    text-align: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.install-container h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.install-desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
}

.install-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text2);
    margin: 0 0 16px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 12px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg2);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.install-step p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
}

.install-footer-note {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text3);
    margin-top: 8px;
}

.install-arrow {
    font-size: 32px;
    color: var(--primary);
    margin-top: 12px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ========================================
   アクティベーション画面
   ======================================== */

.activate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
}

.activate-icon {
    font-size: 48px;
}

.activate-desc {
    font-size: 14px;
    color: var(--text2);
    text-align: center;
    line-height: 1.6;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.input-group input {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-align: center;
    outline: none;
    transition: border-color .2s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.input-group input::placeholder {
    color: var(--text3);
    font-size: 14px;
}

.activate-purchase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.activate-purchase p {
    font-size: 13px;
    color: var(--text3);
}

.btn-purchase {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all .2s;
}

.btn-purchase:hover {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   エラーメッセージ
   ======================================== */

.error-msg {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #f87171;
    width: 100%;
    text-align: center;
}

/* ========================================
   ヘッダー
   ======================================== */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: var(--header-h);
    flex-shrink: 0;
    padding-top: env(safe-area-inset-top, 0px);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: transparent;
    object-fit: contain;
}

.app-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.app-name-svg {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.svg-title-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    fill: var(--app-title-color);
    stroke: var(--app-title-color);
    stroke-width: 0.5px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: text-draw 4s ease-in-out infinite alternate;
}

@keyframes text-draw {
    0% {
        stroke-dashoffset: 200;
        fill: transparent;
    }

    40% {
        stroke-dashoffset: 0;
        fill: transparent;
    }

    60% {
        fill: var(--app-title-color);
        stroke: transparent;
    }

    100% {
        fill: var(--app-title-color);
        stroke: transparent;
    }
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    color: var(--text3);
    transition: all .2s;
    position: relative;
}

.nav-btn.active {
    color: var(--primary);
    background: rgba(79, 70, 229, .1);
}

.theme-red .nav-btn {
    color: #7a4b54;
}

.theme-red .nav-btn.active {
    color: #be123c;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 10px rgba(190, 24, 93, 0.12);
}

.theme-black .nav-btn {
    color: rgba(255, 255, 255, 0.72);
}

.theme-black .nav-btn.active {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.22);
}

.theme-black .center-container h1,
.theme-black .subtitle,
.theme-black .login-note {
    color: rgba(255, 255, 255, 0.88);
}

.nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--secondary);
    color: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   タブコンテンツ
   ======================================== */

#screen-main {
    flex-direction: column;
    min-height: 100vh;
    padding: 16px 0;
}

.tab-content {
    display: none;
    flex: 1;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.tab-inner {
    flex: 1;
    padding-bottom: 150px !important;
}

/* ========================================
   Pull to Refresh
   ======================================== */
.ptr-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 0;
    transition: height 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    font-size: 13px;
    color: var(--text3);
    gap: 10px;
}

.ptr-spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptr-spinner.spinning {
    animation: ptr-spin 0.8s linear infinite;
}

@keyframes ptr-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ptr-indicator.loading .ptr-label {
    font-weight: 600;
    color: var(--primary);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.loading-msg,
.empty-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 24px;
    color: var(--text3);
    text-align: center;
}

.empty-msg .empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text3);
    opacity: 0.5;
    margin-bottom: 8px;
}

.empty-msg p {
    font-size: 15px;
}

.empty-msg .sub {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.6;
}

/* 通知カード */
/* タイムライン画面用のPull To Refresh */
.ptr-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
    color: var(--text3);
    font-size: 13px;
    transition: margin-top 0.2s ease-out;
    width: 100%;
}

.ptr-spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptr-spinner {
    transition: transform 0.1s linear;
    stroke: var(--primary);
    opacity: 0.6;
}

.ptr-spinner.spinning {
    opacity: 1;
    animation: ptr-spin 0.8s linear infinite;
}

@keyframes ptr-spin {
    100% {
        transform: rotate(360deg);
    }
}

.ptr-loading .ptr-indicator {
    display: flex !important;
}

.ptr-label {
    font-weight: 500;
}

.notif-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .15s;
}

.notif-card:active {
    transform: scale(.99);
}

.notif-header {
    background: #334155;
    /* Slate 700 - 落ち着いたネイビーグレー */
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    /* 文字色を白に変更 */
}

.notif-header.ref {
    background: #78350f;
    /* Amber 900 - 深い琥珀色 */
    color: #ffffff;
    /* 文字色を白に変更 */
}

.notif-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-ref-desc {
    font-size: 12px;
    color: var(--ref-orange);
    font-weight: 700;
    line-height: 1.5;
}

.notif-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.notif-artist {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.notif-sub {
    font-size: 12px;
    color: var(--text3);
}

.notif-ref-tag {
    font-size: 12px;
    color: var(--ref-orange);
    font-weight: 500;
}

.notif-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-top: 4px;
}

.notif-preview {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}

.notif-date {
    font-size: 11px;
    color: var(--text3);
}

.notif-received-date {
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text3);
    text-align: center;
}

.theme-red .notif-received-date {
    color: #7a4b54;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(122, 75, 84, 0.12);
    border-radius: 999px;
    padding: 4px 10px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.notif-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.btn-read-blog {
    display: block;
    background: var(--line-green);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: opacity .2s;
}

.btn-read-blog:active {
    opacity: .8;
}

/* ========================================
   アーティスト選択
   ======================================== */

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: var(--spacing-md, 1rem);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md, 1rem);
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text3);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1rem) var(--spacing-sm, 0.75rem) 2.5rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* Filter Tabs UI */
.filter-tabs {
    display: flex;
    background: var(--bg2);
    border-radius: var(--radius, 8px);
    padding: 4px;
    margin-bottom: var(--spacing-lg, 1.5rem);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius, 8px) - 2px);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Group Sections */
.group-section {
    margin-bottom: 2rem;
}

.group-section-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.group-section-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1rem;
    background: var(--primary);
    border-radius: 4px;
    margin-right: 8px;
}

.attention-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 251, 235, 0.98));
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

.attention-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.04em;
}

.attention-note-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.attention-note p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #92400e;
}

.attention-note p+p {
    margin-top: 8px;
}

/* Talent Grid */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.talent-card {
    background: var(--bg2);
    border: 2px solid transparent;
    border-radius: var(--radius, 8px);
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.talent-card:active {
    transform: scale(0.96);
}

.talent-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.talent-card.no-blog {
    /* No opacity drop as requested */
    color: inherit;
}

.talent-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.talent-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 4px;
}

.talent-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    background-color: #e2e8f0;
}

.talent-icon.gradient-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.talent-icon.group-icon {
    font-size: 1.4rem;
}

.checkmark-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.talent-card.selected .checkmark-overlay {
    opacity: 1;
    transform: scale(1);
}

.checkmark-overlay svg {
    width: 12px;
    height: 12px;
    color: white;
}

.talent-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.talent-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.talent-group {
    font-size: 0.65rem;
    color: var(--text3);
    padding: 2px 6px;
    background: #f6f6f6;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Save Section Container */
.save-section-container {
    position: fixed;
    bottom: var(--safe-bottom);
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* drawer is first in DOM so appears above bar */
}

.save-section-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 102;
}

.btn-large {
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-hint-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-hint {
    font-size: 0.85rem;
    color: var(--text2);
    margin: 0;
}

.btn-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 6px;
    display: inline-block;
}

.btn-icon-round {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px;
}

.btn-icon-round:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-icon-round svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn-icon-round.expanded svg {
    transform: rotate(180deg);
}

/* Collapsible Drawer */
.selected-artists-drawer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 101;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selected-artists-drawer.open {
    max-height: 300px;
    opacity: 1;
    padding: 16px;
    padding-bottom: 12px;
}

/* Preview Chips in Drawer */
.selected-artists-drawer .selected-artists-preview {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;

    /* Enforce 2-row horizontal scroll layout */
    display: grid !important;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    overflow-x: auto;
    column-gap: 8px;
    row-gap: 8px;
    justify-content: start;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.selected-artists-drawer .selected-artists-preview::-webkit-scrollbar {
    height: 4px;
}

.selected-artists-drawer .selected-artists-preview::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.selected-talent-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 4px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}



.selected-artists-drawer .selected-talent-chip {
    white-space: nowrap;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.selected-talent-chip:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.selected-talent-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.selected-talent-name {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.chip-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    margin-right: 4px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.chip-remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* ========================================
   設定画面
   ======================================== */

.settings-section {
    margin: 0;
    background: var(--surface);
    border-radius: 0;
    border: none;
    overflow: hidden;
}

/* 各セクションを独立した白カードとして表示 */
.settings-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    padding-bottom: 150px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.settings-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text3);
    padding: 12px 16px 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.settings-note {
    padding: 0 16px 12px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text3);
}

.background-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.background-theme-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.background-theme-btn:active {
    transform: scale(0.98);
}

.background-theme-btn.selected {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.14);
}

.background-theme-swatch {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.background-theme-btn[data-theme="black"] .background-theme-swatch {
    border-color: rgba(255, 255, 255, 0.2);
}

.background-theme-label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.background-theme-check {
    width: 16px;
    height: 16px;
    opacity: 0;
    color: var(--primary);
    flex-shrink: 0;
}

.background-theme-btn.selected .background-theme-check {
    opacity: 1;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.settings-item>div:first-child {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

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

.settings-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.settings-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

.inline-input {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    width: 100%;
    min-width: 0;
}

.inline-input:focus {
    border-color: var(--primary);
}

/* ========================================
   共通ボタン
   ======================================== */

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: .5;
    cursor: default;
}

.btn-small {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-tiny {
    background: var(--bg3);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
}

.btn-outline {
    width: calc(100% - 32px);
    margin: 12px 16px;
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.btn-outline:hover {
    background: var(--bg3);
}

.btn-howto {
    width: calc(100% - 32px);
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-howto:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-danger-outline {
    width: calc(100% - 32px);
    background: none;
    border: 1.5px solid rgba(239, 68, 68, .4);
    color: #f87171;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, .1);
}

/* ========================================
   トグルスイッチ
   ======================================== */

.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg3);
    border-radius: 13px;
    cursor: pointer;
    transition: .3s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    left: 3px;
    top: 3px;
    transition: .3s;
}

.toggle input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* ========================================
   スクロールバー
   ======================================== */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 4px;
}

/* ========================================
   モーダル (How to Use等)
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out forwards;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text3);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.push-setup-modal-content {
    max-width: 440px;
}

.push-setup-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.push-setup-section {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.push-setup-section h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.push-setup-section p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

.push-setup-steps {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text2);
    font-size: 13px;
    line-height: 1.7;
}

.push-setup-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom save button color matching starto-blog-notifier */
.btn-save-blue {
    background: var(--secondary-color, #00bfff);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius, 12px);
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2);
    transition: all 0.2s;
}

.btn-save-blue:hover:not(:disabled) {
    background: #1e90ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 191, 255, 0.3);
}

.btn-save-blue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9ca3af;
    box-shadow: none;
    transform: none;
}

/* タイムライン用フィルタタブ */
#timelineFilterTabs {
    display: flex !important;
    gap: 8px;
    padding: 12px;
    margin: 12px 12px 0;
    /* 左右と上に余白を入れ、通知カードと幅を揃える */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: sticky;
    top: 8px;
    /* ヘッダーからの浮き */
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#timelineFilterTabs::-webkit-scrollbar {
    display: none;
}

/* スマホでの横スクロール末尾の余白確保 (背景途切れ防止) */
#timelineFilterTabs::after {
    content: '';
    padding-right: 4px;
    flex-shrink: 0;
}

/* ボタン共通スタイル */
#timelineFilterTabs .tab-btn {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#timelineFilterTabs .tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2);
}

#timelineFilterTabs .tab-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

#timelineFilterTabs .tab-btn.active svg {
    opacity: 1;
}

/* PC向けの垂直レイアウト設定 */
@media (min-width: 769px) {
    #timelineFilterTabs {
        flex-wrap: wrap !important;
        overflow-x: visible;
        justify-content: center;
        /* 中央寄せ */
    }

    #timelineFilterTabs::after {
        display: none;
    }

    #timelineFilterTabs .tab-btn {
        flex-direction: column !important;
        width: 80px;
        height: 80px;
        border-radius: 12px;
        gap: 6px;
        font-size: 10px;
        text-align: center;
    }

    #timelineFilterTabs .tab-btn svg {
        width: 24px;
        height: 24px;
    }

    #timelineFilterTabs .tab-btn span {
        line-height: 1.2;
    }
}

/* スマホ向けの横スクロール設定 */
@media (max-width: 768px) {
    #timelineFilterTabs .tab-btn {
        padding: 8px 16px;
        border-radius: 24px;
        gap: 6px;
        font-size: 13px;
        flex-direction: row !important;
        min-width: max-content;
    }

    #timelineFilterTabs .tab-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   カスタムプルダウン (Select)
   ======================================== */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 36px 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.custom-select:hover,
.custom-select:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-light);
}

.custom-select:disabled {
    background-color: var(--bg3);
    color: var(--text3);
    cursor: not-allowed;
    border-color: var(--border);
}

/* スケジュール通知設定の新UI */
.schedule-notif-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-add-notif {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg3);
    color: var(--text2);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: all 0.2s;
}

.btn-add-notif:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    border-style: solid;
}

.btn-remove-notif {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-remove-notif:hover {
    background: #ef4444;
    color: #ffffff;
}

.day-time-row-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.notif-divider-text {
    font-size: 12px;
    color: var(--text3);
    margin: 0 4px;
}

/* ========================================
   スケジュール通知設定 新UIデザイン案（案1+案3）
   ======================================== */
.icon-bg {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-bg svg {
    width: 18px;
    height: 18px;
}

.c-blog {
    background: #f3e8ff;
    color: #9333ea;
}

.c-tv {
    background: #e0f2fe;
    color: #0284c7;
}

.c-radio {
    background: #dcfce7;
    color: #16a34a;
}

.c-magazine {
    background: #ffedd5;
    color: #ea580c;
}

.c-web {
    background: #e0e7ff;
    color: #4f46e5;
}

.c-release {
    background: #fee2e2;
    color: #dc2626;
}

.c-concert {
    background: #fce7f3;
    color: #db2777;
}

.c-stage {
    background: #f3e8ff;
    color: #9333ea;
}

.c-event {
    background: #fef3c7;
    color: #d97706;
}

.c-ticket {
    background: #e2e8f0;
    color: #475569;
}

.c-movie {
    background: #ccfbf1;
    color: #0d9488;
}

.c-birthday {
    background: #ffe4e6;
    color: #e11d48;
}

.c-remind {
    background: #ffedd5;
    color: #ea580c;
}

.c-new {
    background: #f3e8ff;
    color: #9333ea;
}

.c-update {
    background: #e0f2fe;
    color: #0284c7;
}

.notif-badge-label {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
}

.notif-badge-label input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: currentColor;
}

.notif-badge-label.checked-tl,
.notif-badge-label.checked-push {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* ========================================
   スケジュール通知設定 新UIデザイン：案5（アイコンバッジ型）
   ======================================== */
.icon-toggle-badge {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #f4f4f5;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.icon-toggle-badge:not(.checked) svg {
    opacity: 0.5;
    filter: grayscale(100%);
}

.icon-toggle-badge input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.icon-toggle-badge.checked {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* OFF（無効）のジャンル全体をグレーにする */
.genre-setting-block {
    transition: opacity 0.2s;
}

.genre-setting-block.dimmed {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* ========================================
   トースト通知
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.toast-msg {
    background: rgba(30, 30, 35, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   アーティストフィルタ FAB & モーダル
   ======================================== */

/* FABボタン */
#btn-artist-filter-fab {
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    /* タイムラインタブ表示中のみJS側で表示 */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.5);
    z-index: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#btn-artist-filter-fab:active {
    transform: scale(0.93);
}

#btn-artist-filter-fab.filtered {
    background: #7c3aed;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
}

/* FAB バッジ（選択件数） */
.fab-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 4px;
    background: #ef4444;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    pointer-events: none;
}

/* モーダルオーバーレイ */
#artist-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#artist-filter-modal.open {
    pointer-events: all;
    opacity: 1;
}

/* 半透明バックドロップ */
.artist-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* モーダル本体 */
.artist-filter-sheet {
    position: relative;
    background: var(--bg2);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#artist-filter-modal.open .artist-filter-sheet {
    transform: translateY(0);
}

/* モーダルヘッダー */
.artist-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.artist-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.artist-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-filter-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-filter-all:active {
    opacity: 0.7;
}

.btn-filter-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    transition: background 0.15s;
}

.btn-filter-close:active {
    background: var(--border);
}

.artist-filter-section {
    padding: 12px 16px 0;
}

.artist-filter-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

.artist-filter-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.artist-filter-type-list,
/* アーティストチップリスト */
.artist-filter-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.artist-filter-type-list {
    padding-bottom: 4px;
}

.artist-filter-list {
    padding-bottom: 16px;
}

body.modal-open {
    overflow: hidden;
}

/* 各チップ */
.artist-filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg3);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.artist-filter-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.artist-filter-type-chip {
    align-items: flex-start;
}

.artist-filter-type-chip span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
    word-break: break-word;
}

.artist-filter-chip.selected {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    font-weight: 700;
}

.artist-filter-chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.artist-filter-check {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.artist-filter-chip.selected .artist-filter-check {
    opacity: 1;
}

/* フィルタ中のバナー（タイムライン上部） */
#artist-filter-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    margin: 6px 0;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    flex-shrink: 0;
}

#artist-filter-banner.active {
    display: flex;
}

.push-setup-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 24px);
    margin: 12px 12px 0;
    padding: 14px 16px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.96));
    color: var(--text);
    text-align: left;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.12);
    cursor: pointer;
}

.push-setup-banner-copy {
    flex: 1;
    min-width: 0;
}

.push-setup-banner-title {
    font-size: 12px;
    font-weight: 800;
    color: #be123c;
    line-height: 1.4;
}

.push-setup-banner-sub {
    margin-top: 3px;
    font-size: 10px;
    color: var(--text3);
}

.push-setup-btn-detail {
    background: #e11d48;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}

.push-animation {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
    padding: 16px;
    background: var(--bg3);
    border-radius: var(--radius);
}

.anim-signal {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: dash-signal 2.5s infinite ease-out;
}

@keyframes dash-signal {
    0% {
        stroke-dashoffset: 60;
        opacity: 0;
    }

    20% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.anim-signal-arrow {
    opacity: 0;
    animation: arrow-signal 2.5s infinite ease-out;
}

@keyframes arrow-signal {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    20% {
        opacity: 1;
        transform: translateX(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.anim-push-popup {
    transform-origin: 185px 45px;
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
    animation: pop-notif 2.5s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-notif {

    0%,
    30% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    35%,
    85% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(0) scale(0.9);
    }
}

.push-setup-step-grid {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0;
}

.push-setup-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.push-setup-step-img {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 8px;
}

.push-setup-step-text {
    font-size: 10px;
    color: var(--text2);
    text-align: center;
    line-height: 1.4;
}

.push-setup-step-text b {
    color: var(--primary);
    font-size: 11px;
}

.push-setup-banner-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.filter-banner-clear {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.filter-banner-clear:active {
    background: rgba(124, 58, 237, 0.15);
}

/* ========================================
   タイムライン広告カード
   ======================================== */

.timeline-ad-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    overflow: hidden;
    position: relative;
    min-height: 120px;
}

.timeline-ad-card::before {
    content: '広告';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    color: var(--text3);
    background: var(--bg3);
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 1;
}

.timeline-ad-card .adsbygoogle {
    min-height: 100px;
}
