.qsl-card {
    width: 140mm;
    height: 90mm;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 0 auto;
}
.qsl-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qsl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #000;
    border: 2px solid gold;
    background: rgba(255, 255, 255, 0.1);
}

/* Layouts */
.layout-classic .qsl-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.layout-classic .header-info {
    text-align: right;
    font-size: 0.6rem;
}
.layout-classic .main-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.layout-classic .main-info h2 {
    font-size: 1.8rem;
    margin: 0;
}
.layout-classic .correspondent-info {
    text-align: left;
    padding-left: 10px;
}
.layout-classic .channel-table {
    margin-top: 5px;
}

.layout-modern .qsl-overlay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 15px;
}
.layout-modern .header-info { grid-column: 1; grid-row: 1; text-align: left; }
.layout-modern .main-info { grid-column: 1; grid-row: 2; }
.layout-modern .correspondent-info { grid-column: 2; grid-row: 2; border-left: 1px solid gold; padding-left: 10px; }
.layout-modern .channel-table { grid-column: span 2; grid-row: 3; }

.layout-retro .qsl-overlay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 5px;
    padding: 5px;
}
.layout-retro .header-info { grid-column: 1; grid-row: 1; }
.layout-retro .main-info { grid-column: 1; grid-row: 2; }
.layout-retro .correspondent-info { grid-column: 2; grid-row: 2; }
.layout-retro .channel-table { grid-column: span 2; grid-row: 3; }

/* Components */
.operator-label {
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.correspondent-label {
    color: #1976d2;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.channel-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
}
.channel-table th, .channel-table td {
    border: 1px solid #000;
    padding: 2px;
    text-align: center;
}
.channel-table th {
    background: #eee;
    font-size: 0.6rem;
}
.channel-table td {
    font-size: 0.7rem;
}
.main-info h2 {
    font-weight: 900;
    line-height: 1;
}
