.search-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

.search-results-section,
.available-channels-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-section h3,
.available-channels-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drag-instructions {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
}

.available-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 100px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.available-channels::before {
    content: 'Drop channels here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.available-channels:empty::before {
    opacity: 1;
}

.available-channels.drag-over {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.available-channels.drag-over::before {
    opacity: 1;
    color: rgba(255, 255, 255, 0.6);
}

.channel-tile {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.channel-tile:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.channel-tile:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.channel-tile.dragging {
    opacity: 0.7;
    background: #f0f0d4;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    z-index: 1000;
    border: 2px solid #000080;
}

.channel-tile::before {
    content: '⋮ ⋮ ⋮';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    letter-spacing: -4px;
}

.channel-tile:hover::before {
    color: rgba(0, 0, 0, 0.4);
}

.channel-title {
    flex: 1;
    font-size: 0.9rem;
    text-align: left;
    word-break: break-word;
    padding: 0 2rem 0 3rem;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.search-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: grab;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result::before {
    content: '⋮ ⋮ ⋮';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    letter-spacing: -4px;
    transition: color 0.2s ease;
}

.search-result:hover::before {
    color: rgba(0, 0, 0, 0.4);
}

.search-result:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-result:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.search-result.dragging {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    z-index: 1000;
    border-color: rgba(255, 255, 255, 0.5);
}

.search-result__content {
    padding-left: 2rem;
}

.search-result__content h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1rem;
}

.search-result__channel {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.save-order-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-order-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.save-order-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.save-order-button.saving {
    background: rgba(255, 255, 255, 0.2);
    cursor: wait;
}

/* Make sure the search results container has a minimum height */
.search-results-container {
    min-height: 300px;
}


.search-page {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    /*font-size: 12px;*/
    line-height: 1.2;
    background-color: #ffffd4;
    border: 1px solid #000;
    padding: 10px;
    width: 90%;
    min-height: 90%;
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.broadcast {
    max-height: calc(100% + 1px);
    overflow-y: none;
}

.search-form {
    margin: 20px 0;
}

.search-form__label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-form__input {
    width: 100%;
    padding: 8px;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #000;
    background-color: #ffffd4;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-form__button {
    background-color: #e6e6c8;
    border: 1px solid #000;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}

.search-form__button:hover {
    opacity: 0.8;
    cursor: pointer;
}

.search-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.search-results-section,
.available-channels-section {
    background-color: #ffffd4;
    border: 1px solid #000;
    padding: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.search-results-section h3,
.available-channels-section h3 {
    color: #000080;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-top: 0;
    font-size: 14px;
    font-weight: bold;
}

.drag-instructions {
    font-size: 12px;
    margin: 10px 0;
}

.available-channels {
    min-height: 200px;
    border: 1px dashed #000;
    padding: 10px;
    margin-top: 10px;
}

.channel-tile {
    background-color: #e6e6c8;
    border: 1px solid #000;
    padding: 5px;
    margin: 2px;
    display: inline-block;
    cursor: move;
}

.channel-tile.dragging {
    opacity: 0.5;
}

.available-channels.drag-over {
    background-color: #f5f5e5;
    border: 2px dashed #000080;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.save-order-button {
    background-color: #e6e6c8;
    border: 1px solid #000;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
}

.save-order-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.search-pagination {
    margin-top: 20px;
    text-align: center;
}

.search-results {
    margin-top: 10px;
}

.search-result {
    background-color: #e6e6c8;
    border: 1px solid #000;
    padding: 10px;
    margin: 5px 0;
    cursor: move;
}

.search-result.dragging {
    opacity: 0.5;
}

.search-result__content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.search-result__channel {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .available-channels {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.channel-link-emoji {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.2em !important;
    left: auto !important;
    bottom: auto !important;
}

/* Add drop placeholder styles */
.drop-placeholder {
    height: 3px;
    background-color: #000080;
    margin: 8px 0;
    border-radius: 2px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
} 