

.history-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(76px + 24px) 24px 0;
}

.history-hero {
    padding: 24px 4px 8px;
    text-align: center;
}
.history-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    letter-spacing: 0.02em;
    color: var(--cream);
    margin: 0 0 6px;
}
.history-count {
    color: var(--cream-dim);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-clear-btn {
    margin-top: 14px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid rgba(200, 32, 58, 0.4);
    background: rgba(200, 32, 58, 0.08);
    color: var(--crimson-bright);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.history-clear-btn:hover {
    background: rgba(200, 32, 58, 0.18);
    border-color: var(--crimson);
}

.history-card {
    position: relative;
}
.history-remove-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(12, 10, 16, 0.75);
    color: var(--cream);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s, border-color .2s, color .2s, background .2s;
}
.history-card:hover .history-remove-btn { opacity: 1; }
@media (hover: none) {
    .history-remove-btn { opacity: 1; }
}
.history-remove-btn:hover {
    border-color: var(--crimson);
    color: var(--crimson-bright);
    background: rgba(200, 32, 58, 0.15);
}

.history-empty {
    padding: 40px 4px 80px;
}

@media (max-width: 640px) {
    .history-page { padding: calc(64px + 16px) 14px 0; }
    .history-hero { padding: 16px 4px 6px; }
    .history-hero h1 { font-size: 30px; }
    .history-remove-btn { opacity: 1; }
}

.history-watch-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(12, 10, 16, 0.82);
    color: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.history-watch-btn:hover {
    transform: scale(1.08);
    border-color: var(--crimson);
    background: rgba(200, 32, 58, 0.9);
    color: #fff;
}
