/* Список к просмотру */
.watchlist-section h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header row with add buttons */
.watchlist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.watchlist-header h3 {
    margin-bottom: 0;
}

.watchlist-count {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.watchlist-header-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.watchlist-header .btn-icon {
    margin-left: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.1rem;
}

.order-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    padding: 10px;
    display: flex;
    gap: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes planRemoveIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(0.35); }
  }

.order-plan-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(246, 49, 53, 0.45), rgba(255, 77, 79, 0));
    transform: scaleX(0);
    transform-origin: right;
    pointer-events: none;
    border-radius: inherit;
  }

  .order-plan-banner.is-plan-remove-hover::after {
    animation: planRemoveIn 0.25s ease forwards;
  }

.order-info-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.order-info-button:hover {
    transform: scale(1.08);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.order-info-button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.order-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    margin-bottom: 18px;
}

.order-plan-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 0;
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
    background:linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(0, 128, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.order-plan-icon {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

.order-plan-text {
    color: var(--text-secondary);
    font-weight: 700;
}

.order-plan-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.order-plan-remove:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-plan-banner + .order-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    position: relative;
}

.order-plan-banner + .order-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--glass-bg);
    pointer-events: none;
}

.watch-complete-btn {
    width: 140px;
    height: 34px;
    padding: 0;
    background: rgba(161, 161, 161, 0.12);
    color: #eafff4;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    border-radius: var(--border-radius-small);
}

.watch-complete-btn:hover {
    background: rgba(46, 204, 113, 0.28);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px 0;
}

.empty-state img {
    max-width: 200px;
    width: 100%;
    opacity: 0.8;
    margin: 0 auto 10px;
    display: block;
}

.order-poster {
    flex-shrink: 0;
    width: 40%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.order-poster--clickable {
    cursor: pointer;
}

.order-poster--clickable:hover {
    scale: 1.05;
    transition: var(--transition);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.order-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-title-text {
    display: inline;
}

.order-original-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-genres {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 12px;
}

.order-game-extra {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.order-game-release,
.order-game-playtime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.order-meta img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.order-year {
    color: var(--text-accent);
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 600;
}

.order-length {
    color: var(--text-secondary);
}

.order-kp-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.order-kp-rating:hover {
    transform: translateY(-2px);
    scale: 1.15;
    transition: var(--transition);
}

.order-game-ratings {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.order-game-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease;
    cursor: default;
}

.order-game-rating-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.order-game-rating-icon--rawg {
    width: auto;
    height: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
}

.order-date {
    color: #a0a0a0;
    font-size: 14px;
}

.order-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: auto;
}

.order-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-plan-date {
    color: #00d4ff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

.order-actions-below {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-small);
    position: relative;
}

.order-actions-below .order-actions {
    margin-left: 0;
    width: 100%;
    align-items: center;
}

.order-actions-below .watch-complete-btn {
    flex: 1;
    width: 100%;
}

.game-order-streams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 8px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-small);
}

.game-order-streams__bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.game-order-streams__segment {
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.game-order-streams__segment.is-filled {
    background: linear-gradient(135deg, #00d4ff 0%, #6ef7c8 100%);
    border-color: rgba(110, 247, 200, 0.7);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.22);
}

.game-order-streams__step {
    width: 26px;
    min-width: 26px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1;
}

.game-order-streams__step:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.18);
}

.game-order-streams__step:disabled {
    opacity: 0.45;
    cursor: default;
}

.order-menu-button {
    width: 40px;
    height: 34px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--text-primary);
}

.order-menu-button:hover {
    background: rgba(0, 212, 255, 0.2);
}

.order-menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.order-menu-line {
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.order-actions-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 25, 40, 1);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 6;
}

.order-actions-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.order-actions-menu.centered {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.98);
}

.order-actions-menu.centered.open {
    transform: translate(-50%, 50%) scale(1);
}

.order-actions-item {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: var(--transition);
}

.order-actions-item:hover {
    background: rgba(0, 212, 255, 0.18);
}

.order-actions-item--danger {
    color: #ff6b6b;
}

.order-actions-item--danger:hover {
    background: rgba(255, 107, 107, 0.16);
}
