/* Animations */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-fade-up { opacity: 0; }
.reveal-fade-up.active { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.vs-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    transform: skewX(-15deg);
    letter-spacing: 0.02em;
    position: relative;
    /* 강렬한 네온 레이어 */
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.3),
        0 0 15px var(--vivid-pink),
        0 0 30px var(--vivid-pink),
        0 0 50px var(--vivid-pink);
    animation: vs-electric-glow 1.5s ease-in-out infinite alternate, vs-heavy-glitch 6s step-end infinite;
    z-index: 5;
}

@keyframes vs-electric-glow {
    0% {
        filter: brightness(1) contrast(1);
        text-shadow: 0 0 7px rgba(255, 255, 255, 0.3), 0 0 15px var(--vivid-pink), 0 0 30px var(--vivid-pink);
    }
    100% {
        filter: brightness(1.3) contrast(1.2);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 25px var(--vivid-pink), 0 0 50px var(--vivid-pink), 0 0 80px var(--vivid-pink);
        transform: skewX(-15deg) scale(1.02);
    }
}

@keyframes vs-heavy-glitch {
    0%, 95%, 98% { opacity: 1; transform: skewX(-15deg) translateX(0); }
    96% { opacity: 0.7; transform: skewX(-15deg) translateX(-5px) scaleY(1.1); filter: hue-rotate(90deg); }
    97% { opacity: 0.5; transform: skewX(-15deg) translateX(5px) scaleY(0.9); filter: hue-rotate(-90deg); }
    99% { opacity: 0.8; transform: skewX(-15deg) translateY(-3px); }
}

/* Matchup List Layout */
.matchup-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.matchup-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.matchup-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.matchup-list-item .time-remaining {
    color: var(--vivid-pink);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.3);
}

.matchup-list-item .time-waiting {
    color: var(--vivid-blue);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Item Visuals */
.item-visual {
    position: relative;
    width: 100%;
    height: 160px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.item-visual .split {
    position: relative;
    flex: 1;
    width: 50%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9);
}

.item-visual .left {
    border-radius: 1rem 0 0 1rem;
}

.item-visual .right {
    border-radius: 0 1rem 1rem 0;
}

.matchup-list-item:hover .item-visual .split {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.item-vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    border: 2px solid var(--vivid-pink);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.5);
    color: #F1F1F1;
}

/* AI Battle Report Summary Styles */
.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.summary-card.winner {
    border-bottom-color: var(--vivid-pink);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 0, 122, 0.05));
    box-shadow: 0 10px 40px rgba(255, 0, 122, 0.1);
}

.summary-card.loser {
    border-bottom-color: var(--vivid-blue);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(0, 240, 255, 0.05));
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-verdict {
    font-weight: 900;
    font-size: 0.625rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.verdict-win { background: var(--vivid-pink); color: #F1F1F1; }
.verdict-lose { background: var(--vivid-blue); color: #F1F1F1; }

.summary-oneliner {
    font-size: 1.25rem;
    font-weight: 800;
    color: #F1F1F1;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}


/* Radar Chart Container Styles */
.chart-container {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    animation: chart-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chart-pop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.radar-chart {
    width: 100% !important;
    max-width: 100%;
}

/* AI Score Board Premium Styles */
.ai-score-board-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.ai-score-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.score-team {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.team-left { justify-content: flex-start; text-align: left; }
.team-right { justify-content: flex-end; text-align: right; }

.team-avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--vivid-pink), var(--vivid-blue));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.team-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.team-score {
    font-size: 3.5rem;
    font-weight: 950;
    line-height: 1;
    color: #F1F1F1;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
}

.team-score small {
    font-size: 1.25rem;
    opacity: 0.5;
    margin-left: 2px;
}

.score-vs {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-glow-text {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
}

.vs-glow-text::after {
    content: 'VS';
    position: absolute;
    left: 0;
    top: 0;
    color: #F1F1F1;
    opacity: 0.1;
    filter: blur(8px);
}

.verdict-label {
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--vivid-yellow);
    white-space: nowrap;
}

/* Comparison Bar V2 */
.comparison-bar-container-v2 {
    max-width: 800px;
    margin: 3rem auto 0;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.comparison-bar-container-v2 .bar-side {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-bar-container-v2 .bar-left {
    background: linear-gradient(to right, var(--vivid-pink), #ff5e3a);
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.4);
}

.comparison-bar-container-v2 .bar-right {
    background: linear-gradient(to left, var(--vivid-blue), #00d2ff);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

@media (max-width: 768px) {
    .ai-score-board {
        flex-direction: column;
        gap: 2rem;
    }
    .score-team {
        width: 100%;
        justify-content: center !important;
        text-align: center !important;
    }
    .team-right { flex-direction: row-reverse; }
    .team-score { font-size: 2.5rem; }
}

/* Highlight Moments Premium Styles */
.highlights-section {
    position: relative;
    padding: 0 1rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 214, 0, 0.05), transparent 60%);
    pointer-events: none;
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 214, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moment-index {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 950;
    color: var(--vivid-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.1);
}

.moment-index > * {
    transform: rotate(-45deg);
}

.impact-badge {
    background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vivid-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.1);
}

.impact-badge .label {
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.impact-badge .score {
    font-size: 0.875rem;
    font-weight: 950;
    font-family: 'Space Grotesk', sans-serif;
}

.moment-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #F1F1F1;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.moment-quote-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
    padding: 1.75rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    font-size: 1.25rem;
    color: var(--vivid-yellow);
    background: #0a0a0a;
    padding: 0 0.5rem;
}

.moment-content {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: #F1F1F1;
    white-space: pre-wrap;
}

.moment-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analysis-tag {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--vivid-yellow);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.moment-analysis p {
    font-size: 0.875rem;
    color: rgba(241, 241, 241, 0.6);
    line-height: 1.6;
    font-weight: 500;
    white-space: pre-wrap;
}

.card-footer-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.03), transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0.5;
}

.highlight-card:hover .card-footer-glow {
    opacity: 1;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .highlight-card {
        padding: 2rem;
    }
    .moment-title {
        font-size: 1.25rem;
    }
}

/* Item Content */
.item-content {
    flex-grow: 1;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #F1F1F1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category Badges */
.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Category Specific Colors */
.badge-default { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); }
.badge-animal { background: rgba(255, 0, 122, 0.08); color: var(--vivid-pink); border: 1px solid rgba(255, 0, 122, 0.2); }
.badge-tech { background: rgba(0, 240, 255, 0.08); color: var(--vivid-blue); border: 1px solid rgba(0, 240, 255, 0.2); }
.badge-fantasy { background: rgba(188, 0, 255, 0.08); color: var(--vivid-purple); border: 1px solid rgba(188, 0, 255, 0.2); }
.badge-food { background: rgba(255, 214, 0, 0.08); color: var(--vivid-yellow); border: 1px solid rgba(255, 214, 0, 0.2); }

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.75rem; /* 간격 축소 */
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-overflow-scrolling: touch; /* 스무스 스크롤 */
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #F1F1F1;
}

.category-tab.active {
    background: white;
    color: black;
    border-color: #F1F1F1;
}

/* Search & Actions */
.list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.search-form {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    padding-left: 3.5rem;
    color: #F1F1F1;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--vivid-pink);
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
}

.create-btn {
    background: var(--vivid-pink);
    color: #F1F1F1 !important;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 122, 0.3);
}

/* Filter Tabs (Segmented Control) */
#sort-tabs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.3rem;
    display: flex;
    gap: 0.1rem;
    width: fit-content;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: transparent;
    border: none;
}

.filter-tab:hover {
    color: #F1F1F1;
}

.filter-tab.active {
    background: white;
    color: black;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* View Tabs (Card/List Toggle) */
#view-tabs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.3rem;
    display: flex;
    gap: 0.1rem;
    width: fit-content;
}

.view-tab {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: transparent;
    border: none;
}

.view-tab:hover {
    color: #F1F1F1;
    background: rgba(255, 255, 255, 0.05);
}

.view-tab.active {
    background: white;
    color: black;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* List Mode Styles */
.matchup-list-container.list-mode {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matchup-list-container.list-mode .matchup-list-item {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
    border-radius: 1rem;
}

.matchup-list-container.list-mode .item-visual {
    width: 120px;
    height: 80px;
    border-radius: 0.75rem;
}

.matchup-list-container.list-mode .item-vs-badge {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
}

.matchup-list-container.list-mode .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.matchup-list-container.list-mode .item-title {
    font-size: 1.125rem;
    margin-bottom: 0px;
    height: auto;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.matchup-list-container.list-mode .item-meta {
    gap: 1rem;
}

.matchup-list-container.list-mode .matchup-list-item > .mt-auto {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
    width: 240px;
    flex-shrink: 0;
}

.matchup-list-container.list-mode .item-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    #view-tabs {
        display: none; /* 모바일에서는 뷰 전환 버튼 숨김 (요청사항: 모바일은 카드 형태 고정) */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .matchup-list-container {
        grid-template-columns: 1fr; /* 모바일 1열 */
        gap: 1.25rem;
    }
    .matchup-list-item {
        padding: 0.875rem;
    }
    .item-title {
        font-size: 1rem !important; /* 모바일 타이틀 축소 */
        line-height: 1.3;
    }
    .item-visual {
        height: 160px;
    }
    .list-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .search-input {
        padding: 0.875rem 1rem 0.875rem 3rem;
        font-size: 0.9375rem;
    }
    #sort-tabs {
        width: 100%; /* 모바일에서 전체 너비 */
    }
    .filter-tab {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Battle Detail Mobile Styles */
    .detail-hero {
        padding: 60px 0 40px;
    }

    .matchup-result-board {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .result-item {
        width: 100% !important;
        max-width: 340px;
    }

    .result-image {
        width: 240px !important; /* 180px -> 240px 확대 */
        height: 240px !important; /* 180px -> 240px 확대 */
        margin: 0 auto 1.5rem;
        border-radius: 2.5rem;
    }

    .result-name {
        font-size: 1.75rem !important;
    }

    .vs-text {
        font-size: 4rem !important;
        margin: -0.5rem 0;
    }

    .spec-container {
        grid-template-columns: 1fr !important; /* 모바일에서 1열로 변경하여 너비 확보 */
        gap: 1.5rem;
    }

    .analysis-section {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    .setting-content {
        padding: 1rem !important;
    }

    .spec-box {
        padding: 1rem !important;
        border-radius: 1.5rem !important;
    }

    .integrated-spec-form-container .flex-col.md\:flex-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .integrated-spec-form-container .flex.gap-2.w-full {
        flex-direction: column;
    }

    .integrated-combatant-select, .integrated-spec-type-select {
        width: 100% !important;
    }

    .integrated-spec-submit-btn {
        width: 100%;
    }
}

/* Create Form Styles */
.create-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #F1F1F1;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: #F1F1F1;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--vivid-pink);
}

.textarea-field {
    min-height: 150px;
    resize: none;
}

/* Matchup Option Setup */
.matchup-setup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.option-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.option-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.option-box.active {
    border-color: var(--vivid-pink);
    border-style: solid;
    background: rgba(255, 0, 122, 0.05);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    position: relative; /* 라벨 배치를 위해 추가 */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auto-gen-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slide-down-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-down-fade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vs-divider {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.1);
}

/* Category Radio */
.category-radio, .schedule-radio {
    cursor: pointer;
}

.category-radio input, .schedule-radio input {
    display: none;
}

.category-radio span, .schedule-radio span {
    display: block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Schedule Radio Specifics */
.schedule-radio span {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
}

.category-radio input:checked + span {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--vivid-pink);
    color: #F1F1F1;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.1);
}

.schedule-radio input:checked + span {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--vivid-blue);
    color: #F1F1F1;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Main Image Upload Box */
.image-upload-box {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Spec Input Group */
.spec-input-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.spec-input-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.spec-type-toggle {
    grid-column: span 2;
    display: flex;
    width: fit-content; /* 배경색이 버튼 크기에만 맞게 축소 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.2rem;
    gap: 0.2rem;
    flex-shrink: 0;
}

.type-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.type-btn.active[data-type="AD"] {
    background: var(--vivid-pink);
    color: #F1F1F1;
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.3);
}

.type-btn.active[data-type="DA"] {
    background: var(--vivid-blue);
    color: #F1F1F1;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.spec-input-item input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #F1F1F1;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    min-width: 0; /* Flex 내 오버플로우 방지 */
}

.spec-input-item input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.add-spec-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.add-spec-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F1F1F1;
    border-color: rgba(255, 255, 255, 0.2);
}

.remove-spec-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.remove-spec-btn:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.submit-btn {
    width: 100%;
    background: var(--vivid-pink);
    color: #F1F1F1;
    font-weight: 900;
    font-size: 1.25rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 122, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 0, 122, 0.4);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #F1F1F1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .spinner {
    display: block;
}

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

@media (max-width: 1024px) {
    .matchup-setup {
        grid-template-columns: 1fr;
    }
    .vs-divider {
        display: none;
    }
}

/* Judge Card Radio Selection */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.judge-card-radio {
    cursor: pointer;
}

.judge-card-radio input {
    display: none;
}

.judge-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.judge-img-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.judge-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.judge-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
}

.judge-info {
    padding: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.judge-name {
    font-size: 1rem;
    font-weight: 800;
    color: #F1F1F1;
    margin-bottom: 0.35rem;
}

.judge-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.select-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F1F1F1;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.judge-card-radio input:checked + .judge-card-inner {
    border-color: var(--vivid-pink);
    background: rgba(255, 0, 122, 0.05);
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.15);
    transform: translateY(-5px);
}

.judge-card-radio input:checked + .judge-card-inner .select-badge {
    opacity: 1;
    background: var(--vivid-pink);
    border-color: var(--vivid-pink);
    box-shadow: 0 0 10px var(--vivid-pink);
}

.judge-card-radio input:checked + .judge-card-inner .judge-img-wrapper img {
    transform: scale(1.05);
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.group:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--vivid-pink);
    border-color: var(--vivid-pink);
    box-shadow: 0 0 15px var(--vivid-pink);
}

.prev-btn { left: 0.5rem; }
.next-btn { right: 0.5rem; }

/* Detail Page Styles */
.detail-hero {
    padding: 100px 0 60px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 122, 0.05) 0%, transparent 70%);
}

.matchup-result-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 5rem;
}

.result-item {
    text-align: center;
    width: 340px;
    position: relative; /* Badge position reference */
    padding-top: 30px; /* Space for badge */
}

.result-image {
    width: 340px;
    height: 340px;
    border-radius: 3.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.result-item.winner .result-image {
    border-color: var(--vivid-pink);
    box-shadow:
        0 0 30px rgba(255, 0, 122, 0.4),
        0 0 60px rgba(255, 0, 122, 0.2),
        inset 0 0 20px rgba(255, 0, 122, 0.2);
    transform: scale(1.05);
    animation: winner-pulse 2s infinite ease-in-out;
}

@keyframes winner-pulse {
    0% { box-shadow: 0 0 30px rgba(255, 0, 122, 0.4), 0 0 60px rgba(255, 0, 122, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 122, 0.6), 0 0 100px rgba(255, 0, 122, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 0, 122, 0.4), 0 0 60px rgba(255, 0, 122, 0.2); }
}

.winner-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #FFD700, #FF007A); /* Gold to Pink gradient */
    color: #F1F1F1;
    padding: 0.6rem 1.8rem;
    border-radius: 2rem;
    font-weight: 950;
    font-size: 1.1rem;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(255, 0, 122, 0.5);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.1em;
    animation: badge-float 3s infinite ease-in-out;
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.winner-badge i {
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    font-size: 1.2rem;
}

@keyframes badge-float {
    0%, 100% { transform: translateX(-50%) translateY(-20px); }
    50% { transform: translateX(-50%) translateY(-30px); }
}

.result-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.winner .result-name {
    color: #F1F1F1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* AI Analysis Section */
.analysis-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    padding: 4rem;
    margin-bottom: 4rem;
}

.analysis-item {
    margin-bottom: 3rem;
}

.analysis-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.125rem;
}


.bar-side {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-left { background: var(--vivid-pink); border-right: 2px solid rgba(0,0,0,0.2); }
.bar-right { background: var(--vivid-blue); border-left: 2px solid rgba(0,0,0,0.2); }

/* Setting Card */
.setting-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.setting-content {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
    padding: 2.5rem;
}

.setting-content .quote-icon {
    font-family: serif;
    font-size: 3rem;
    color: var(--vivid-pink);
    opacity: 0.3;
    line-height: 1;
}

.setting-content .quote-icon.left { margin-right: 0.5rem; vertical-align: sub; }
.setting-content .quote-icon.right { margin-left: 0.5rem; vertical-align: middle; }

/* Spec Guide Card */
.spec-guide-card {
    background: rgba(255, 214, 0, 0.03);
    border: 1px solid rgba(255, 214, 0, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
}

.guide-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 214, 0, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* AI Verdict Box */
.ai-verdict-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.ai-verdict-box::before {
    content: "AI QUOTE";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

/* Spec Section */
.spec-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.spec-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-header h4 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

/* New Spec Item Styles (v2) */
.spec-item-v2 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spec-item-v2:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.spec-item-v2.best, .comment-item.best {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    position: relative;
    z-index: 5;
}

.comment-item.best {
    margin-bottom: 0px;
}

.spec-main-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
}

.spec-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 900;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-badge.ad {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.spec-badge.da {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.spec-text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.spec-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.spec-actions-v2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-actions-v2 .spec-action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.spec-actions-v2 .spec-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F1F1F1;
}

.spec-actions-v2 .spec-action-btn.active.like-btn {
    background: rgba(255, 0, 122, 0.1);
    color: var(--vivid-pink);
    border: 1px solid rgba(255, 0, 122, 0.2);
}

.spec-actions-v2 .spec-action-btn.active.dislike-btn {
    background: rgba(0, 240, 255, 0.1);
    color: var(--vivid-blue);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.spec-actions-v2 .count {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-author-avatar {
    width: 16px;
    height: 16px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author, .date {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
}

.divider-dot {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.spec-meta-row .divider {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.spec-meta-row .date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Space Grotesk', sans-serif;
}

/* Integrated Spec Form */
.integrated-spec-form-container {
    /* max-width: 900px; */
    margin-left: auto;
    margin-right: auto;
}


.integrated-combatant-select,
.integrated-spec-type-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8rem;
}

/* Comment Team Badges */
.team-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.688rem;
    font-weight: 900;
}

.team-badge.team-a { background: var(--vivid-pink); color: #F1F1F1; }
.team-badge.team-b { background: var(--vivid-blue); color: #F1F1F1; }
.team-badge.team-common { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }

/* Comments Section */
.comments-section {
    padding-bottom: 100px;
}

.comment-input-area {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.comment-input-area textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #F1F1F1;
    outline: none;
    resize: none;
    height: 100px;
    padding-bottom: 3rem;
}

.comment-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0;
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color:#f1f1f1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border:1px solid #555;
}

.comment-date {
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .matchup-result-board {
        flex-direction: column;
        gap: 2rem;
    }
    .result-item {
        width: 100%;
        max-width: 400px;
    }
    .result-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .analysis-section {
        padding: 2rem;
    }
}
/* Comment Actions */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-left: 44px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    color: #F1F1F1;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.action-btn.active.like-btn { color: var(--vivid-pink); }
.action-btn.active.dislike-btn { color: var(--vivid-blue); }

.reply-btn {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reply-section {
    margin-left: 44px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    display: none;
}

.reply-section.active {
    display: block;
}

.reply-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

/* Reply Input Area */
.reply-input-area {
    margin-top: 1rem;
    margin-bottom: 2rem;
    margin-left: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    display: none;
    position: relative;
}

.reply-input-area.active {
    display: block;
}

.reply-input-area textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #F1F1F1;
    outline: none;
    resize: none;
    height: 80px;
    font-size: 0.813rem;
    padding-bottom: 2.5rem;
}

.reply-actions {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Comment Input Team Selector */
.comment-team-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    min-width: 0;
}

.team-option {
    cursor: pointer;
}

.team-option input {
    display: none;
}

.team-option span {
    display: block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

/* 텍스트를 data-text 속성에서 가져와 표시 (광고 스크립트 회피용) */
.team-option span::before {
    content: attr(data-text);
}

.team-option input:checked + span.opt-a { background: var(--vivid-pink); color: #F1F1F1; border-color: var(--vivid-pink); }
.team-option input:checked + span.opt-b { background: var(--vivid-blue); color: #F1F1F1; border-color: var(--vivid-blue); }
.team-option input:checked + span.opt-common { background: rgba(255, 255, 255, 0.1); color: #F1F1F1; border-color: rgba(255, 255, 255, 0.2); }

/* 광고 삽입 시 레이아웃 파괴 방지 (강력 중첩 차단) */
.comment-input-area ins,
.comment-input-area iframe,
.comment-input-area [id*="google_ads"],
.comment-input-area .adsbygoogle {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Reply Submit Button Style */
.reply-submit-btn {
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F1F1F1;
    font-size: 0.813rem;
    font-weight: 800;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.reply-submit-btn:hover {
    background: var(--vivid-pink);
    border-color: var(--vivid-pink);
    color: #F1F1F1;
}

.reply-cancel-btn {
    padding: 0.4rem 1rem;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Font Size Overrides & Layout Fixes */
.comment-content {
    font-size: 0.875rem !important;
    padding-left: 44px;
    white-space: pre-wrap;
    word-break: break-all;
    color:#f1f1f1;
}

.reply-content {
    font-size: 0.813rem !important;
    padding-left: 45px;
    white-space: pre-wrap;
    word-break: break-all;
}

.reply-item .comment-footer {
    padding-left: 45px;
}

.comment-input-area {
    position: relative;
}

.comment-input-area .flex.justify-end {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
}

.master-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* Shared Hero Redesign Styles */
.hero-redesign-common {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.master-header {
    text-align: center;
    margin-bottom: 60px;
}

.master-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #FF2E63, #08D9D6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.master-header p {
    color: #ccc;
    font-size: 1.2rem;
}

.master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.master-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px 24px 24px;
    text-align: center;
}

.master-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 46, 99, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.master-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}

.master-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.master-card:hover .master-img {
    transform: scale(1.15);
}

.master-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.master-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    justify-content: center;
}

.master-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: keep-all;
    text-align: left;
}

.master-criteria {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.master-criteria-label {
    display: block;
    color: var(--vivid-pink);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.master-criteria-content {
    color: #f1f1f1;
    font-size: 0.8rem;
    line-height: 1.5;
}

.master-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 46, 99, 0.1);
    color: #FF2E63;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    z-index: 10;
    border: 1px solid rgba(255, 46, 99, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .master-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 1.5rem;
    }
    .master-card {
        padding: 24px 16px 16px;
        border-radius: 20px;
    }
    .master-img-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }
    .master-name {
        font-size: 1.125rem;
    }
    .master-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}


/* Battle Master Mini Credit (Integrated into Status Header) */
.master-mini-credit {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.master-mini-credit:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .status-badge-container {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* Master Verdict Speech Bubble */
.master-verdict-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.master-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.master-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
}

.master-avatar-wrapper.shadow-glow {
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.2);
}

.master-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    background: #00FF94;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 148, 0.5);
}

.master-name-tag {
    font-size: 0.813rem;
    font-weight: 950;
    color: #F1F1F1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.master-speech-bubble {
    position: relative;
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verdict-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.winning-factor-badge {
    background: rgba(255, 0, 122, 0.1);
    color: var(--vivid-pink);
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 0, 122, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.1);
}

.bubble-content {
    margin-bottom: 1.5rem;
}

.reasoning-text {
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    word-break: keep-all;
    white-space: pre-wrap;
}

.bubble-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dotted rgba(255, 255, 255, 0.1);
}

.fun-comment {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Bubble Arrow */
.bubble-arrow {
    position: absolute;
    left: -12px;
    top: 40px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
}

@media (max-width: 768px) {
    /* Battle Result Page Styles (Restored) */
    .master-verdict-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .master-speech-bubble {
        padding: 1.5rem;
    }
    .bubble-arrow {
        left: 50%;
        top: -12px;
        transform: translateX(-50%) rotate(135deg);
    }
    .reasoning-text {
        font-size: 1.125rem;
        white-space: pre-wrap;
    }

    /* Battle Create/Edit Form Styles */
    .create-form-container {
        padding: 2rem 1.25rem;
        border-radius: 1.5rem;
    }

    .form-group {
        margin-bottom: 2rem;
    }

    .form-label {
        font-size: 1rem;
    }
}

/* Edit Mode Styles */
.spec-edit-row textarea, .comment-edit-area textarea {
    font-family: inherit;
    transition: all 0.3s ease;
}

.spec-edit-row textarea:focus, .comment-edit-area textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 0, 122, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.comment-edit-area {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-action-btn.edit-btn {
    padding: 0.25rem 0.5rem;
    height: 24px;   /* Like/Dislike 버튼과 동일한 높이 보장 */
    width: 28px;    /* 아이콘만 있는 버튼의 균형감 조절 */
    justify-content: center;
}

.spec-action-btn.edit-btn svg {
    width: 12px;
    height: 12px;
}

.comment-edit-btn {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-edit-btn:hover {
    color: var(--vivid-yellow);
    opacity: 1 !important;
}

.comment-content-wrapper {
    transition: opacity 0.3s ease;
}

.comment-content-wrapper.hidden {
    display: none;
}
@media (max-width: 768px) {
    .matchup-setup {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vs-divider {
        font-size: 2rem;
        margin: -0.5rem 0;
    }

    .option-box {
        padding: 1.5rem;
    }

    .image-placeholder {
        margin-bottom: 1rem;
    }

    .judge-card-radio {
        width: 140px;
    }

    .judge-img-wrapper {
        height: 100px;
    }

    .judge-name {
        font-size: 0.9rem;
    }

    .judge-desc {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .spec-input-group {
        padding: 1.25rem;
    }

    .input-field {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .spec-input-item {
        gap: 0.5rem;
    }

    .spec-input-item input {
        font-size: 0.8125rem;
        padding: 0.75rem 0.75rem;
    }

    .spec-type-toggle {
        padding: 0.15rem;
    }

    .type-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Scroll buttons hide on mobile as touch scroll is preferred */
    .scroll-btn {
        display: none !important;
    }
}

/* Battle Timer */
#battle-timer {
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.1);
    transition: all 0.3s ease;
}

#battle-timer:hover {
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.2);
    transform: translateY(-1px);
}

.timer-value {
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

#battle-timer.animate-pulse {
    animation: pulse-pink 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-pink {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; background-color: rgba(255, 0, 122, 0.2); }
}




/* Image Upload Warning & URL Input */
.image-warning-box {
    background: rgba(255, 214, 0, 0.05);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.image-warning-box i {
    color: var(--vivid-yellow);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.warning-text h5 {
    color: var(--vivid-yellow);
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.warning-text p {
    color: rgba(255, 214, 0, 0.6);
    font-size: 0.75rem;
    line-height: 1.5;
}

.url-input-group {
    margin-top: 1rem;
    width: 100%;
}

.url-input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #F1F1F1;
    font-size: 0.813rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input-field:focus {
    border-color: var(--vivid-pink);
    background: rgba(255, 255, 255, 0.05);
}


/* Image Registration Method Tabs */
.image-method-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
    width: 100%;
}

.method-tab {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.method-tab:hover {
    color: #F1F1F1;
}

.method-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #F1F1F1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.method-tab.active.file-mode {
    background: rgba(255, 0, 122, 0.1);
    color: var(--vivid-pink);
}

.method-tab.active.url-mode {
    background: rgba(0, 240, 255, 0.1);
    color: var(--vivid-blue);
}

.tab-content {
    width: 100%;
}

.tab-content.hidden {
    display: none;
}

/* AI Battle Report Enhanced Styles */
.ai-report-header-container {
    padding: 0rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.ai-report-header-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 0, 122, 0.15), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.ai-report-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.ai-report-badge i {
    color: var(--vivid-yellow);
    font-size: 0.75rem;
    animation: pulse-glow 2s infinite;
}

.ai-report-badge span {
    font-size: 0.7rem;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); text-shadow: 0 0 10px var(--vivid-yellow); }
}

.ai-report-title-group {
    text-align: center;
    position: relative;
}

.ai-report-title {
    font-size: 3.5rem;
    font-weight: 950;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.ai-report-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vivid-pink);
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.3);
}

.ai-report-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--vivid-pink), var(--vivid-blue));
    border-radius: 2px;
    margin-top: 2rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .ai-report-title {
        font-size: 2.25rem;
    }
    .ai-report-header-container {
        padding: 3rem 0 2rem;
    }
}

/* Section Differentiation Styles */
.prediction-section-bg {
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-report-section-bg {
    background-color: rgba(0, 0, 0, 0.06);
    position: relative;
    border-top: 2px solid rgba(255, 0, 122, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-report-section-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vivid-pink), var(--vivid-blue), transparent);
    opacity: 0.3;
}

/* AI Badge Styles - Renewed Trendy Design (Neon Aurora) */
.ai-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 8.5px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 30px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid transparent;
    background-image: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)),
                      linear-gradient(135deg, #FF0080, #00F0FF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 0, 128, 0.2),
        0 0 20px rgba(0, 240, 255, 0.1);
    vertical-align: middle;
    line-height: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ai-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-30deg);
    animation: ai-shimmer-fast 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ai-shimmer-fast {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.ai-badge:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 128, 0.5),
        0 0 35px rgba(0, 240, 255, 0.3);
    background-image: linear-gradient(rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.9)),
                      linear-gradient(135deg, #FF0080, #00F0FF);
    letter-spacing: 0.2em;
}
