.radar-ani-wrapper {
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    padding-bottom: 6rem;
}

.radar-ani-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.25rem 4rem;
    text-align: center;
}

.radar-ani-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.radar-ani-hero h1 {
    font-size: 3.125rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.radar-ani-hero p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}

.radar-ani-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-link {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
    text-decoration: none;
}

.tab-link:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #e2e8f0;
}

.tab-link.active {
    color: #2563eb;
    background: #ffffff;
    border-color: #e2e8f0;
}

/* Pagination Bar */
.mofu-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 5rem;
}

.mofu-page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 12px;
}

.mofu-page-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.mofu-page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.mofu-page-dots {
    color: #94a3b8;
    padding: 0 0.5rem;
}

.radar-ani-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.radar-grid {
    display: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 2rem;
}

.radar-grid.active {
    display: grid;
    animation: premiumFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premiumFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Card Design */
.anime-card {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.anime-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.card-type {
    font-size: 0.625rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.card-aired {
    font-size: 0.688rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.card-aired i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.card-title {
    color: #0f172a;
    font-size: 0.938rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.card-action-btn {
    width: 100%;
    padding: 8px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    margin-top: auto;
    line-height: 1.4;
    text-decoration: none;
}

.anime-card:hover .card-action-btn {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
}

/* Modal - New Music Explorer Design */
.p-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    min-height: 70vh;
    max-height: 80vh;
    transform: scale(0.95) translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 20px;
}

.p-modal.active .modal-panel {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #0f172a;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn:hover {
    background: #2563eb;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}

.modal-left-side {
    width: 40%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modal-left-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 10%, transparent 90%);
    z-index: 1;
}

.modal-left-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

.m-pill {
    display: block;
    max-width: fit-content;
    overflow-wrap: break-word;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.m-anime-header {
    margin-bottom: 1.875rem;
}

.m-anime-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #0f172a;
    display: block;
}

.m-anime-title-sub {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    letter-spacing: 0.1em;
}

.m-anime-title-sub::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(37, 99, 235, 0.2);
}

.m-anime-title-jp {
    font-size: 0.75rem;
    color: #64748b;
    font-family: "Noto Sans JP", sans-serif;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    opacity: 0.8;
}

.m-anime-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.m-meta-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.m-meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.m-meta-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.modal-right-side {
    flex: 1;
    height: 100%;
    width: 100%;
    padding: 34px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: #fff;
}

.music-explorer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.875rem;
}

.music-explorer-title i {
    color: #2563eb;
    font-size: 1.5rem;
}

.music-grid-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.t-category-head {
    font-size: 0.813rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-category-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.t-item-premium {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.t-item-premium:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.t-item-premium.active-link {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.02);
}

.t-item-premium.active-link:hover {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.t-number {
    width: 32px;
    font-size: 0.813rem;
    font-weight: 700;
    color: #94a3b8;
}

.t-content-main {
    flex: 1;
}

.t-song-name {
    font-size: 0.938rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.3;
}

.t-song-artist {
    font-size: 0.813rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

.t-launch-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s;
    opacity: 0.6;
}

.t-item-premium.active-link .t-launch-btn {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
    opacity: 1;
}

.t-item-premium.active-link:hover .t-launch-btn {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.t-item-premium:not(.active-link) {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

.t-item-premium.active-link {
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
}

/* Loading / Waiter Refined */
.waiter-new {
    padding: 5rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner-premium {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spinPremium 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinPremium {
    to {
        transform: rotate(360deg);
    }
}

.filtered-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filtered-pages i {
    font-size: 2rem;
    color: #2563eb;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.filtered-pages h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.filtered-pages p {
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1400px) {
    .radar-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .radar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-img-container {
        height: 35vw;
    }
}

@media (max-width: 992px) {
    .radar-ani-content {
        padding: 0 1rem;
    }

    .radar-ani-hero {
        padding: 5rem 1rem 4rem;
    }

    .radar-ani-hero h1 {
        font-size: 2.625rem;
    }

    .radar-ani-hero p,
    .radar-spot-hero p {
        max-width: 100%;
    }

    .modal-panel {
        flex-direction: column;
        min-height: 100%;
        max-height: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-left-side {
        width: 100%;
        height: 400px;
        min-height: 300px;
        flex-shrink: 0;
    }

    .modal-left-content {
        padding: 100% 1rem 1rem;
    }

    .modal-right-side {
        padding: 24px 16px;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .radar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0.75rem;
    }

    .card-img-container {
        height: 45vw;
    }

    .radar-ani-hero h1 {
        font-size: 2rem;
    }

    .radar-ani-hero p {
        font-size: 1rem;
    }

    .modal-close-btn {
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 478px) {
    .radar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-img-container {
        height: 60vw;
    }

    .radar-ani-hero h1 {
        font-size: 1.5rem;
    }

    .radar-ani-hero p {
        font-size: 0.875rem;
    }
}

/* Custom Override for Spotify Radar */
.radar-spot-hero p {
    max-width: 34rem;
}

.radar-spot-badge-top {
    background: rgba(29, 185, 84, 0.1);
    color: #1db954;
    border-color: rgba(29, 185, 84, 0.2);
}

.spot-action-btn {
    background: #1db954 !important;
    color: #fff !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.anime-card:hover .spot-action-btn {
    background: #1ed760 !important;
}

.spot-img-container {
    height: 195px;
    aspect-ratio: 1 / 1;
}

.spot-card-type {
    background: rgba(29, 185, 84, 0.1);
    color: #1db954;
    border-color: rgba(29, 185, 84, 0.2);
}

.sync-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1db954;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    z-index: 10;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mofu-spin {
    animation: mofu-spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes mofu-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-artist {
    margin-bottom: 12px;
    font-size: 0.813rem;
}

.card-artist i {
    color: #1db954;
    font-size: 0.75rem;
}

.card-artist span {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .spot-img-container {
        height: 236px;
    }
}

@media (max-width: 1200px) {
    .spot-img-container {
        height: 23vw;
    }
}

@media (max-width: 768px) {
    .spot-img-container {
        height: 30vw;
    }
}

@media (max-width: 478px) {
    .spot-img-container {
        height: 45vw;
    }
}