:root {
    --steam-dark: #1b2838;
    --steam-blue: #2a475e;
    --steam-light-blue: #66c0f4;
    --steam-green: #5c7e10;
    --steam-green-hover: #a1cf1e;
    --text-primary: #ffffff;
    --text-secondary: #d9e1e8;
    --bg-gradient: linear-gradient(135deg, rgba(42, 71, 94, 0.95) 0%, rgba(27, 40, 56, 0.98) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
}

html {
    height: auto;
}

body,
body.widget-body,
.widget-link {
    min-height: 100%;
}

body.widget-body {
    font-family: 'Motiva Sans', Arial, Helvetica, sans-serif;
    background-color: transparent;
    overflow: visible;
}

.widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.widget-container {
    background: var(--bg-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: none;
    transition: border-color 0.2s ease;
    max-width: 600px;
    position: relative;
    overflow: visible;
    min-height: 100%;
}

.widget-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism background effect */
.widget-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.widget-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.widget-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.widget-action-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.widget-title {
    flex: 1;
    min-width: 200px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.widget-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.widget-icon-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.widget-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.widget-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-platforms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.widget-platform {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}



.widget-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.widget-btn {
    background: linear-gradient(to bottom, var(--steam-green-hover) 5%, var(--steam-green) 95%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.widget-btn:hover {
    filter: brightness(1.1);
}

/* Small screen / Narrow iframe adjustments */
@media (max-width: 480px) {
    .widget-content {
        flex-direction: column;
    }

    .widget-icon-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}